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.
I need to know why and if there is alternative solutions to this issue (Not workarounds)!?
Thank you for your understanding.
Themed wx Application question!
Re: Themed wx Application question!
Hi,
Could you show some code?
Do you use threads? Timers? Another process? Do you catching the EVT_IDLE event?
Thank you.
Could you show some code?
Do you use threads? Timers? Another process? Do you catching the EVT_IDLE event?
Thank you.
Re: Themed wx Application question!
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.
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.
Re: Themed wx Application question!
@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.
I have uploaded the sample to filebin server because the forum script did not accept it (may be due to its size).
Thank you.
Re: Themed wx Application question!
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.
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!
Re: Themed wx Application question!
May be the skin engine!