Underlying window contents showing in frame while loading

Larry Bates larry.bates at websafe.com
Sat Oct 13 10:25:50 PDT 2007


I have a frame that has a tree control, text ctrl and two buttons (ok, canc=
el). =

  On the tree control I'm using virtual mixin that builds the tree from a f=
older =

structure on WebDAV server.  First implementation built the entire form bef=
ore =

showing anything.  Depending on Internet connection it can take 10-20 secon=
ds.
I wanted to show the form and THEN populate the tree.  I replaced the overl=
oaded =

OnGetChildreCount and OnGetItemText methods with dummy methods and the form=
 now =

loads much more quickly.  After .Show() I then called method on tree contro=
l =

that set OnGetChildCount and OnGetItemText to the real methods and called =

self.RefreshItems().  This populates the tree as I would like with one prob=
lem. =

  The text control and the buttons haven't been drawn on the form yet and =

information from the window that is behind my frame shows through until the =

RefreshItems() method returns, then they paint properly.  Is there some way=
 to =

make sure that .Show() is completely done drawing form's contents?  Everyth=
ing =

works, but the "garbage" that shows through is disconcerting.

Since this is difficult to explain, I've attached two window screenshots sh=
owing =

what I'm talking about.

Thanks in advance for your help.

Larry Bates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WhileLoading.pdf
Type: application/pdf
Size: 101366 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20071=
013/19641547/WhileLoading.pdf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AfterLoading.pdf
Type: application/pdf
Size: 232826 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20071=
013/19641547/AfterLoading.pdf


More information about the wxpython-users mailing list