Was this helpful?
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
Inherited By
None
Attributes
OptionMenu
PopupAlignment
Methods
None
Last modified date: 12/20/2023