Module cSigCJMessageBar.pkg
==============================================================================
Project : SigCj - VDF Classes for Codejock
File : cSigCJMessageBar.pkg
Description : VDF Class for Codejock control
Revision : $Rev: 343 $
$Date: 2010-02-26 22:57:12 +0000 (Fri, 26 Feb 2010) $
$Author: martin $ Martin Pincott and Pieter van Dieren
Requirements : Visual DataFlex 12.1+
Codejock SuitePro - Version 12.0.0+
Copyright : (c) 2010 VDF SIG UK
Visual DataFlex Special Interest Group UK.
http://www.vdfsig.co.uk/
This file is part of SigCj.
SigCj is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation, either version
2.1 of the License, or (at your option) any later version.
SigCj is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
If you have the complete SigCj workspace then a copy of the
GNU Lesser General Public License is in the Docs folder. If
not, see <http://www.gnu.org/licenses/>.
==============================================================================
Contributions
=============
When Who What
========== =================== =====================================================
2010-02-26 Pieter van Dieren Initial Idea and code sample
==============================================================================
cSigCJMessageBar.pkg (view source)- import declarations
- cSigCJMessageBar : cCJMessageBar
Construct_Object()
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbVisible()
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbCloseButton()
Add_Close_Button(String llToolTip)
-------------------------------------------------------------------------
Add_Button(Integer llId String llCaption String llToolTip)
Remove_Buttons()
- String
EncodePlaintext(String sMessage)
Convert illegal characters to XAML entities
DoShowMessageBar(String sMessage String sMessageTitle)
// Convert decimal to Hex
{ Visibility=Private }
Function DecToHex Integer iDec Returns String
String sHex sHexchars
Move "0123456789ABCDEF" to sHexchars
Move "" to sHex
Repeat
Insert (Mid(sHexchars,1,((iDec iand $0f) + 1))) In sHex At 1
Move (iDec / $10) to iDec
Until (iDec = 0)
Function_Return sHex
End_Function
// RgbToHex
// Convert the RGB color to a hex color
{ Visibility=Private }
Function RgbToHex Integer iColor Returns String
String sRed sGreen sBlue
Get DecToHex of oHex (R_From_RGB(iColor)) to sRed
Get DecToHex of oHex (G_From_RGB(iColor)) to sGreen
Get DecToHex of oHex (B_From_RGB(iColor)) to sBlue
Move (Right(("00" + sRed),2)) to sRed
Move (Right(("00" + sGreen),2)) to sGreen
Move (Right(("00" + sBlue),2)) to sBlue
Function_Return ("#" + sRed + sGreen + sBlue)
End_Function
- String
sXml - String
sHexColor
References (1):
Field References (0):
Module | Containing Symbol | Line |
---|