TechTricks
Technical answers from the trenches 
 
 
 
 

     
   
Hiding (and Restoring) the Main Paradox menu
 
   
 Posted: 25 March 2004
 
   
 
 Applies to: All versions
 
   
 
Audience: Beginner
 
       
   

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.

 

       

Top

Feedback About Paradox Delphi Assorted Web Stuff
 
 
Copyright © 2000-2004, techtricks.com; All Rights Reserved.
Acknowledgements, Disclaimers, Terms and Conditions.
Article last updated on 25 March 2004

 

Other Sites: Paradox, Delphi, Perl, Web Stuff, and More


 

[- End -]