Jump to content

Hide and/or Disable Top-level menu


this-is-me
 Share

Recommended Posts

It seems that if the $GUI_HIDE or $GUI_DISABLE is applied to a top-level menu EDIT: or just $GUI_HIDE on any menu item, it does not work. Is there any way to disable the top level menu sometimes and hide the menu altogether at others?

Another question, could someone look into adding support to the gui to allow a menu to be called by the script? Something like this is what I want:

$filemenu = GUICtrlCreateMenu ("&File")
$fileitem = GUICtrlCreateMenuitem ("Open", $filemenu)
GUIShowMenu($filemenu, x, y)

This way, a menu could be popped up from a button in custom places, or a menu could be called without a showing gui [maybe from hotkey].

EDIT: Can there be a GUIDeleteMenuItem as well? I sometimes need to remove a menuitem from a menu completely. I also need to temporarily hide a menuitem from a top menu using $GUI_HIDE without deleting it.

Edited by this-is-me
Who else would I be?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...