problem repainting

Hello Peter,

sometimes when I refresh a Panel I get a quick glimpse of the stuff that
is underneath. This sometimes translates in a BAD thing when I'm trying to

print a panel because the garbage gets in the printed image.

I suppose you have already tryed to to things like CLIP_CHILDREN or
NO_FULL_REPAINT_ON_RESIZE (though this last one should be the default now,
I think). Have you tried to send a SizeEvent after the repainting? What
about Freeze()ing during printing and Thaw()ing after? Just some random
suggestions, I am shooting in the dark, but surely Robin will know the
answer. I suppose that this happens on Windows...

···

_______________________________________________
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

Yes, it is a Windows only program.

I've tried Freeze/Thaw.... no luck...
here are some screenshots:

the Good
http://sigmacore.net/clipboard01.jpg

the Bad
http://sigmacore.net/clipboard02.jpg

In the bad one what you see at the bottom of the image is a part of my SciTE's output resufacing.

Peter

···

On Wed, 21 Dec 2005 14:52:01 +0200, <andrea.gavana@agip.it> wrote:

Hello Peter,

sometimes when I refresh a Panel I get a quick glimpse of the stuff that
is underneath. This sometimes translates in a BAD thing when I'm trying to

print a panel because the garbage gets in the printed image.

I suppose you have already tryed to to things like CLIP_CHILDREN or
NO_FULL_REPAINT_ON_RESIZE (though this last one should be the default now,
I think). Have you tried to send a SizeEvent after the repainting? What
about Freeze()ing during printing and Thaw()ing after? Just some random
suggestions, I am shooting in the dark, but surely Robin will know the
answer. I suppose that this happens on Windows...

Hi Peter,

Is there an option that I can enable to prevent this kind of resurfacing,
or at least to safeguard the contents (Image) I get when using wx.WindowDC.

Maybe you need to wait one or several "cycles" of MainLoop to got all (internal) messages delivered and stuff got visually sustained.

    Vladimir Ignatov
    www.colorpilot.com

That did it! The aswer was to do a wx.GetApp().Yield()
It solved the "Print the window" issues that was my main concen BUT it didn't solved the visual problem, I still see the resurfacing... and it is ugly....

Can it be solved? Can I get rid of that resurfacing?

Thanks!

Peter

···

On Wed, 21 Dec 2005 15:22:43 +0200, Vladimir Ignatov <kmisoft@gmail.com> wrote:

Hi Peter,

Is there an option that I can enable to prevent this kind of resurfacing,
or at least to safeguard the contents (Image) I get when using wx.WindowDC.

Maybe you need to wait one or several "cycles" of MainLoop to got all (internal) messages delivered and stuff got visually sustained.