www.icetips.com  Icetips Utilities Documentation 5/15/2014    

Utility Class: SelectFont

Previous  Top  Next  


Prototype: (String pCaption,<*String pFontName>,<*Long pFontSize>,<*Long pFontColor>,<*Long pFontStyle>,<*Long pFontCharset>),Byte

 

pCaptionCaption for Font selection dialog
pFontNameOptional parameter that receives the font name
pFontSizeOptional parameter that receives the font size
pFontColorOptional parameter that receives the font color
pFontStyleOptional parameter that receives the font style
pFontCharsetOptional parameter that receives the font character set

 

ReturnsReturns 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:

FontName

FontSize

FontColor

FontStyle

FontCharset

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/selectfont_utility.htm