![]() |
dynamic menu created , but not responding |
Post Reply ![]() |
Author | |
winxp ![]() Newbie ![]() ![]() Joined: 28 October 2003 Location: Israel Status: Offline Points: 18 |
![]() ![]() ![]() ![]() ![]() 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 Edited by winxp |
|
![]() |
|
winxp ![]() Newbie ![]() ![]() Joined: 28 October 2003 Location: Israel Status: Offline Points: 18 |
![]() ![]() ![]() ![]() ![]() |
i have uploaded a demo code ... please , if someone can look and tell me what exactly i did wrong , i'll be thankful. Download This ( right click and Save Target As... ) just have a look at MainFrm.cpp , its all there. Edited by winxp |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
replace CXTPControl * pC1 = (CXTPControl*)CXTPControl::CreateObject();to CXTPControl * pC1 = (CXTPControl*)CXTPControlButton::CreateObject(); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
winxp ![]() Newbie ![]() ![]() Joined: 28 October 2003 Location: Israel Status: Offline Points: 18 |
![]() ![]() ![]() ![]() ![]() |
thanks a lot ! working :) last one ... how do i add a menu seperator dynamically ? thanks |
|
![]() |
|
vladsch ![]() Newbie ![]() Joined: 04 February 2004 Location: Canada Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
In your sample to add separator above Item 4:
|
|
![]() |
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 |