Nothing2Lose 0 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 Share this post Link to post Share on other sites
Nothing2Lose 0 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 Share this post Link to post Share on other sites
SmOke_N 211 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. Share this post Link to post Share on other sites
Nothing2Lose 0 Posted August 25, 2010 Can anyone help me??? Over 24h Share this post Link to post Share on other sites
Tvern 11 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. Share this post Link to post Share on other sites