Toolbar Button - Check Property

Check property selects or deselects a button

Member of Toolbar Button (PRIM_SPBN)

Data Type - Boolean

Details

The Check property is used to select or deselect a button, typically as part of a set of mutually exclusive buttons defined by a PRIM_SPBN.
 
This is very similar in concept to the use of Radio Buttons
 
Check can also be used for individual buttons to indicate and On/Off state.

Example

This example shows three buttons in the same set.
Function Options(*DIRECT)
Begin_Com Role(*EXTENDS #PRIM_FORM) Clientwidth(861) Clientheight(384) Componentversion(2) Top(227) Left(222) Style(#Style1)
 
   Define_Com Class(#PRIM_VS.Style) Name(#Style1) Backgroundbrush(#Brush1)
   Define_Com Class(#PRIM_VS.SolidBrush) Name(#Brush1) Color(255:255:255)
 
   Define_Com Class(#PRIM_SPBN) Name(#ToolbarButton1) Autosize(False) Componentversion(1) Displayposition(1) Left(8) Parent(#COM_OWNER) Tabposition(1) Top(8) Image(#xImageSettings16) Groupindex(1)
   Define_Com Class(#PRIM_SPBN) Name(#ToolbarButton2) Autosize(False) Componentversion(1) Displayposition(2) Left(40) Parent(#COM_OWNER) Tabposition(2) Top(8) Image(#xImageSettings16) Groupindex(1)
   Define_Com Class(#PRIM_SPBN) Name(#ToolbarButton3) Autosize(False) Componentversion(1) Displayposition(3) Left(72) Parent(#COM_OWNER) Tabposition(3) Top(8) Image(#xImageSettings16) Groupindex(1)
 
   Evtroutine Handling(#ToolbarButton1.Click #ToolbarButton2.Click #ToolbarButton3.Click) Com_Sender(#Sender)
 
      #Com_Owner.Caption := ("&1 &2 &3").Substitute( #ToolbarButton1.Check #ToolbarButton2.Check #ToolbarButton3.Check )
 
   Endroutine
 
End_Com
 

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2