05-18-2016 12:27 PM
Hi,
I have a series of popup windows (individual vi's with data linked usign global variables) which will take the user through a series of actions. As the top one opens the bottom one closes. I can set the size of each Window using the Window bounds property, but how can I align the content within each vi? Scoll bars are my enemy here!
Is there a property that ensures the centre of the vi is placed at the centre of the Window?
Graham
05-18-2016 12:52 PM
Hi Graham,
Is there a property that ensures the centre of the vi is placed at the centre of the Window?
In the first place you should design your VIs in a way you don't need to set their panel origin later on.
In the second part you could use the frontpanel.origin property…
05-18-2016 01:32 PM
Many thanks GerdW. Panel origin works perfectly.
I'm not sure what you mean about vi design. I place front panel icons near the origin and consider screen size, but when vi's run they invariably need scrolling to be positioned correctly. Setting panel origin and window size should prevent that if scroll bars aren't required.
G
05-18-2016 01:42 PM
Hi Graham,
but when vi's run they invariably need scrolling to be positioned correctly
When I design front panels I never need to adjust panel origin at VI start!
So you seem to do something different then I do…
One note: I always have the panel origin (point 0,0) in the upper left corner of the front panel. This helps a lot…
05-18-2016 01:42 PM
You can set the window run-time position to be "centered"
05-18-2016 01:44 PM