LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

SetActivePanel and EasyTabs

Hi,

I'm using the EasyTab functions to create a tabbed user interface in LabWindows/CVI V7.1. Sometimes, I require these tabs to be programmatically selected, and I use the SetActivePanel() function for this. The desired panel is always made active, but its associated tab is not redrawn in the raised 3-D graphical format, as would happen if activated by clicking on the tab. Instead, the tab of the panel that was active before SetActivePanel() is called remains visually unaltered so that it appears that the contents of the tabbed panel have changed rather than the actual panel itself. Is there a work-around for this?

Thanks,
John.
0 Kudos
Message 1 of 5
(3,642 Views)

Hello,

I never used the EasyTabs, but I guess using the  EasyTab_SetAttribute function with the  ATTR_EASY_TAB_ACTIVE_PANEL attribute instead of using SetActivePanel might solve the problem.

0 Kudos
Message 2 of 5
(3,642 Views)
Hi,

Thanks for the suggestion. This seems logical, but ATTR_EASY_TAB_ACTIVE_PANEL is an invalid attribute for this function.

John.
0 Kudos
Message 3 of 5
(3,634 Views)
This should have worked.  Any chance you have the function parameters out of order?
EasyTab_SetAttribute(panelHandle, TabControlHandle, ATTR_EASY_TAB_ACTIVE_PANEL, HandleOfPanelInTab Control );
0 Kudos
Message 4 of 5
(3,629 Views)
Indeed I had them out of order mrv. It works perfectly, thanks.

John.
0 Kudos
Message 5 of 5
(3,605 Views)