[Gambas-user] IDE properties and auto-inheritance

Bruce Steers bsteers4 at gmail.com
Mon Mar 27 03:53:05 CEST 2023


On Mon, 27 Mar 2023 at 01:38, Benoit Minisini <
benoit.minisini at gambas-basic.org> wrote:

> Le 25/03/2023 à 16:59, Bruce Steers a écrit :
> > Is there a reason i cannot set properties in the IDE with auto-inherited
> > TextLabel?
> >
> > Consider the following code named TextLabel.class..
> > |
> > |
> > |' Gambas class file|
> > |
> > |Export|
> > |Public| |Const| |_Properties ||As| |String| |= ||"*,IsHeader"|
> > |Property| |IsHeader ||As| |Boolean|
> > |Private| |$IsHeader ||As| |Boolean|
> > |Private| |Function| |IsHeader_Read() ||As| |Boolean|
> > |||Return| |$IsHeader|
> > |End|
> > |Private| |Sub| |IsHeader_Write(Value ||As| |Boolean||)|
> > |||$IsHeader = Value|
> > |End|
> > |
> > |
> > after "compile all" i can see the IsHeader value in the IDE properties
> > and I have the option to set it true or false but if i change it it just
> > remains False.
> >
> > If I rename the class to TextLabel2.class and use "Inherits TextLabel"
> > then it looks the same in the IDE and i can change the property okay.
> >
> > Is it a bug or is it wrong to expect the IDE to use properties from
> > auto-inherited classes?
> >
> > Cheers
> > BruceS
> > |
> >
>
> It should be fixed by commit
>
> https://gitlab.com/gambas/gambas/-/commit/76772369beaca4d56ad9d3f5027b1080548c70ab
> .
>
> Regards,
>
> --
> Benoît Minisini.
>

Thanks Ben, yep working okay now  :)
Much respect
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230327/f2f4b818/attachment.htm>


More information about the User mailing list