This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
HIDE TOOL BAR
|
HIDE TOOL BAR | ||||||||
Does not require any parameters | ||||||||
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.
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
Product: 4D
Theme: Windows
Number:
434
Created: 4D v6
Modified: 4D v14
Modified: 4D v14 R5
4D Language Reference ( 4D v20 R7)