![]()  | 
 
ToolTip and HitTest | 
 
    Post Reply  
   | 
  
| Author | |
   
   Pixbyte  
   
   Groupie  
   Joined: 11 April 2007 Status: Offline Points: 17  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: ToolTip and HitTestPosted: 05 February 2011 at 7:03am  | 
 
| 
   
    
   Hello, 
   
  I use part of a Tooltip sample in my software.  There I use the "OnToolHitTest" function from the sample. My problem is, that if I move through a visible CommandBar Menu it will show the underlaying buttons tooltip, too. I think cause the "HitTest" is not blocked by the CommandBar Menu.  So my question is, do anybody now how to optimize the "OnToolHitTest" function that it will block the Tooltip while a Commandbar Menu is visible? Ocrana 
    | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 05 February 2011 at 10:53am | 
 
| 
   
    
   Add in top of your method: 
   
  if (XTPMouseManager()->IsTrackedLock(NULL) || XTPMouseManager()->IsMouseLocked()) 		return -1;  | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   Pixbyte  
   
   Groupie  
   Joined: 11 April 2007 Status: Offline Points: 17  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 06 February 2011 at 7:55am | 
 
| 
   
    
   Thanks, 
   
  I work now with OnUninitCommandsPopup and OnInitCommandsPopup to know when a menu is active. Ocrana 
    | 
 |
![]()  | 
 |
    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  |