2008/7/7 Marc Weustink <[EMAIL PROTECTED]>:
> You register TFpGUIWSWincontrol(TWSWincontrol), then the virtual class
> tree will become
>
> TWSControl - TWSWincontrol - TFpGUIWSWincontrol - TWSButton
>
> So when you derive and register TFpGUIWSButton(TWSButton) it will
> "inherit" from TFpGUIWSWincontrol. The only thing not possible is using
> the "inherited" keyword to call an ancestor method. You can work around
> this by using TWSWincontrolClass(ClassParent).SomeMethod.

Ah, now it makes sense. Some class trickery is at play! :)  Thanks for
explaining it, Marc.


Regards,
 - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to