4D v16.3

HIDE TOOL BAR

Home

 
4D v16.3
HIDE TOOL BAR

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.

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



See also 

SHOW TOOL BAR

 
PROPERTIES 

Product: 4D
Theme: Windows
Number: 434

 
HISTORY 

Created: 4D v6
Modified: 4D v14
Modified: 4D v14 R5

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)