08-14-2012 04:21 PM
Hi all,
In my application, I have a panel separated by a splitter bar. For the graph, I selected ‘Scale object with pane’ to automatically resize the graph to fit the panel. When I manually change the size of the window (by dragging the bottom-right corner of the window), the graph is resized to fit the panel only when I release the mouse button (screenshot ‘when_manually_resized.gif’). How can I configure the control or the VI to allow the graph to be fitted all the time the window is resized?
Thanks a lot.
Cedric
08-14-2012 08:19 PM - edited 08-14-2012 08:25 PM
Simple way would be Enabling scale object with Pane (Right click Graph and select scale object with Pane). Make sure that you do this finally once you set the window size otherwise it will get resized whenever you resize the window even in edit mode.
08-14-2012 08:38 PM
Oops sorry I din't read completely. Please Ignore the reply
08-14-2012 10:19 PM
ok, I found the solution:
- from the bottom-right corner of the panel-> right-click -> 'Pane sizing' -> 'scale objects while resizing' (see attached screenshot)
- then right-click on the control (the graph in my example) -> 'fit control to pane'
now when you resize the window, the graph is automatically resized in real-time.
Cedric