HIDE TOOL BAR
HIDE TOOL BAR
Does not require any parameters |
---|
This command is not thread-safe, it cannot be used in preemptive code.
Description
The HIDE TOOL BAR command handles the display of custom toolbars created by the Open form window command for the current process.
If a toolbar window has been created by the Open form window command with the Toolbar form window option, the command hides this window. If the toolbar window was already hidden or if no window of this type has been created, the command does nothing.
Example
On OS X, you have defined a custom toolbar and a standard window that has the Has full screen mode Mac option. When a standard window is maximized by a user while the toolbar window is displayed, you do not want the toolbar to overlap the maximized window.
To prevent this, in the On Resize form event of the standard window, you need to detect when the window has entered full screen mode and then call HIDE TOOL BAR:
Case of
:(FORM Event=On Resize)
GET WINDOW RECT($left;$top;$right;$bottom)
If(Screen height=($bottom-$top))
HIDE TOOL BAR
Else
SHOW TOOL BAR
End if
End case