Rogue Wave Views Gadgets > Customizing the Look and Feel > Creating a New Look-and-Feel Handler > Registering a New Look-and-Feel Handler
 
Registering a New Look-and-Feel Handler
To be able to dynamically create a look-and-feel handler, you need to properly register it. To do this, you need to add the following macro inside the class declaration:
DeclareLookFeelTypeInfo();
Then, in the definition file, use the following macros:
IlvPredefinedLookFeelMembers(MyLookFeelHandler, "MyLook");
IlvRegisterLookFeelClass(MyLookFeelHandler, BaseClass);
where BaseClass is the base class of the new look-and-feel handler.
The class is now properly registered, that is, you can create for example an instance of it using the following code:
IlvLookFeelHandler* lfh = IlvLookFeelHandler::Create(IlGetSymbol("MyLook"));

Version 5.6
Copyright © 2012, Rogue Wave Software, Inc. All Rights Reserved.