On Dec 12, 2007 1:28 PM, Ed Leafe <[EMAIL PROTECTED]> wrote:
> On Dec 12, 2007, at 3:24 PM, Nate Lowrie wrote:
>
> > Why did you embed
> > the dGrid object in a panel/Sizer when you could have just added it to
> > the mainForm sizer?
>
> That's a standard practice, especially when you need to work with
> Windows. The panel gives Windows forms a cleaner look, and also
> provides the tabbing between controls on all platforms.
My bad. I quickly skimmed the code...Normally, on my form I do the following:
self.Sizer = dabo.ui.dSizer('v')
self.panel = dabo.ui.dPanel(self)
self.Sizer.append1x(self.panel)
self.panel.Sizer = vs = dabo.ui.dSizer('v')
and then add all controls to vs. With the code you have now, that
button bar is going to look weird on Windows for the same reasons Ed
gives above...
Also, you have you're controls spread out over multiple panels. You
will get tabbing between those in the dGridSizer, but you cannot tab
from the dGridSizer controls to the button bar controls to the dGrid.
John, I am just wondering why you coded the panel classes the way you
did...
Cheers,
Nate L.
Cheers,
Nate L.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]