On Wed, Jun 18, 2008 at 2:00 PM, Ed Leafe <[EMAIL PROTECTED]> wrote:
> On Jun 18, 2008, at 3:46 PM, Nate Lowrie wrote:
>
>> I add a sizer that has 3 slots.  I click on one of the slots and click
>> on "Edit Sizer Settings" in the pop-up menu.  I set the proportion to
>> 0, expand to false, and the alignment to right.  Then I proceed to add
>> a horizontal sizer into the slot.  The slot will lose it's proportion
>> and size settings and go right back to expand = True and proportion =
>> 1.
>
>        Yeah, that's a bug that's been around for a while. I try to make
> intelligent defaults when adding things; e.g., when adding a label you
> generally don't want it taking up more than the space it needs, so it
> defaults to 0 proportion and Expand=False. IOW, it's the added object
> that controls sizer settings. I haven't spent too much time on it
> because I know how it works and build my design accordingly. I suppose
> I could add checking to see if the slot has non-default settings and
> let those override the new object's defaults.

I agree with you on the intelligent defaults.  However, I would argue
that adding a sizer to a sizer slot is not a case for defaults and
should use the slots current settings.  For example, if you have a
dBorderSizer that has 3 vertical slots, you use one slot for a dGrid,
one slot for a spacer and one slot for a horizontal sizer that holds a
button array, you don't normal want to expand that horiziontal sizer
in either direction.  However, if you are starting a new form and need
to divide the form up with sizers I use the full expand a lot.

The reason I mention this is because once I add a sizer I need to go
to the object tree in object info window to select the horizontal
sizer to change the settings because clicking on things in the window
only gets me the horizontal slots on the sizer.  Where as if I set it
before I insert the sizer, I just have to right click on the slot and
go to edit sizer settings.  A lot quicker.

It's only a convenience thing but it took me by surprise the first
time until I found out about the defaults.  Maybe a better option
would be a preference to shut them off?

Nate L.


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to