04-08-2020 05:58 PM
HI,
Though I know LabVIEW very well and have done some C C++ I have not used LabWindows in anger, so please excuse a possible stupid question.
I have a project at least 10 years old with very little documentation I am looking to upgrade. This project was written in Borland C but used LabWindows, I do not know what version to provide the UI.
Having spend some time going throught the code and mostly understanding it I have a problem with SetCtrlAttribute.
So I understand in LabWindows CV the format of this command is
int SetCtrlAttribute (int panelHandle, int controlID, int controlAttribute, ...);
so for example
SetCtrlAttribute (screen, ScreenRes_Interval, ATTR_CTRL_VAL, 1);
but in my C code I have
SetCtrlAttribute (screen, ScreenRes_Interval, 6, 7);
so ScreenRes_Interval is a numberic control type on a Panel called ScreenRes, I have found the .h file with that information in it and that makes sense but I cannot find how do I map the integers in my control attribute so 6 in my case what the attribute is?
so basically I am looking for a file or document that hold the values of the ATTR_ so I find out what my code is doing on the UI
many thanks in advance
Danny
Solved! Go to Solution.
04-09-2020 02:43 AM
You'll find them in include/userint.h in the CVI directory.