Hi, I encountered a problem with dGridSizer and some custom control. I created custom control with buttons and dPanel as container, that simply acts as set of buttons. I used it widely on my forms without problems so far. Now I put it on dGridSizer and got little surprise. When grid columns aren't expanded, everything looks fine, like this: http://img194.imageshack.us/img194/6689/daborightbuttons.jpg
But when I try to expand sizer columns, it becomes a bit garbaged : http://img22.imageshack.us/img22/5227/dabobadbuttons.jpg Here is the control class code: class cCmdButtonGroup(dabo.ui.dPanel): _proxy_buttons = [] def __init__(self, parent, properties=None, attProperties=None, buttons=None, orientation="h", *args, **kwargs): self.__constructed = False cName = self._extractKey((properties, attProperties, kwargs), "NameBase", "") if not cName: cName = self._extractKey((properties, attProperties, kwargs), "Name", "cCmdButtonGroup") dabo.ui.dPanel.__init__(self, parent=parent, properties=properties, attProperties=attProperties, *args, **kwargs) self._baseClass = cCmdButtonGroup sizer = self.Sizer = dabo.ui.dSizer(orientation) idx = 0 for caption in buttons: button = dabo.ui.dButton(self, Caption=caption) self.Bind(wx.EVT_BUTTON, self._onWxHit, button, idx) self._proxy_buttons.append(button) sizer.append1x(button) idx += 1 self.__constructed = True self.layout() self._properties["NameBase"] = cName self._setNameAndProperties(self._properties, **kwargs) Any suggestions please? -- Regards Jacek Kałucki _______________________________________________ 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]
