Managing the Fold Up Panel
- Last UpdatedJan 09, 2024
- 1 minute read
The form shown below is a docking dialog which has five FOLDUPPANEL gadgets, the first two are collapsed (hidden) and the second two are expanded (shown). Each one has a title bar which displays the panel's tag text, and an icon which allows the panel to fold-up or fold-down when clicked.
The default state is 'unfolded' and the EXPANDED property allows the user to initialize a panel to unfolded (true) or folded (false).
When the panel expands or collapses, any gadgets which lie below the panel and between (or partially between) the panel's horizontal limits will be moved down or up the form.
If the form's AutoScroll attribute is selected, then a scroll bar will automatically appear whenever gadgets have been moved off the bottom of the form, so that the entire form is always accessible.

Fold Up Panel Events
HIDDEN and SHOWN events are raised whenever the user interactively folds or unfolds the panel. These events are only fired if an Open callback is defined for the foldup frame. To manage FoldUpPanels which are also radio groups, then you must supply an open callback so that you can differentiate the panel's SELECT, HIDDEN and SHOWN events.