Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

a Listbox on a TAB panel

$
0
0

I have a List box on a TAB panel (code below) but I get a -60 error "not a list control" and I am trying to dim some buttons. This works on the main panel but not on the TAB panel. What gives?

 

    CheckListItem (panelHandle, TABPANEL_Select_box, 0, 0);
    CheckListItem (panelHandle, TABPANEL_Select_box, 1, 0);
    CheckListItem (panelHandle, TABPANEL_Select_box, 2, 0);
    CheckListItem (panelHandle, TABPANEL_Select_box, 3, 0);
    CheckListItem (panelHandle, TABPANEL_Select_box, 4, 0);
    CheckListItem (panelHandle, TABPANEL_Select_box, 5, 0);

 

       GetCtrlVal(panelHandle,TABPANEL_Select_box,&value);

 

     SetCtrlAttribute(panelHandle,TABPANEL_2_COMMANDBUTTON_2, ATTR_DIMMED,1);    //dimmed
     SetCtrlAttribute(panelHandle,TABPANEL_2_COMMANDBUTTON_3, ATTR_DIMMED,1);    //dimmed


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>