Disable all menus and toolbars

Command groupFlag affectedReversibleExecute on clientPlatform(s)
MenusNOYESNOAll

Syntax

Disable all menus and toolbars

Description

Example

# Disable all menus and toolbars unless the correct

# password is enterd

Disable all menus and toolbars

Prompt for input
 
Password :
 
Returns 
lPassword

If
 
low
(
lPassword
)=
'password'

  
Enable all menus and toolbars
End If
 
# Alternatively, you can disable all user installed menu

# and toolbar instances by setting the $enabled property

Do
 
$imenus.$sendall
(
$ref.$enabled.$assign
(
kFalse
))

Do
 
$itoolbars.$sendall
(
$ref.$enabled.$assign
(
kFalse
))