Skipping a Control While Tabbing in LabWindows™/CVI™

Updated Aug 8, 2018

Reported In


  • LabWindows/CVI

Issue Details

I have several controls on my user interface (UI) in LabWindows™/CVI™. I want to be able to change the tabbing order on my UI but I can't seem to be able to skip a control. How can I skip a control when tabbing?


LabWindows/CVI currently does not have built in functionality to skip a control while tabbing. However, there are several ways to achieve this behavior which include:
  • Changing your control to an indicator - LabWindows/CVI will automatically skip an UI object that is defined as an indicator. Only when a UI control has a control mode of "Hot" or "Normal" will the object be included in the tabbing sequence.

  • Dim the control - When a control is dimmed in LabWindows/CVI, the control is skipped in the tabbing sequence. You can enable and disable dimming a control programmatically with the SetCtrlAttribute() function and the attribute ATTR_DIMMED. This is useful when the control you want to skip is not being used at that time.

  • Change the active control when a control gets focus - You can make a currently selected control set the next control as active when it comes into focus. It is possible to check whether the user clicked on that control or tabbed to it with a callback like: 

    switch (event) 

        case EVENT_LEFT_CLICK: 
          focus = 1; 

        case EVENT_GOT_FOCUS: 
          if (focus == 0) 
            SetActiveCtrl (panelHandle, PANEL_NUM); 

        case EVENT_LOST_FOCUS: 
          focus = 0;