LabWindows/CVI Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
gdargaud

Possibility to change a control style into another

I thought I'd submitted that in the past, but I can't find it.

 

I would like to programmatically do what the F11 button does in the user interface editor: change the style of a control into another one of a similar category, keeping whatever attributes are compatible. For instance a numeric into a thermometer, etc...

 

Currently ATTR_CTRL_STYLE is not settable, and I tried to write some way to transform a control into another with NewCtrl/DiscardCtrl but the main problem is that the control number changes, which complicates the rest of the program needlessly (you can't use constant #defines).

1 Comment
LuisG
NI Employee (retired)
Status changed to: Under Consideration