Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically move objects on a panel in Lookout

 
I have an application that I would really like to make generic and configurable.
 
To do this I would need to move objects on a panel around a panel based on a value I had stored somewhere.  Does anyone know if this is possible or any work arounds?
 
I have thought of an alternative, using a separate panel for each object to be moved, and then using the x,y writable members, however to make this work and look ok on screen I would like to be able to hide the surrounding window and window controls - has anyone got any suggestions here?
 
Any help would be most appreciated.
0 Kudos
Message 1 of 5
(6,145 Views)
If the object you want to move is just a graphic, you can use Animator object. Load the graphic file to Animotor and its X, Y can be set programmatically.
But for a control, such as Pot, Switch, I can't find a way to programmatically move it.
Ryan Shi
National Instruments
0 Kudos
Message 2 of 5
(6,140 Views)
Ryan, any thoughts on the idea of using a panel and removing the normal surrounds and close/minimise/maximise functions.  Ian
0 Kudos
Message 3 of 5
(6,128 Views)
I don't see any way to remove the surrounds of the panel.
Ryan Shi
National Instruments
0 Kudos
Message 4 of 5
(6,113 Views)

A trick around this is to save the whole application as an aggregate object several times (as many as needed, with different names, accordingly).

Open one aggregate object at the time and relocate the objects as needed, or do the changes as needed (object positioning-sizing, simplifying, different languages, etc). Save as an aggregate again with the same name.

Once all are done, You can create an opening application that selects which aggregate to open, or just open Lookout.INI and set up the default.

That works for me..........Smiley Wink

0 Kudos
Message 5 of 5
(6,034 Views)