Print Page | Close Window

Disable popup menu item

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8954
Printed Date: 08 November 2025 at 7:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disable popup menu item
Posted By: kylechen
Subject: Disable popup menu item
Date Posted: 29 November 2007 at 9:31am
Hi,
 
I have a menu structure like this:
 
Edit
    Copy
    Cut
    Paste
    Move
         Left
         Right
         Up
         Down
    Properties
 
Here Move is a popup menu item which contains a submenu. I'd like to disable the "Move" item now but since it's a popup menu item, it has no ID so I cannot use OnUpdate... (I'm using VC6.0 + XTP11.2.0)
 
Anyone can help me?
 
Thanks!



Replies:
Posted By: Oleg
Date Posted: 30 November 2007 at 1:10am
Hi,
 
We have trick to assign some id for Popup items: in menu resource editor add id after \t in caption:
 
Move\t200.
 
Now Move has id 200 and you can add Update handler.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: kylechen
Date Posted: 30 November 2007 at 8:34am
Thanks oleg, it's so cool!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net