Themed wx Application question!

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Themed wx Application question!

Post by tomay3000 »

Hello,
I have managed to create a themed wx Application using an EasySkin.dll skin engine that I have created earlier.
The application is entirely themed great, except one problem which is in my case: the wxListCtrl for example is not getting repainted (refreshed) when for example an wxMessageBox covers its client area (fully or partially) and then moved out or closed, then this weird behavior will occur:
The client area of the wxListCtrl that was covered by the message box will get repainted and the rest will have a white background.

I have found a workaround by adding a wxSUNKEN_BORDER style to the wxListCtrl to make it refresh itself when the application is themed.
NB: When the application is not themed, then the problem disappears!!!

Take a look at the screenshot to understand what I am talking about.
Untitled.png
I need to know why and if there is alternative solutions to this issue (Not workarounds)!?

Thank you for your understanding.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Themed wx Application question!

Post by ONEEYEMAN »

Hi,
Could you show some code?
Do you use threads? Timers? Another process? Do you catching the EVT_IDLE event?

Thank you.
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Re: Themed wx Application question!

Post by tomay3000 »

I just used the mediaplayer sample.
Here it is: https://filebin.net/7q3f3kmisvkou8q2
To get the application skinned launch the exe file from its directory (Debug or Release).

Uncomment wxSUNKEN_BORDER to see how the workaround works.

Thank you.
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Re: Themed wx Application question!

Post by tomay3000 »

@ONEEYEMAN
I have uploaded the sample to filebin server because the forum script did not accept it (may be due to its size).

Thank you.
User avatar
doublemax
Moderator
Moderator
Posts: 19159
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Themed wx Application question!

Post by doublemax »

I don't think there is anything that can be done on wx side.

How does your skinning engine work? Do you hook into the paint routine of the windows?

My guess is that the issue is related to update rectangles. Try logging the update rectangles you receive, maybe it gives a hint.
Use the source, Luke!
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Re: Themed wx Application question!

Post by tomay3000 »

May be the skin engine!
Post Reply