Language Reference Guide : System Classes : PopupButton Class
 
Share this page          
PopupButton Class
The PopupButton is a subclass of the ButtonField class. An OptionMenu is associated with a PopupButton. When the user clicks a PopupButton, its OptionMenu pops up. There is no Click event for a PopupButton, but there is a Click event for each of the option menu items.
The following is a programming example using the PopupButton class:
initialize()=
declare
enddeclare
begin
    /* Initialize popupbutton OnOffBtn's Label */
    field (OnOffBtn).TextLabel = 'On';
end
on click onoffbtn.optionitemoff =
begin
    /* Set the label to 'off' */
    field (onoffbtn).Textlabel = 'off';
end
on click onoffbtn.optionitemon =
begin
    /* set the label to 'on' */
    field (onoffbtn).TextLabel = 'on';
end
Inherits From
Object Class
FieldObject Class
FormField Class
ActiveField Class
ScalarField Class
ButtonField Class
Inherited By
None
Attributes
OptionMenu
PopupAlignment
Methods
None