Lance Leonard'; $attrinfo = ""; $audience = "1"; $versions = "Applies to: All versions"; $postdate = "25 March 2004"; $pagearea = 2; $navlinks = 'Paradox:'; $metakeys = "paradox for windows, borland paradox, corel paradox, paradox, pdoxwin, main menu, desktop menu, menu, show, hide, suppress, restore, display, objectpal"; $metadesc = "Shows how to hide (and restore) the main menu in Paradox"; ?>

Question: How do I hide (and restore) the main Paradox menu?

Answer: To hide the main Paradox menu, use ObjectPAL to create and display a blank (empty) menu, as shown in the following code sample:

method pushButton(var eventInfo Event)
Var
   mnuNone  Menu
endVar

   mnuNone.addText( "" )
   mnuNone.show()

endMethod

To later restore the main Paradox menu, use ObjectPAL to:

  1. Remove your blank menu.

  2. Display the Desktop menu.

The following code sample shows how to do this:

method pushButton(var eventInfo Event)

   removeMenu()
   desktopMenu()

endMethod

Note: The Paradox Help files suggest you only need to call removeMenu(). However, recent versions do not restore the desktop menu after removing your menu. Use desktopMenu() to do this.