Versions Compared

Key

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

...

When used as a graphical checkbox, 'checked' buttons will appear as if the button was clicked. Buttons that have an 'undetermined' state will have the same appearance as if being 'checked' but the caption will be grayed out:

TriState.png

Use the State property to determine what state (i.e. checked, unchecked, or undetermined) the graphical checkbox is in.

Graphics can be added to the OLE button by using the Icon property. Normally this property is used to provide an image that appears within the borders of the button control while still using the button's current style. However, if you wish to customize the entire appearance of the button then use the OwnerDrawn value of the Style property. This works similar to how OpenInsight supports images on pushbuttons by allowing you use a multi-framed image to control how each state (i.e. at rest, clicked, disabled, etc.) will appear.

...

Code Block
// Set the button to be a toggle button 
Set_Property(@Window:".OLE_BUTTON", "OLE.ButtonType", "Toggle") 

// Alternatively the abbreviation for "Toggle" can be used as follows: 
* Set_Property(@Window:".OLE_BUTTON", "OLE.ButtonType", "TG") 

// Set the button to be a tri-state button 
Set_Property(@Window:".OLE_BUTTON", "OLE.ButtonType", "TriState") 

// Alternatively the abbreviation for "TriState" can be used as follows: 
* Set_Property(@Window:".OLE_BUTTON", "OLE.ButtonType", "TS") 

See Also

StateIconStyle