[Gambas-user] _DrawWith Me ? trying to view custom controls in the IDE

Bruce Steers bsteers4 at gmail.com
Sat Feb 20 05:43:34 CET 2021


I'm chugging away chewing on making a custom control.

I call it Tickbox
It's a CheckBox but uses a picture for the tick and can set text to left or
right.

My discovery though that's a bit naff...
Unless i add the control to gb.form and compile it in it's not very good to
use.

I'm sure you know what i mean.
_DrawWith works great for a copy of an existing control in displaying it
but not a new one.

something like _DrawWith = "Me" would be good.

If i copy the class into gb.form source folder and compile it then works
all as expected.

The 2 attached snapshots is what i refer to. one shows the control as a
class but in the normal gambas, te other where i've added the control to
gb.form.

Is there nothing can be done to get the custom controls visible?
i've had to make a branch and have a custom gb.form to work with and keep
installing/reinstalling just to get the control useable (in the IDE).
the control works and shows fine when i launch the app, it's just the IDE
won't play ball :(.

Thanks for any pointers if i'm missing something.

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210220/993f5b80/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CusomControlClass.png
Type: image/png
Size: 46238 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210220/993f5b80/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: customControl_gb-form.png
Type: image/png
Size: 95553 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210220/993f5b80/attachment-0003.png>


More information about the User mailing list