Jump to content



Photo

HELP--Menu layout


  • Please log in to reply
No replies to this topic

#1 automatic

automatic

    Seeker

  • New Members
  • 2 posts

Posted 11 November 2008 - 05:31 PM

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, 11 November 2008 - 05:36 PM.











0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users