| 4D v15 R2HIDE TOOL BAR | |||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v15 R2
 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 v15)
	4D Language Reference ( 4D v15 R2)
	
	4D Language Reference ( 4D v15.4)
	
	
	
	
	4D Language Reference ( 4D v15.3)
	
	
 Add a comment
Add a comment