Overlapping when loading panel into a FoldPanelWindow

Hello Michael & NG,

<snip>

self.SetAutoLayout(True)
self.SetSizer(szSidebar)
szSidebar.Fit(self)
szSidebar.SetSizeHints(self)

I guess that I somewhere forgot a line of layout algorithm, but can
not find anything in the example (in which exactly the same panel works).

Mhm... have you tried something like:

szSidebar.Layout()

after the last SetSizeHints(self) instruction? It may work. I always found
that calling MySizer.Layout() is a good practice whn dealing with sizers.

Andrea.

···

_______________________________________________
Andrea Gavana
Reservoir Engineer
MOGI ? Reservoir Characterization and Modeling Dept.
ENI S.p.A. ? Exploration & Production Division
Via Emilia, 1 ? 20097 San Donato Milanese (MI) ? Italy
Phone: +39 02 520 62972
Fax: +39 02 520 61824
E-mail: andrea.gavana@agip.it
Restyled Internet Site: http://xoomer.virgilio.it/infinity77/
____________________________________________________

Eni S.p.A.
Sede legale in Roma,
Piazzale Enrico Mattei 1, 00144 Roma
Tel. centralino: +39 06598.21
www.eni.it
Capitale sociale € 4.002.934.326 i.v.
Registro Imprese di Roma,
Codice Fiscale 00484960588
Part. IVA 00905811006
R.E.A. Roma n. 756453

Hi Andrea,

Mhm… have you tried something like:

szSidebar.Layout()

after the last SetSizeHints(self) instruction? It may work. I always found
that calling MySizer.Layout() is a good practice whn dealing with sizers.

Thanks, I will try that when I am back home - sounds logical. But what
the hell means ‘NG’? Looking it up at urbandictionary.com just make
wonder even more ;-).

  • Michael.