johnf wrote:
> I have added a how to.  Using Ed's suggestion Larry and I (mostly Larry) made 
> a test case.  Please feel free to offer any suggestions.
> http://dabodev.com/wiki/HowToOverLayControls

Why the extra panel? Why not simply subclass dPageFrameNoTabs?

## before:

class Wtpgf(dabo.ui.dPanel):
         def afterInit(self):
                 self.Sizer = hs = dabo.ui.dSizer("h")
                 #hs.append(dabo.ui.dLabel(self,Caption='hellow worl;d'))
                 pageFrame = pgf = 
dabo.ui.dPageFrameNoTabs(self,DynamicSelectedPageNumber=self.GetDisplayMode,RegID='WtPgf')
                 pgf.appendPage(pgCls=KiloPanel)
                 pgf.appendPage(pgCls=LbsPanel)
                 hs.append(pgf, 1,"x")
         def GetDisplayMode(self):
                 return(self.Form.WtDisplayMode)


## After:

class WtPgf(dabo.ui.dPageFrameNoTabs):
        def initProperties(self):
                self.RegID = "WtPgf"
                self.DynamicSelectedPageNumber = self.GetDisplayMode

        def afterInit(self):
                self.appendPage(pgCls=KiloPanel)
                self.appendPage(pgCls=LbsPanel)         

        def GetDisplayMode(self):
                return self.Form.WtDisplayMode

-- 
pkm ~ http://paulmcnett.com


_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]

Reply via email to