Jump to content
Sign in to follow this  
Nothing2Lose

Expand menu...

Recommended Posts

Nothing2Lose

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??? :Po:)

This is a part of my code, the others work perfectly... o:):party:

$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 :D

Edited by Nothing2Lose

Share this post


Link to post
Share on other sites
Nothing2Lose

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

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

Can anyone help me??? Over 24h ;)

Share this post


Link to post
Share on other sites
Tvern

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

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  

×