Subclassing TaharezLook widgets
Posted: Tue Mar 08, 2005 21:23
Hi,
I'm currently trying to subclass Widgets from the TaharezLook and put then in second dll that is added as a second WindowSet to my GUIScheme, so I can use the derived widgets together with normal TL-Widgets.
Now when I subclass widgets from TL, I have to include for example TLButton.h (and link to TaharezLook(_d).lib).
Problem is now that there is already a registerFactory in the TL-Library.
I must admit that I can't see a solution to it. Has anybody successfully managed to subclass TL-Widgets (or WindowsLook-Widgets at that)? Maybe I missed something obvious.
Of course I could just edit the TL-source directly, but then I would always have to work with a patched version of the sourcecode and repatch for every update. Also, I think the dll-system should provide exactly this.
Thanks for any pointers,
Rincewind
I'm currently trying to subclass Widgets from the TaharezLook and put then in second dll that is added as a second WindowSet to my GUIScheme, so I can use the derived widgets together with normal TL-Widgets.
Now when I subclass widgets from TL, I have to include for example TLButton.h (and link to TaharezLook(_d).lib).
Problem is now that there is already a registerFactory in the TL-Library.
I must admit that I can't see a solution to it. Has anybody successfully managed to subclass TL-Widgets (or WindowsLook-Widgets at that)? Maybe I missed something obvious.
Of course I could just edit the TL-source directly, but then I would always have to work with a patched version of the sourcecode and repatch for every update. Also, I think the dll-system should provide exactly this.
Thanks for any pointers,
Rincewind