|
Previous Top Next |
Prototype: | (String pCaption,<*String pFontName>,<*Long pFontSize>,<*Long pFontColor>,<*Long pFontStyle>,<*Long pFontCharset>),Byte |
pCaption | Caption for Font selection dialog |
pFontName | Optional parameter that receives the font name |
pFontSize | Optional parameter that receives the font size |
pFontColor | Optional parameter that receives the font color |
pFontStyle | Optional parameter that receives the font style |
pFontCharset | Optional parameter that receives the font character set |
Returns | Returns true or false depending on if the Cancel button was pressed or not on the Font Dialog, same as the Clarion FONTDIALOG function does. |
This method is a wrapper for the Clarion FONTDIALOG function. The difference is that you don't have to declare variables to use it! Instead you simply call the method and then you will have access to all the information that was selected by using the FontName, FontSize, FontColor, etc. properties of the class.
Example:
ITU ITUtilityClass
Code
If ITU.SelectFont('Select font')
! Now you can use the Font properties of the Utilities Class to access the font information for the selected font!
End
! Compare this to using the Clarion FontDialog:
FontName String(64)
FontSize Long
FontColor Long
FontStyle Long
FontCharset Long
Code
If FontDialog('Select font',FontName, FontSize, FontColor, FontStyle, FontCharset)
! Now you can use the font information returned.
End
See also: