Jump to content
Sign in to follow this  

HELP--Menu layout

Recommended Posts


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")



$msg = GUIGetMsg()

If $msg = $file Then

MsgBox(0,"test","only testing....")


if $msg = $tool then

MsgBox(0,"tool test", only tool testing....")


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 by automatic

Share this post

Link to post
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
Sign in to follow this