Application.SetMenuBarActive

Application.SetMenuBarActive ( 

boolean Activate = true )

Example 1

Application.SetMenuBarActive(false);

--Copy all files within the Docs folder on the CD-ROM to the destination.
StatusDlg.Show(MB_ICONNONE, false);
File.Copy("AutoPlay\\Docs\\*.*", _TempFolder.."\\Copied Files\\", true, true, false, true, nil);
StatusDlg.Hide();

Application.SetMenuBarActive(true);

Sets the application's menu bar to be inactive while copying files to the user's temporary directory.

See also:  Related Actions