[Gambas-user] Public Form Controls

Bruce Steers bsteers4 at gmail.com
Sun Jul 23 22:18:06 CEST 2023


On Sun, 23 Jul 2023 at 20:57, Demosthenes Koptsis <demosthenesk at gmail.com>
wrote:

> ok i understood the example you gave....
>
>
> something else now but relative to subject...
>
> Which programming approach is better... Public Form Controls OR Not
> Public...
>
> As new programmer i feel more easier the Public Form Controls.
>
> The example you gave increase complexity...
>
if you set main options to "all controls public" then the IDE auto-complete
can be very full of items you do not really want to see,

I personally just use the individual controls "Public" property to make
only that control visible across other forms.
(you can hold Ctrl and select multiple controls then set their Public
property to True in the IDE)

but yes , i used to just set "all controls public" in the ide project
properties as it was "easier" :)
it depends on your needs.

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230723/079f73a6/attachment.htm>


More information about the User mailing list