08-15-2006 10:02 AM
08-15-2006 10:40 AM
08-15-2006 10:44 AM
08-15-2006 12:54 PM
08-15-2006 01:21 PM
08-15-2006 01:30 PM
Outside of scripting (another topic all together) there is no methods for programatically creating controls as you could in a language such as c++ or c# with a constructor. All control references are built at design time and are stored in the object[] properity of the owner vi. This is because Labview is a managed memory language and is based on data flow (so all objects are known). What exactly are you trying to do, if it is just drawing then I would suggest the embedded transparent picture control (much like having a 2d device context or a canvas to work with) If you are doing something more static then a combination of visible/not visible objects and pictures might work.
Paul
08-15-2006 01:40 PM
08-15-2006 02:12 PM
Darryl wrote;
"
My customer wants to be able to create (at runtime) a "process map" where they can drag around icons (thermometer, tank, etc) and put lines between them to represent their plant process and have the data values change in the icons, etc.
"
I have done similar stuff in multiple apps using the picture control.
Check out this thread were I have collected posts about the Picture control.
http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=14&jump=true
Warning:
There is NO "out-of-the-box" solution for this. It must all be coded. But, it can be done.
Ben
08-15-2006 02:27 PM
08-15-2006 03:36 PM