LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can control style be detected?

After using functions to create different NewCtrl(,,,) and have their return ControlID values. Can we use any CVI command to get a ControlID for detecting its Control Style (is it a CommandButton, ToggleButton, Ring, TextBox ... style)?
 
Thanks for any help
0 Kudos
Message 1 of 2
(3,146 Views)

Hi, it is me again. While I am waiting for help, I did try to find the way & I found it. Here is my way:

  GetCtrlAttribute (i_Panel, i_controID, ATTR_CTRL_STYLE, &i_ctrlStyle);    // Every Control Style has its own constant number
  
  if (i_ctrlStyle == CTRL_SQUARE_RADIO_BUTTON)     //     **********  CTRL_Style detection
  {

  }

Smiley Wink 


 

0 Kudos
Message 2 of 2
(3,140 Views)