automatic Posted November 11, 2008 Posted November 11, 2008 (edited) Hi all, i need help with creating a GUI window with 2 menu options. the challenge here is that i want the menu option page layout to be displayed as soon as the menu option is either highlighted with ALT or by a mouse click. $file = GuiCtrlCreateMenu("&1file") $tool = GuiCtrlCreateMenu("&2tool") GUISetState() Do $msg = GUIGetMsg() If $msg = $file Then MsgBox(0,"test","only testing....") EndIf if $msg = $tool then MsgBox(0,"tool test", only tool testing....") EndIf Until $msg = $GUI_EVENT_CLOSE so basically, i want the file msgbox to be displayed by two methods, 1)after i hit ALT (first menu option is selected by default), the file msgbox will be displayed. when i hit ALT+2 or right arrow key, the msgbox for tool will be displayed. 2)by mouse click on each menu option (file, tool, etc). Edited November 11, 2008 by automatic
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now