LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

tab control

Hello,

I am trying to change the label on a tab control in developer mode. It (CVI9) won't allow me and displays message:

'Attempted to make an inoperable control the active control'

Has anyone else run into this problem?

-John

0 Kudos
Message 1 of 9
(6,238 Views)
What kind of control are you trying to change?  Does this happen if you create a new project and create another control of the same type? 

Mark E.
National Instruments

0 Kudos
Message 2 of 9
(6,206 Views)
It is the label on the tab page of a tab control.
0 Kudos
Message 3 of 9
(6,197 Views)
Are you trying to change the label programmatically or manually?  If programmatically, could you share the line(s) of code you're using? 

Mark E.
National Instruments

0 Kudos
Message 4 of 9
(6,159 Views)
I can change the tab labels programmatically but cannot change them in developer mode; I also cannot move the tabs.
0 Kudos
Message 5 of 9
(6,153 Views)
Does this happen if you create a new project and create another control of the same type? 

Mark E.
National Instruments

0 Kudos
Message 6 of 9
(6,120 Views)

I can create a new project with a tab control and it behaves correctly.

0 Kudos
Message 7 of 9
(6,101 Views)
I apologize for not understanding what you are saying.  I've tried very hard to reproduce the behavior you are seeing, but I can't.  I need a very specific list of steps that you follow, preferably with screenshots, describing the actions you take to get this error message.  Thank you! 


Mark E.
National Instruments

0 Kudos
Message 8 of 9
(6,058 Views)

I see this error in a TestStand CVI user interface when the focus has been on a control (say an edit control) then the user right clicks on a sequence to run it - at which point the TestStand engine attempts to display a new execution. However the aforementioned CVI error is generated.

 

To circumvent this, it seems the developers wrap the offending UI calls like this:

 

  SetBreakOnLibraryErrors (0);
  error = GetPanelAttribute (GetTxPanel(), ATTR_VISIBLE, &RxPanelVisible);
  error = GetPanelAttribute (GetTxPanel(), ATTR_VISIBLE, &TxPanelVisible);
  SetBreakOnLibraryErrors (1);

 

Hope this helps,

 

Ronnie

Message Edited by Believer on 05-12-2010 09:58 AM
Message Edited by Believer on 05-12-2010 10:00 AM
TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 9 of 9
(5,576 Views)