wxSkin oddity

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
rmccown
In need of some credit
In need of some credit
Posts: 3
Joined: Wed Sep 28, 2005 2:49 pm

wxSkin oddity

Post by rmccown »

Howdy
I have a wx application and we're converting it over to use wxSkin. The main window was a subclassed wxDialog, but its now a wxSkinSimpleFrame.

A few issues:

The dialog won't repaint itself when I move it, I have to refresh the desktop to get it to show up (i.e. move an application over where its supposed to be).

Also, I dont get a taskbar icon, or any indication that my application is running.

Any ideas?

Thanks in advance

-=Bob
User avatar
tierra
Site Admin
Site Admin
Posts: 1355
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

Post by tierra »

This needs to be moved to C++ Development.

And no, I wouldn't know what your problems are, sorry.
upCASE
Moderator
Moderator
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE »

Hi!
Did you have a look at the example code? On all platforms I tested it it worked fine and there was a taskbar icon. Did you call wxSkinEngine::Get()->InitializeSkin(); after creating and loading the skin?
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
rmccown
In need of some credit
In need of some credit
Posts: 3
Joined: Wed Sep 28, 2005 2:49 pm

Post by rmccown »

Howdy
I ended up rewriting the class and subclassing it directly from wxSkinFrame, instead of changing the wxDialog to wxSkinFrame, then moved all the code over. Works fine now.

Thanks!

Now to figure out some controls that wxSkin doesnt support.
Post Reply