LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Could be A bug in tab control of CVI8

Tab control is used in my program, there are total 4 tabs(main, setup, cleanup,and report), please see attached, there's a table control in first tab:main tab. On its right-click menu, "Goto Report" callback is used to set active tab to the report tab. I encountered a run-time error duing executing this callback. I appreciate someone could help me out of this trouble. Thanks! Jacky
Download All
0 Kudos
Message 1 of 2
(2,740 Views)

Since tab pages really are child panels of the panel the tab control is on, each callback for a control on a tab page receives the handle of the tab page itself, not the one of the parent panel. This last handle can be retrieved with

GetPanelAttribute (panelHandle, ATTR_PANEL_PARENT, &parent);

On the parent panel handle you may call your

SetActiveTabPage (parent, PANEL_TAB, 3);



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,725 Views)