wxPanel -> Refreshing issue.

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
AmitK
Knows some wx things
Knows some wx things
Posts: 48
Joined: Mon Dec 12, 2005 6:18 am

wxPanel -> Refreshing issue.

Post by AmitK » Tue Jan 24, 2006 6:50 am

Hi All.

I have created small 5 panels filled with some colors.
Now, I have created another panel covering all the 5 prev created panels.

Now, when I move my outer panel, all the colors came along with it.
How can i refresh my outer panel whenever i move it.

Thanks and Regards.
AmitK

Bundy
I live to help wx-kind
I live to help wx-kind
Posts: 153
Joined: Fri Apr 29, 2005 9:46 am
Location: Poland

Post by Bundy » Tue Jan 24, 2006 7:40 am

outer_panel->Refresh() don't work?

Bundy
"Fate rewards prepared mind"

Quote from movie "Liberator 2"

AmitK
Knows some wx things
Knows some wx things
Posts: 48
Joined: Mon Dec 12, 2005 6:18 am

Post by AmitK » Tue Jan 24, 2006 9:22 am

Bundy wrote:outer_panel->Refresh() don't work?

Bundy
Hi Bundy.

Thanks for your time.
I have following code in OnPaint(wxPaintEvent &event) function corresponding to my outer frame.

wxPaintDC dc(this);
dc.Clear();
dc.SetBackgroundMode(wxTRANSPARENT);

Any clues where the problem is?

After calling Refresh() Now I am getting gray color filled outer panel.
I am not able to see any color behind it.
Any clues???

Thanks
AmitK

Post Reply