----- "Jacek Kałucki" <[email protected]> wrote:

> Użytkownik Adrian Klaver napisał:
> > On Wednesday 09 December 2009 8:12:44 am Jacek Kałucki wrote:
> >    
> >> Hi,
> >>
> >> I noticed that Tab/ShiftTab keys aren't handled by dComboBox
> control.
> >> I can enter by can't leave control with this keys - focus remains
> on it.
> >>      
> > I have forms where this works. I have found that the behavior you
> report is
> > caused by not having the controls laid out on a dPanel.
> >    
> 
> My control container is dPage object.
> 
> -- 
> Regards
> Jacek Kałucki
> 

I would create a dPanel, add the controls to them and then add the dPanel to 
the dPage. Something like:


class ProjectionPanel(dabo.ui.dPanel):
    
    def afterInit(self):
        self.ds = self.Form.getBizobj("public.projection")
        self.Name = "projection"
        self.RegID = "projectionPanel" 
        self.Sizer = vs = dabo.ui.dSizer("v")
        vs.appendSpacer(10)
        vs.append(dabo.ui.dLabel(self,RegID="ppPlantNameLbl",FontBold=True))
        vs.appendSpacer(10)
        vs.append(dabo.ui.dLabel(self,Caption="Projections",FontBold=True))
        vs.appendSpacer(10)
        vs.append(ProjectionGrid(self),1,"x")



class ProjectionPage(dabo.ui.dPage):
    def initProperties(self):
        self.Caption = "Projection"
        self.RegID = "projectionPage"
        
    
    def initSizer(self):
        self.Sizer = dabo.ui.dSizer("v")
    
    def afterInitAll(self):
        self.panel = self.addObject(ProjectionPanel)
        self.Sizer.append1x(self.panel)




Adrian Klaver
[email protected]
_______________________________________________
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/1591296557.220631260480535598.javamail.r...@sz0030a.emeryville.ca.mail.comcast.net

Reply via email to