![]()  | 
 
CloseSubMenuOnClick & ShowPopup | 
 
    Post Reply  
   | 
  
| Author | |
   
   dajv  
   
   Groupie  
   Joined: 27 July 2004 Location: Australia Status: Offline Points: 80  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: CloseSubMenuOnClick & ShowPopupPosted: 16 January 2006 at 7:31pm  | 
 
| 
   
    
   I am having problems with CloseSubMenuOnClick not working when showing a dynamically created popup using ShowPopup.
 
   
  I had a look at https://forum.codejock.com/forum_posts.asp?TID=1942&KW=Close SubMenuOnClick but it wasn't any help, and the sample isn't available any more. I have a popup menu with 4 menu items, one of those a popup menu. when items under that sub menu are clicked i want the menu to stay open. any other selection should close the menu. I read in the above linked thread that all menu items must have the CloseSubMenuOnClick property set for it to take effect, but even when i set it for all the controls in the menu (including ones that I don't want it for), the menu always closes. Please see the attached sample, which is code I have taken out of the application. 2006-01-16_193102_reproduce_closeonsubmenuclick_problem.zip Thanks  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 17 January 2006 at 1:17am | 
 
| 
   
    Hello, this option can't work with TPM_RETURNCMD. so choose or TPM_RETURNCMD, or CloseSubMenuOnClick.  | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   dajv  
   
   Groupie  
   Joined: 27 July 2004 Location: Australia Status: Offline Points: 80  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 17 January 2006 at 6:20pm | 
 
| 
   
    
   Thanks, that makes sense.
    
   
   | 
 |
![]()  | 
 |
    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  |