01-18-2006 05:53 AM
01-18-2006 06:23 AM - edited 01-18-2006 06:23 AM
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
01-18-2006 06:33 AM - edited 01-18-2006 06:33 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
01-18-2006 11:18 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 ?
Thanks
Larson
01-19-2006 06:29 AM
01-19-2006 12:34 PM
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?
Thanks
Larson
01-20-2006 08:48 AM
Hi,
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.
You cannot use this property to change the size of an object. To change the size of an object programmatically, use more specific properties such as Text Width or Plot Area:Size.
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) |
Permissions | 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):
Regards,
Jaime Cabrera
NI Applications Engineer
04-18-2013 05:52 AM
La verdad es que no ha resuleto la duda.
09-02-2021 02:27 PM - edited 09-02-2021 02:27 PM
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: