[Gambas-user] component

Benoit Minisini gambas at ...1...
Wed Mar 2 17:38:16 CET 2005


On Wednesday 02 March 2005 17:26, Frank Berg wrote:
> ----- Original Message -----
> From: "Benoit Minisini" <gambas at ...1...>
> To: <gambas-user at lists.sourceforge.net>
> Sent: Wednesday, March 02, 2005 5:14 PM
> Subject: Re: [Gambas-user] component
>
> > On Wednesday 02 March 2005 13:49, Frank Berg wrote:
> >> Hi group
> >>
> >> i`m trying to crate an icon to my ax25 component and set it to the
> >> gambas Network propertys. so i was create an png named it ax25.png and
> >> copy it to
> >> $ROOT/app/gambas/img/control/ and in the gb.lib.ax25.component i was
> >> insert
> >> the lines:
> >> Group=Network
> >> Controls=ax25
> >>
> >> after compiling gambas an new icon is shown under the Network
> >> propertys.. fine :-)
> >>
> >> but:
> >> if i set this icon on a form i receive many errors:
> >>
> >> 1.) raised an unexpected error: [13] Null object:
> >> FProperty.RefreshAll.117
> >> 2.) and in the console many errors like
> >>
> >> SetProperty: ax25.X: CControl.SetProperty.353: Null object
> >> SetProperty: ax25.Y: CControl.SetProperty.353: Null object
> >> SetProperty: ax25.Width : CControl.SetProperty.353: Null object
> >> SetProperty: ax25.Height : CControl.SetProperty.353: Null object
> >> SetProperty: ax25.Visible : CControl.SetProperty.353: Null object
> >> SetProperty: ax25.Tag : CControl.SetProperty.353: Null object
> >> and so on..
> >>
> >> so i think i was not inherit the ccontrol correct????
> >>
> >> i was looking all the net components and the qt components, but i can
> >> not see the place where i must do this.
> >>
> >> pleace help..
> >>
> >> frank
> >
> > Did you update the information file by running "gbi -a" as root ?
> >
> > --
> > Benoit Minisini
>
> yes, with same effect
>
> frank
>

Do you see any difference between the GB_DESC structure that describes your 
ax25 class and a similar class in gb.net ?

Your ax25 constructor must not take any non-optional argument. Does it ?

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list