you can use Plot Area's Width and Height properties (see attachment) to resize the plot area, and when you resize the plot area, the object automatically resize
* I'm using LV 8 *
Message Edited by Elsa Fung on 01-18-2006 06:27 AM
But, does not the Plot area size property node resize the block as well in order to retain the ratio of plot are to block size??
You have mentioned that you have tinkered with it.
does it not suit your purpose?
Message Edited by devchander on 01-18-2006 06:36 AM
I want to determine the size of the object......sometimes the object size have to be 100x200 and sometimes 150x150.
I want to fix the object size.......not the plot area.....i don't know how i have to do.
The only way to resize i 've found is resizing the plot area but then the object resizes too and i can't fix its size.
How can i do ?
i want to change the size of the whole object.....i have more than two sizes.....i think create several objects is not a good solution.
I think that have to exist an atribute to change the size of the whole object, is not so strange...isn't it?
I suppouse that this explanation resolves your question:
Property of GObject.
Maximum bounding area of the object specified in terms of width and height in pixels. For a front panel object, this property returns the dimensions of the rectangle enclosing all the visible object components, such as the control, caption, label, graph legends, and so on.
The following table lists the characteristics of this property.
|Settable when the VI is running||No|
|Need to authenticate before use||No|
|Loads the block diagram into memory||No|
|Remote access disallowed||No|
|Loads the front panel into memory||No|
|Must wait until user interface is idle||No|
|Available with control VIs||No|
|Available with global VIs||No|
|Available with strict type definitions||Yes|
|Available with polymorphic VIs||No|
|Available in Run-Time Engine and Real-Time Operating System||Yes (Read Only)|
It's the same as on this document:
http://digital.ni.com/public.nsf/websearch/C084C87C51976399862562FC00041D0A?OpenDocument (its for LV 4 but I tried in LV8 and bounds property is neither changeable).
So I think it is not possible to change an object dimensions but I give you a link that perhaps can help you (I had no time to look at it):
NI Applications Engineer
Plot Area:Bounds and Plot Area:Size are two different properties.
Plot Area:Size resizes the entire control.
Plot Area:Bounds resizes just the plot region.
For a nice example VI showing the resizing and letting you play with it dynamically: