Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is the same as the FONT property used by native OpenInsight controls. It uses the identical @SVM delimited array for the font structure which is generated when using the Utility("CHOOSEFONT") service.

Example

Code Block
 // Set the caption property to "Click Me!" and 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 and then set the Font property of the test button. 
FontArray = Utility("CHOOSEFONT") 
Set_Property(@Window:".OLE_BUTTON_TEST", "OLE.Font", FontArray)

See Also

Caption