[Gambas-user] auto-inherit Control.class
BB
adamnt42 at gmail.com
Sat Nov 4 17:35:59 CET 2023
On 5/11/23 12:41 am, Bruce Steers wrote:
> I have tried to add a Control.class to my project and add a property
> to it.
>
> My expectation is by doing that then ALL controls should get the new
> property because all controls inherit Control.class?
>
> but it does not work.
>
> it does not work with UserControl.class either.
>
> Is there a way to add a property to everything by adding it to one
> class file?
>
> Respects
> BruceS
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
No, somewhere from the mists of time : your Control class is loaded
after all component classes have been loaded. That is so overriding a
class works. Thus the symbol tables for components dont have you
Control.class, they have the originals.
hth
b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231105/83331f7f/attachment.htm>
More information about the User
mailing list