Popup Panels

From Planimate Knowledge Base
Jump to navigation Jump to search

Panels have a separate set of options called "Popup Options" with the following options which control how the panel operates *when opened in a popup window* using the "Show Panel" routine operation:


"Act As Modal Dialog"


Causes the popup to act as a model dialog. Operation of the parent
window is disabled while the panel is visible.


Panels in this mode always have fixed (dialog) frames and a caption
bar and appear in fromt of the main window.


The "System Menu Icon" can control whether the close box appears in
the right corner. The minimise/maximise icons are never shown.


"Hide Caption Bar"


Hides the caption bar, causing the panel to be shown as a child window
of the main window instead. This makes it act more like a viewport
except the modeller can show and hide it.


"Palette Window Style"


Draws the panel using a fixed frame and thinner caption bar. This is
good for palettes. Use with the "Stay In Front" option to avoid it
being lost behind the main window.


"System Menu Icon"


Shows the close box [x] icon at the top right of the caption bar


If you disable this, closing the panel becomes your responsibility


"Minimise/Maximise Icons"


Shows the minimise/maximise icons in the caption bar


Modal dialogs cannot have minimise/maximise icons


"Stay In Front Of Main Window"


Causes the panel to always be in front of the main Planimate window.
This is good for palettes and is default for dialog mode.


"Stay In Front Of All Windows"


Causes the panel to always be in front of ALL windows, not just Planimate.
This should only be used for alerts or very important status as it
can be annoying to the user.


"Dont Show Frame"


Does not show the popup with a resizeable frame. This is useful in
conjunction with the "Hide Caption Bar" option as it results in a
panel appearing within the main Planimate window without any border.


Using this a popup panel can act as a programmable viewport.


"Auto Close When Focus Lost"
Closes the popup if the user clicks on another window


"Ensure Visible On Display"
Ensures the popup is initially displayed within the screen area

The Click Action for buttons "Popup Panel" sets a button up like a screen change except that the panel is opened
as a popup rather than the main window being directed to it.


Existing buttons can have this option enabled/disabled using the "Popup panel in window" option which is an option on the button link properties. Popup panel buttons have an option in their click action context menu enabling the popup co-ordinates to be specified, the default of (-1,-1) uses the current mouse co-ordinate to position the popup.


This gives the modeller control over where the popup appears.




idkbase note 94