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

Bruce Steers bsteers4 at gmail.com
Sat Feb 20 22:19:40 CET 2021


On Sat, 20 Feb 2021 at 20:48, Bruce <adamnt42 at gmail.com> wrote:

> On 21/2/21 7:08 am, Bruce Steers wrote:
> 8<
> >
> > darn it , lol , okay thank you Ben.
> >
> > So best i can think of for testing is i have my local branch source dir
> for
> > modifying new controls.
> > I load gb.form from that into gambas and edit my controls.
> > then I have made a small bash script that runs from the "run command
> after"
> > option that just copies the freshly made gb.form.gambas to
> > /usr/lib/gambas3/ and copies the .info file as /usr/share/gambas3/info/
> > gb.form.info
> >
> > That will do me I guess if just copying those 2 files (plus the control
> > icon) is all i need. (it seemed to work)
> >
> > Will suffice as a temporary measure for testing/building a component.
> >
> > Thanks anyway :)
> > BruceS
> >
>
> ????? I don't understand the need for all this walk araund?
> I just put a test harness form in the custom control project, set it as
> the startup classand run it.
> Or am I missing something?
> b
>

I don't think you're missing something i thing you have somethng i do not ,
a better understanding of gambas component building.
The 2 pictures in my original post show how if i install the component into
gb.form then when i add it in my project the IDE shows the control correct.
text left or right, Set text is displayed and Set pictures are displayed.
If i just make a test form and add a class without adding the control to
gb.form then all it shows is a box with the control icon (from control dir)
and the control Name.

I've noticed the control looks a bit different in the IDE than when run.
for developing a control I thought it would be good to see how it also
looks in the IDE as well as at runtime.

you obviously really know what you are doing when it comes to making
controls, it's all a bit baby steps for me, the more visual aids i have the
better ;)

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


More information about the User mailing list