Disable popup submenu |
Post Reply |
Author | |
larryp
Groupie Joined: 15 January 2005 Location: United States Status: Offline Points: 61 |
Post Options
Thanks(0)
Posted: 28 February 2005 at 11:07pm |
How do I disable a popup submenu? Since it does not have an ID, I
don't know how to find it to call SetEnabled(false). I would
rather not use the caption since my program is translated into several
languages.
Larry |
|
antonin
Newbie Joined: 26 January 2005 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Use the command updateUI handler
|
|
larryp
Groupie Joined: 15 January 2005 Location: United States Status: Offline Points: 61 |
Post Options
Thanks(0)
|
UpdateUI handlers do not work in this case because the popup submenu does not have an id.
The case I am referring to is the Windows or Direct3D menu in the following example: |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
you can assign some id in OnCreateControl handler.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
larryp
Groupie Joined: 15 January 2005 Location: United States Status: Offline Points: 61 |
Post Options
Thanks(0)
|
Are there currently any samples that show assigning an id in the OnCreateControl handler?
Even in OnCreateControl, how do I know when to assign the id since it is called for all menu items? I can narrow the choices by looking at the controlType (xtpControlPopup) but short of using the caption I dont' know when to assign the id. |
|
fishy
Newbie Joined: 26 October 2005 Status: Offline Points: 17 |
Post Options
Thanks(0)
|
Did you ever figure this out? I am wanting to do exactly the same
thing and I can't find any samples that cover this situation at all.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, Most easy way is to use WM_XTP_AFTERCREATECONTROL appeared in 9.80 ON_XTP_AFTERCREATECONTROL() void CMainFrame::OnAfterCreateControl(LPCREATECONTROLSTRUCT lpCreateControl) } |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |