Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Access a Control Located on Inactive Tab in CVI

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 2.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I am using a native Tab Control in CVI and would like to access a control located on an inactive tab page so that I can read or write to it.  How can I access a control that is located on an inactive tab page?

Solution:
In order to access a control located on an inactive tab page of the native tab control in CVI, you must retrieve the panel handle of the tab page in the tab control where the control exists. The panel handle of the tab control can be obtained by using the following function:

int GetPanelHandleFromTabPage (int panelHandle, int controlID, int index, int *tabPanelHandle);

The index parameter will be the index of the tab page where the control is located.

Now, you can read or write to a control on an inactive tab page, by using the tabPanelHandle to specify where the control is located.



Related Links:

Attachments:





Report Date: 03/18/2008
Last Updated: 03/18/2008
Document ID: 4JHCHJCZ

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit