On Mar 2, 2011, at 8:58 AM, Werner F. Bruhin wrote:

> I am trying to have a dDockForm with two sets of dDockTabs, first one 
> e.g. on top half and second one on bottom half and they should take as 
> much space as is available to the dDockForm.
> 
> Adding one set of dDockTabs with this:
> 
> class MainForm(dabo.ui.dDockForm):
>     def afterInit(self):
>         self.Caption = "Hello wiztest"
>         self.addObject(self.Application.ui.WizDockTabs, Name="MainTabs1")
> 
> Works fine, but it only shows if WizDock uses explicit sizing instead of 
> using the available space in dDockForm - i.e. all as it is the only control
> 
> If I do:
> class MainForm(dabo.ui.dDockForm):
>     def afterInit(self):
>         self.Caption = "Hello wiztest"
>         self.addObject(self.Application.ui.WizDockTabs, Name="MainTabs1")
>         self.addObject(self.Application.ui.WizDockTabs, Name="MainTabs2")
> 
> Only the first set is showing, the second one is below the first one.
> 
> I tried using Layout on the different sizers I can get to but that 
> doesn't do it, so I guess that I need to define the growing/expanding 
> somehow, but can't figure it out.

        You are adding the objects to the form, but not to any sizer. I would 
rewrite the first example as:

class MainForm(dabo.ui.dDockForm):
    def afterInit(self):
        self.Caption = "Hello wiztest"
        docTabs = self.Application.ui.WizDockTabs(self, Name="MainTabs1")
        self.Sizer.append1x(docTabs)



-- Ed Leafe



_______________________________________________
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/[email protected]

Reply via email to