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"));
Published date: 05/24/2022
Last modified date: 02/24/2022