YellowLab Posted May 7, 2009 Share Posted May 7, 2009 (edited) Quick question for menu creation:How do you tab over in order to add a text description for the assigned hot key?For instance:Open Ctrl+O Save Ctrl+SI guess I could trial and error it with spaces, but was wondering if there was a better way.BTW "Tab" and @Tab don't work.Thanks,BobEdit: Strikethrough based on reply below. Edited May 7, 2009 by YellowLab You can't see a rainbow without first experiencing the rain. Link to comment Share on other sites More sharing options...
Zedna Posted May 7, 2009 Share Posted May 7, 2009 Maybe like this: #include <GUIConstantsEx.au3>#include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 633, 454, 192, 114) $MenuItem2 = GUICtrlCreateMenu("MenuItem2") $MenuItem4 = GUICtrlCreateMenuItem("aaa bbb" & @TAB & "Ctrl+A", $MenuItem2) $MenuItem3 = GUICtrlCreateMenuItem("bb" & @TAB & "Ctrl+B", $MenuItem2) $MenuItem1 = GUICtrlCreateMenu("MenuItem1") GUISetState(@SW_SHOW) Dim $Form1_AccelTable[1][2] = [["^a", $MenuItem4]] GUISetAccelerators($Form1_AccelTable) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
YellowLab Posted May 7, 2009 Author Share Posted May 7, 2009 Thanks, I guess that does work. I tried it and it didn't work, but then reimplemented it in my code and it worked fine. Thanks again, Bob You can't see a rainbow without first experiencing the rain. Link to comment Share on other sites More sharing options...
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