Dragging and flickering

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
extreme001
I live to help wx-kind
I live to help wx-kind
Posts: 192
Joined: Fri Dec 22, 2006 9:17 am
Location: Germany
Contact:

Dragging and flickering

Post by extreme001 » Tue Jun 02, 2009 10:35 pm

HI!

i have some problems with flickering while dragging.
Description:

I create a wxFrame, make it shinethrough with SetLayeredWindowAttributes (Color: 255,0,255). On the wxFrame i create another window (wxPanel) with Onmotion to drag it around in the parent Frame. The problem: While dragging it flickers like hell and dragging is not smooth.

The wxPanel structure:
-wxPanel...inside a Sizer with StaticImages (5 wxStaticImages). I tried to use OnEraseBackground-event and set no functions in it, just a pure OnEraseBackground on the panel with no code inside and the heavy flickering does not end.

The second: wxWindow, under the wxWindow a wxPanel, under the wxPanel is a wxBitmapButton...and it's the same dragging = flickering with slow movement.

Is there any option to avoid flickering?

I also tried wxClipchildren...

Please help...

Thank you very much wxWidgeters.

Post Reply