LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Adjusting Panels for a ToolTip

Hello,
 
I created a panel to use for ToolTips. I enabled the ExtendedMouseEvents in my application and use the EVENT_MOUSE_MOVE to check if the cursor is over a control for a specified amount of time. When this happens my tooltip panel pops up. The problem I'm having is that I cannot adjust the looks of this tooltip panel to look as a real tooltip.
When I make this panel a Parent Panel, I cannot adjust the frame style and frame thickness, so the tooltip appears in a raised panel, which looks kinda weird for a tooltip.
When I make this panel a Child Panel of the panel it appears in, I can only see the part of the tooltip that overlaps with the parent panel. My tooltips sometimes are pretty large, so this is also not what I want.
 
I hope someone can help me out here...
0 Kudos
Message 1 of 12
(4,577 Views)

I had a similar problem once - solved it by adjusting the drawing position of the child panel after taking into account the size of the text it contained. In other words, if the size of the child panel would cause it to be drawn too far to the right (for example), then simply move it to the left by an appropriate amount. Shouldn't be too hard to come up with a simple algorithm to implement this - if you're really stuck I can try to dig out my old one for you.

JR

0 Kudos
Message 2 of 12
(4,569 Views)
Hi JR,
 
Thanks for the tip. Unfortunately my parent panel is pretty small, which means that I'll have to shrink my tooltip or increase the size of my parent panel.
 
0 Kudos
Message 3 of 12
(4,569 Views)

Hi,

Is there any reason why you are not using the Tip Strip property? Or are we talking about two different things?

Take a look at the VI below (LV 7.1)

Regards.

JV

0 Kudos
Message 4 of 12
(4,542 Views)

Hi Joris,

this is a LabView file, right? I'm working with LabWindows. Is there a way to import this file in my application?

0 Kudos
Message 5 of 12
(4,541 Views)

Oeps, my mistake. Indeed, you are using LW/CVI.

Have you checked out the example on our NI site?

http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_answer=&p_guid=B45EACE3F14556A4E034080...

Regards.

0 Kudos
Message 6 of 12
(4,530 Views)

This is the external link. The other one will probably not work.

 

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3F14556A4E034080020E74861&p_...

0 Kudos
Message 7 of 12
(4,529 Views)
Hello Joris,
 
I checked this example before. Unfortunately two things are missing that I would like to have in my application: 1 - The tooltip appears immediately when the cursor is over the control. I would like to set a delay of 1 second. 2 - The tooltip window has no frame. I would like a tooltip with a yellow background and a black frame around it, like the tooltips in most Microsoft applications.
0 Kudos
Message 8 of 12
(4,527 Views)

Rather than use the ExtendedMouseEvents() function and the clunky EVENT_MOUSE_MOVE code, have you tried the simple SetCtrlToolTipAttribute() function? You get 'genuine' tooltips, which will be drawn off the edge of the panel, if necessary.

JR

Message 9 of 12
(4,523 Views)

Hi JR,

thanks a lot. This is exactly what I was looking forSmiley Very Happy

0 Kudos
Message 10 of 12
(4,516 Views)