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

Usage

Set_Property(OLECtrlEntID, "OLE.Font", FontArray)

Values

The FontArray structure uses the same formatting as the OpenInsight FONT property. Visit the Font common OLE property page for further documentation.

Default: Tahoma, 8 pt.

Remarks

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

// 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

  • No labels