Re[2]: GridSizer resizing problem - ERRATA

Michael,

Can you also post the lines showing how you Add()ed controls to the
sizers?

Thursday, November 3, 2005, 11:15:35 PM, Michael Nathaniel Cantor wrote:

There was an error in the coded listing I provided. The correct code is:

         if len(self.paramEntries) > 0: # contains controls put into
gridsizer
             self.paramEntries = ;

#self.sizers["ParamEntries"] is the gridsizers
             self.sizers["ParamEntries"].Clear(deleteWindows=True)

             self.paramEntries = ;

          <...self.sizers["ParamEntries"] is now repopulated...>

         self.sizers["ParamEntries"].SetSizeHints(self)
         self.sizers["ParamEntries"].Fit(self)
         self.sizers["ParamEntries"].Layout()
         self.sizers["params"].SetSizeHints(self) #This is the
StaticBoxSizer
         self.sizers["params"].Fit(self)
         self.sizers["params"].Layout()
         self.sizers["main"].SetSizeHints(self) #This is the panel
containing it all
         self.sizers["main"].Fit(self)
         self.sizers["main"].Layout()
         self.topParent.Layout()

-- tacao

No bits were harmed during the making of this e-mail.