Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable application menu?

Status
Not open for further replies.

lemonjuice

Programmer
Jun 12, 2003
62
ZA
We created a login form on our application and we want to disable the application menu while the login screen is showing. How do you disable the application menu?
 
lemonjuice,

To hide the current menu, create a blank menu and then show it:

Code:
method pushButton(var eventInfo Event)
var
   mnuNone  Menu
endVar

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

endMethod

When you're ready to display your application menu, call show() for your menu variable.

Alternatively, you can restore the default menu by removing the current menu:

Code:
method pushButton(var eventInfo Event)

   removeMenu()

endMethod

Hope this helps...

-- Lance
 
Lance,

I did it the way you suggested and it worked.

Thanx for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top