GoMa
Jul 10 2004, 05:25 AM
I am developing a simple calendar and I have to implement skinning manually because the calendar control is not part of the DS framework. I managed to do most of the things, but I still have questions:
1. How do I get the font style from the dsskin? The ISkinElement.GetFontStyle() function returns an Integer.
2. How do I get notified when the skin is changed (in order to reskin my calendar control)?
GoMa
Jul 10 2004, 05:39 AM
Nevermind the first question, the enumeration values of System.Windows.Forms.FontStyle are equal to the DS values.
But what about my second question?
marines
Jul 10 2004, 06:16 AM
maybe IPanelNotification and method
HRESULT SettingsChanged(int flags);
if flags contains flag SC_SKIN
GoMa
Jul 10 2004, 06:40 AM
OK, thanks, I'll try.
Can I check for the SC_SKIN file like that:
| CODE |
if((flags | SC_SKIN) == flags) //Flags contains SC_SKIN. |
marines
Jul 10 2004, 06:44 AM
| QUOTE (GoMa @ Jul 10 2004, 04:40 PM) |
OK, thanks, I'll try. Can I check for the SC_SKIN file like that:
| CODE | if((flags | SC_SKIN) == flags) //Flags contains SC_SKIN. |
|
I always use sth like this
if((flags & SC_SKIN) == SC_SKIN)
but your manner should work too
GoMa
Jul 11 2004, 02:55 AM
Thanks! It works.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.