GPToggleButton
Unit : GPButtonUnit
Association : GPToggleButtonAsn
Inherits from : GPButton, GPLabel
Description
- An area of a window that can be seen and clicked on to produce an action
with an "on" and "off" state. The Activate method (inherited virtually
from GPButton) defines the behavior when switching to the "on" state.
The DeActivate method (defined virtually here) defines the behavior
for switching to the "off" state.
Public Interface
-
CONSTRUCTOR Init (containerLink: GPManagerAsn);
Initializes the GPToggleButton.
DESTRUCTOR Destroy; VIRTUAL;
Destroys the GPToggleButton.
PROCEDURE SetButton;
Activates the button visually. This method will also call the Activate
method.
PROCEDURE UnSetButton;
Deactivates the button visually. This method will also call the DeActivate method.
PROCEDURE DeActivate; VIRTUAL;
This method is called when the button is deactivated. Like the Activate
method it is virtual and should be redefined in a subclass.
Subclasses
- None
Please report any problems with GP or the documentation to
GP Support
.
Loring Holden