The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_onoffbut
Class: TOnOffBut
Declaration: property OnOff: boolean;

The property OnOff reflects the state of the button. A TRUE value means "On", a FALSE value "Off". Please note that the state of the button can be changed either by setting the OnOff property programmatically, or by a mouse click (if the property MouseAction is not set to oomaNone).

Hint: Please note that the behavior of a button may be influenced by the AllowAllOff and GroupIndex properties, as well.

Example: This property is used in the following example program (see for downloading the code): onoffbut, repspeedbut

Last Update: 2013-May-30