Print Page | Close Window

dynamic menu created , but not responding

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=269
Printed Date: 15 May 2024 at 9:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: dynamic menu created , but not responding
Posted By: winxp
Subject: dynamic menu created , but not responding
Date Posted: 04 December 2003 at 3:31pm

hi ,

i managed to create a dynamic menu based on the "notification"

sample. the problem is , that the menu does not respond to its

enevt handler ( using ON_XTP_EXECUTE_RANGE ).

it shows , enabled with the proper check , but when pressing a menu item,

i get nothing !!! i mean the pop up is still there like it was never pressed...

why is that ?

 

thanks




Replies:
Posted By: winxp
Date Posted: 06 December 2003 at 7:47am

i have uploaded a demo code ...

please , if someone can look and tell me what exactly i did wrong , i'll be thankful.

http://planet.nana.co.il/icq121212912/Menu.zip - Download This  ( right click and Save Target As... )

just have a look at MainFrm.cpp , its all there.



Posted By: Oleg
Date Posted: 09 December 2003 at 1:31am

replace

CXTPControl* pC1 = (CXTPControl*)CXTPControl::CreateObject();

to

CXTPControl* pC1 = (CXTPControl*)CXTPControlButton::CreateObject();



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


Posted By: winxp
Date Posted: 09 December 2003 at 6:34pm

thanks a lot !

working :)

last one ... how do i add a menu seperator dynamically ?

thanks



Posted By: vladsch
Date Posted: 05 February 2004 at 6:27am

In your sample to add separator above Item 4:

        pC4->SetBeginGroup(TRUE);




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