LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

EVENT_MOUSE_POINTER_MOVE and Tab Controls

Solved!
Go to solution
Is there a way to get EVENT_MOUSE_POINTER_MOVE events in a callback whenever the user moves the mouse over a panel that's part of a Tab control?  Basically, I don't see a way to define a panel callback for the panels that are made inside of a Tab control, which would be possible using the old EasyTab way of doing things.  I can define a panel callback for the panel that the Tab control is on, but that callback appears to not receive EVENT_MOUSE_POINTER_MOVE events when the mouse is over the Tab control.  I can put a callback on the Tab control itself, but it seems to only receive EVENT_MOUSE_POINTER_MOVE events when the mouse is at the edge of the control.  It seems like there is something obvious that I am missing here, but I can't figure out what it is.  Thanks!
0 Kudos
Message 1 of 3
(3,785 Views)
Solution
Accepted by topic author tstanley

You can get the panel handle of the desired tab, and then install a panel callback for that panel. I've attached a sample program. Hope this helps.

Message 2 of 3
(3,760 Views)

Thanks for your help!  I had a feeling I was missing something - adding the callback programmically was it.  Your code worked great.

I guess as a general suggestion for future releases of CVI, it would be nice if panel callbacks for Tab controls could be added/created on the User Interface editor, but it is not a big deal for me.

0 Kudos
Message 3 of 3
(3,750 Views)