On Jun 18, 2008, at 4:18 PM, Nate Lowrie wrote:

> 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.

        So you understand the problem: there isn't a simple solution, as  
there are a wide variety of situations that simply can't be  
anticipated. We can possibly refine the rules; again, I think the idea  
to check if the containing slot has non-default settings and respect  
them might get us the most bang for the buck.

> 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.
        
        Understood. I usually develop with the Object Tree window open for  
this very reason: it makes it easy to address all objects, even  
sizers, directly. Right-clicking on the object tree is the fastest way  
to go for me.

> 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?


        Nah, because this would cause more problems than it would solve.

-- Ed Leafe





_______________________________________________
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