04-12-2011 01:23 PM
Hi all,
Is there any tab attribute present in CVI by using of which disables or Dimmed all the controls present on that tab?
Can ATTR_DIMMED disables all the controls present on that tab?
Regards,
mhs100
Solved! Go to Solution.
04-12-2011 01:39 PM
Hi,
you can dim the tab panel itself using SetPanelAttribute.
04-12-2011 01:49 PM
How?
I mean how can i be specific to only Tab 2?
04-12-2011 01:58 PM - edited 04-12-2011 02:00 PM
ah... before you can access any tab panel, you need to use
GetPanelHandleFromTabPage ( panel_handle, PANEL_TAB, 1, &tabpanel_2_handle );
for every tab panel. This will give you the panel handle tabpanel_2_handle for the tab panel PANEL_TAB which you can use to set attributes of this panel using SetPanelAttribute ( tabpanel_2_handle, ATTR_DIMMED, 1 );
int GetPanelHandleFromTabPage (int panelHandle, int controlID, int index, int **tabPanelHandle);
Retrieves the panel handle of a tab page in a tab control.
Use the panel handle to specify the panel associated with the tab page in subsequent function calls.
04-18-2011 01:16 PM
You can use
SetTabPageAttribute (ATTR_DIMMED)