Help - Search - Members - Calendar
Full Version: Getting Font Style and Skin Changed Notification
Desktop Sidebar Forums > Customizations > Panel Development & Requests
GoMa
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
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
maybe IPanelNotification and method
HRESULT SettingsChanged(int flags);
if flags contains flag SC_SKIN
GoMa
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
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 biggrin.gif
GoMa
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.
Invision Power Board © 2001-2008 Invision Power Services, Inc.