![]()  | 
 
dynamic menu created , but not responding | 
 
    Post Reply  
   | 
  
| Author | |
   
   winxp  
   
   Newbie  
   Joined: 28 October 2003 Location: Israel Status: Offline Points: 18  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: dynamic menu created , but not respondingPosted: 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  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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. Download This ( right click and Save Target As... ) just have a look at MainFrm.cpp , its all there. Edited by winxp  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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  | 
 |
![]()  | 
 |
   
   winxp  
   
   Newbie  
   Joined: 28 October 2003 Location: Israel Status: Offline Points: 18  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 09 December 2003 at 6:34pm | 
 
| 
   
    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  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 05 February 2004 at 6:27am | 
 
| 
   
    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  |