I have a window that pops up, containing X-Y graphs, that are say, 600 pixels wide.
Under some circumstances, I want to reduce this to say, 400 pixels, and uncover a cluster of numeric displays occupying the other space.
I would like to set the BOUNDS.WIDTH of the graph so that it extends right up to the POSITION.LEFT of the cluster.
But I can't adjust the BOUNDS.WIDTH of the graph itself (that property is read-only).
I can adjust the PLOT AREA.SIZE.WIDTH of the graph, which will affect the BOUNDS.WIDTH.
But I can't use that for calculations, because I don't know the margin between the plot area and the graph bounds.
I want it to work when the user re-sizes the window (All objects are scaled when window re-siz
es). He may resize the window, close it, open it again and the size remains as he left it. That means I can't use absolute pixel values to move things around.
I have thought of using decorations: a hidden rectangle that's the size of the small plot area, and another one that's the size of the large plot area. Then set the plot area's SIZE.WIDTH to the width of the small or large decoration. They decorations would scale along with everything else, and all would be OK.
1... Does anyone have a better / different idea?
2... If not, how should I get the reference to the decorations? They can't be named. Using the VI reference, I would have to pick out decorations #3 and #4 or something (there are other decorations already present). That just seems a bit fragile. How can I move these new ones to be #0, and #1 ??