LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I trigger a callback by clicking on an Easytab tab?

Hello -

I am using the Easytab tool in LWCVI 5.0.1, and would like to call an "entry" function for a given tab panel when clicking on its tab causes the panel to appear, and an "exit" function when clicking on another tab causes this panel to disappear. Can this be done with callbacks? If someone can steer me in the right direction, I would be most grateful.

Thank you.
Andy Sifferman
0 Kudos
Message 1 of 3
(2,957 Views)
Hi,

Sure you can, first you need to include the name of your callback function when you create your tab ex:

iMainTabCtrl=EasyTab_Create (ipanel, 8, 46, MyCallBackTab, 0); // Check the help on this control

then you write down your Callback as usual, but with the EVENT_TAB_CHANGED. Then you can read wich tab as been called an do whatever you want.

By the way don't forget after creating your CVICALLBACK to declare the prototype.

if you have any other question regarding tabs feel free to ask me. I'm dealing with a lot of them ;-).

I hope that I helped...
0 Kudos
Message 2 of 3
(2,957 Views)
Yes! That is the answer, of course. I have it working already. Thank you very much.

Andy Sifferman
0 Kudos
Message 3 of 3
(2,957 Views)