08-16-2006 02:09 PM
08-16-2006 02:12 PM
08-16-2006 02:18 PM
"Surely I am missing something?"
Maybe.
Try
Plot Area:Size:Width
and
Plot Area:Size:Height
Ben
08-16-2006 04:26 PM - edited 08-16-2006 04:26 PM
@Jason King wrote:
I wish I could tell you the rationale behind this, but the behavior predates my tenure at NI.
So, how about asking the all-mighty Greg or Steve? Why is the Bounds property read-only? It would be nice to have a single property for the GObject class so that we can upcast and still resize our objects (and also so we don't have to chase the property each time we want to resize, not to mention the fact that in this specific case the Plot Area properties control the size of the graph and not of the entire control, which is bigger).
P.S. Rob, I understand you gave another "10 things..." presentation at NIWeek. Are you going to upload that one as well?
Message Edited by tst on 08-17-2006 12:28 AM
08-29-2006 01:29 AM
08-29-2006 10:06 AM
08-29-2006 10:37 AM
This was my guess as well and I do know all about the class hierarchy (and as I even mentioned earlier, I believe the Bounds property comes from the Gobject class and not from the Control class).
As I mentioned, however, this does not necessarily make it easier for the user because users then have to start hunting for the resizing properties all over the place and because you don't know what the actual size of the control is without checking the Bounds property (this is important because it could affect the placement of other UI elements as well). Since each object seems to have one element which would significantly affected by resizing the entire object I would expect that it shouldn't be terribly complicated to do this, but I haven't given it much thought and I don't know if it's worth spending time on.