[Gambas-user] Re: gambas2-1.9.4, Component creation

Christian Faure christian.faurebouvard at ...357...
Tue Mar 29 12:11:00 CEST 2005


El Martes, 29 de Marzo de 2005 05:31, Benoit Minisini escribió:
> On Friday 25 March 2005 19:55, Christian Faure wrote:
> > Hi Benoît,
> > Create component from a class works ok!
> >
> > how to create a component from an inherited qt class?
>
> It should work. I didn't test it yet, I want to make an example of an
> extended TextBox or ComboBox in the next release.

Thanks Benoit,
Attached file gb_comp1 is a component with an inherited text box.

>
> > how to create a component from a form?
>
> I'm not sure to understand the question.
>
Excuse my very bad english,
I want create a visible component with one label and one textbox,
to use like this:
MyComp.Description="MyFieldX" ' assign to label.text
MyComp.Value="MyValueX" ' assign to textbox.text
In attached file gb_comp2 is an example of this "component"
i want convert FContainer (a Form) to gb_comp2 (a Component )
Possible?

> > i get this error message when loading my component with form or inherits:
> >
> > CClassInfo._new.25
> > Not an object
>
> Send your project...
>

Regards,
Christian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gb_comp1-0.0.16.tar.gz
Type: application/x-tgz
Size: 2322 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20050329/260e7d17/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gb_comp2-0.0.1.tar.gz
Type: application/x-tgz
Size: 1017 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20050329/260e7d17/attachment-0001.bin>


More information about the User mailing list