Nothing2Lose Posted August 13, 2010 Share Posted August 13, 2010 (edited) Hi, I have got a trouble . I create a menu like this: | Active (menu item) | Manage Work (expand menu) >| Manage (menu item) _________________________| Status (expand menu) >| Enable (menu item) ____________________________________________| Disable (menu item) But only "Manage Work" works normally (as an expand menu) , "Status" is a menu item (i expect it will be an expand menu like "Manage Work" ). Can you tell me what the matter's??? This is a part of my code, the others work perfectly... $stt = _GUICtrlMenu_CreateMenu() _GUICtrlMenu_InsertMenuItem($stt, 0, "Enable", $stt_en) _GUICtrlMenu_InsertMenuItem($stt, 1, "Disable", $stt_dis) $Menu = _GUICtrlMenu_CreateMenu() _GUICtrlMenu_InsertMenuItem($Menu, 0, "Manage", $list) _GUICtrlMenu_InsertMenuItem($Menu, 1, "Status", $stt) $Tl = _GUICtrlMenu_CreateMenu() _GUICtrlMenu_InsertMenuItem($Tl, 0, "Active", $button) _GUICtrlMenu_InsertMenuItem($Tl, 1, "Manage work", 0, $Menu) Thank you very much!!! :-* :-* :D Edited August 13, 2010 by Nothing2Lose Link to comment Share on other sites More sharing options...
Nothing2Lose Posted August 13, 2010 Author Share Posted August 13, 2010 Can anyone help me? I tried to fix this problem but it comes to nowhere I tried finding a remark from AutoIT but I found nothing Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 13, 2010 Moderators Share Posted August 13, 2010 The group of dedicated AutoIters that answer questions here, unfortunately, are not on your pay-roll. Therefore, we request you show some forum etiquette and not bump a thread within 24 hours of your last post. ---- On another note, it helps your cause when you post a re-creation script that actually can be run so that we/they do not have to go out of the way to help you. Some of us won't. It also helps to be annoyingly detailed in your request for help. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Nothing2Lose Posted August 25, 2010 Author Share Posted August 25, 2010 Can anyone help me??? Over 24h Link to comment Share on other sites More sharing options...
Tvern Posted August 25, 2010 Share Posted August 25, 2010 I have to agree with this:On another note, it helps your cause when you post a re-creation script that actually can be run so that we/they do not have to go out of the way to help you. Some of us won't.It also helps to be annoyingly detailed in your request for help.The only thing I can tell you from looking at the lines you posted is that "Manage work" is the only item where you specified $iCmdID=0 and that has $hSubMenu set.I guess that's the cause of the problem, but without a working example it will stay guesswork. 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