Discussion:
Reset Front Panel Position in Front Panel Editor
(too old to reply)
jorgewpi
2008-08-12 13:10:09 UTC
Permalink
Hello,
 
I have a quick question:
 
Is there a shortcut to restore the front panel location(offset, delta) to the default (with the "origin" dot in the top left corner) inside the front panel editor?  I have a front panel with a set size and controls hidden off screen.  When I scroll down to access the controls I have to scroll back to the original position or else the front panel appears "off-center" when I run the VI.
 
Thanks!Message Edited by jorgewpi on 08-12-2008 08:07 AM
falkpl
2008-08-12 13:40:16 UTC
Permalink
For many of my GUI applications I procramatically change the pane.origin to 0,0 so it resets at runtime.  If you have a pre LV 8 the origin is a property of panel and not of pane since panes were not introduced yet.  You could also make a utility to do this, get all vis in memory select the vi you want to reset and call the origin (0,0) property on the selected reference.  As for a button on the front pannel I havent noticed one, but its not a bad idea.
 
jorgewpi
2008-08-12 13:40:18 UTC
Permalink
falkpl,
 
Resetting the origin at runtime is a great idea, thanks.  Sometimes I use my laptop's touchpad and trying to be precise can get really annoying.
 
Thanks!
Jorge
falkpl
2008-08-12 17:40:10 UTC
Permalink
I have a simpel vi to do this and just drop it in when needed, this saves me the 30 seconds it would toke to implement it.
Loading...