[Gambas-devel] Gambas.report component

Fabien Bodard gambasfr at ...4...
Fri Nov 4 09:13:07 CET 2005


Le Jeudi 3 Novembre 2005 17:33, Benoit Minisini a écrit :
> On Thursday 03 November 2005 16:50, Fabien wrote:
> > > Message du 03/11/05 16:33
> > > De : "Daniel Campos"
> > > A : gambas-devel at lists.sourceforge.net
> > > Copie à :
> > > Objet : Re: [Gambas-devel] Gambas.report component
> > >
> > > Hi:
> > >
> > > May be my question is stupid, but are you sure the rest of components
> > > are placed at /usr/local/lib? Or may be /usr/lib?
> >
> > Yes i'm sure, First i've verified that, and secondary i've put my project
> > in the gb.comp/src path so i use the gb makefile script.
> >
> > > Did you also placed the .info and .list files at {gambas share
> > > path}/info folder with the name "gb.report.info" and "gb.report.list"?
> >
> > Same thing...;
> >
> > I think i've a good knowneldge of the gambas structure... so i've already
> > verified all of that ... But it's the first time i try to construct a
> > gambas componant in gambas... And i don't understand what is wrong in my
> > code :-( it say me that is not an object but it no say where is the
> > problem. In what class ? In my componant there is many inheritance  is
> > there a problem with that ?
> >
> > If you know something about the gambas componant , daniel, can you put an
> > eyes on my code ? Mabe i've forget something... in the class export or
> > missing something like _init sub ? There is 4 day i look for that problem
> > with no soluce...
> > Thank for your answer
> >
> > Regards,
> > FabienBodard
>
> Your exported classes seems to be not coherent.
>
> 1) You must only export the classes that will be used by the user.
>
> 2) If A inherits B, and if A is exported, then B must be exported. This
> should not be mandatory, but it works that way at the moment.
>
> Regards,

Hi Benoit,

First i've effectively exported only the class used by the user :
Report
ReportVBox
ReportHBox
ReportBox
Cline
Crect
Clabel
CField

I've change all the public var used for property by true properties but it 
change nothing. The component is loading but i can just use the report class

all the other classes are not loaded. I think there is a bug at this level...

Inheritance sheme :
ReportObject->ReportContainer->ReportVbox (orHbox)
ReportObject->Ctext...Cline... and other

Maybe if there is too many inheritance level and the interpreter not work ?



Regards,
Fabien Bodard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gb.report-0.0.3.tar.gz
Type: application/x-tgz
Size: 246356 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20051104/bd7587f7/attachment.bin>


More information about the Devel mailing list