LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab Attribute required

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(3,233 Views)

Hi,

 

you can dim the tab panel itself using SetPanelAttribute.

0 Kudos
Message 2 of 5
(3,231 Views)

How?

 

I mean how can i be specific to only Tab 2?

0 Kudos
Message 3 of 5
(3,228 Views)
Solution
Accepted by topic author mhs100

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 );

 

 

GetPanelHandleFromTabPage

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

Purpose

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.

Message 4 of 5
(3,225 Views)

You can use

 

SetTabPageAttribute (ATTR_DIMMED)

0 Kudos
Message 5 of 5
(3,200 Views)