Jump to content
Sign in to follow this  
automatic

HELP--Menu layout

Recommended Posts

automatic

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.