Skip to main content

Font Property

Sets the font attributes for the Caption text of the OLE Button.

Definition​

Property "OLE.Font" as Font

Values​

See Font for details

Default: Tahoma, 8 pt.

Remarks​

Sets the font used to render the button's caption.

Example​

// Set the caption property to "Click Me!", then change the Font property to Tahoma, 10pt, Bold, Italic.
Set_Property(@Window:".OLE_BUTTON_CLICK_ME", "OLE.Caption", "Click Me!")

FontArray  = "Tahoma" : @SVM : "-13" : @SVM : 700: @SVM : "1" : @SVM : "0" : @SVM : "0"
FontArray := @SVM : "0" : @SVM : "34" : @SVM : "0" : @SVM : "3" : @SVM : "2" : @SVM : "1"
Set_Property(@Window:".OLE_BUTTON_CLICK_ME", "OLE.Font", FontArray)

// Allow the end user to choose a font using the CHOOSEFONT service
FontArray = Utility("CHOOSEFONT")
Set_Property(@Window:".OLE_BUTTON_TEST", "OLE.Font", FontArray)

See Also​

Caption