[Gambas-user] Creating a Gambas component

dfuchs at ...2000... dfuchs at ...2000...
Mon Nov 24 20:33:39 CET 2008


I have created a Gambas 2 project that contains some user controls, and
I would like to make it a component.

 

I have successfully compiled and installed the component, including its
.component, .list and .info files in their proper places. So now I can
insert the controls provided by my project into a form in the Gambas
IDE. Still, some things do not work as I imagine they should, and I have
some questions:

 

- Can I make the IDE's property window display the public properties
that are new with my controls, compared to UserControl? This would be
most helpful, in fact, it was the main reason why I wished to make a
component. I have seen that there is a hidden property named _Properties
to every control class which obviously contains the names of the
properties to display in the IDE. Can I assign values to this property
in Gambas code, and will this have the desired effect?

 

- My controls do not draw themselves when inserted into a form in the
IDE. They only draw a rectangle and the name of the control. Can I make
them show their real look in the IDE? As for visualization (which works
very well once a form containing my controls has been launched), my
controls draw themselves through a DrawingArea that fills them
completely.

 

- In the toolbox, my controls are represented by tool buttons displaying
only a question mark. Can I make the Gambas IDE's toolbox display my
self-defined controls with an icon of my choice?

 

- In the "components" tab of the project properties dialog, my component
is listed as "not finished but stable" but without a description. How
can I make the description show?

 

The project, including full HTML documentation in English, is to be
found under www.sourceforge.net/projects/gambasmeasuring/

 

Thanks for any help to come,

 

Daniel Fuchs

 




More information about the User mailing list