@GReaper wrote:
Is there a way I can get all three of these to scale with resizing of the front panel?
The how has already been given to you. There is a warning however: Scaling controls is a very tricky business.
While it seems simple to just scale every control in whatever aspect ratio the window is scaled this does work
not very well since many objects are more complex than just a simple
rectangle. For instance if there is text in there should the text be
scaled as well or not? Apart from the fact that scaling text is not
something that is supported very well by most Widnows versions, if you
do not scale the text do you still want to scale the rest of the
control, possibly ending up with a huge button with a relatively tiny
text inside? Should only the outside of the control be scaled or all
individual parts as well? For a table this could be column widths,
scrollbars, etc. Basically there is no single good way but allowing to
specify all this different aspects of scaling would make the editing of
a front panel highly complex. LabVIEW chooses to not scale fonts and
most subparts of controls but only the outer bounds which is usually ok
but doesn't always give a nice result.
LabVIEW has one more problem at least < 8.0 and maybe in 8.0 too,
and that is adaptive rounding errors. When scaling a control the new
positions are rounded to integer values (you don't have half pixels on
a screen) and these values are then used as start point at the next
resize operation. Repeatingly resizing a window will slowly make the
controls creep away and after a while the carefully aligned controls
will not look so aligned anymore. Closing the window and reopening it
will restart with the original positions so it is not a capital problem
but it is a cosmetic issue.
Usually a much better aproach is to use the one control resize option.
With this you have only one single control in the panel that is really
resized and all the rest is only moved along depending on the relative
position of those controls to the resized control. You select this mode
by selecting the control you want to resize and then selecting in
LabVIEw < 8.0 from the main menu "Edit->Scale Object with Panel"
or in LabVIEW 8 select "Scale Object with Pane" in the context pop-up
menu of that control.
Rolf Kalbermatter
Message Edited by rolfk on 04-06-2006 09:38 AM
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390