ICQ

Cliff Baeseman vbman at pcpros.net
Fri Apr 23 00:59:52 EDT 1999


Michael Van Canneyt wrote:


I tried the code you sent and cannot get it to work I have tried every
thing I could think of.

No matter what kind of widget i pass to gtk_label(pgtkwidget) I get a nill
result.

I am at a loss over this one. I would really hate to blast a object and
recreate it just to change the caption.


Cliff




> On Wed, 21 Apr 1999, Cliff Baeseman wrote:
>
> > Guys
> >
> > here is the question of the year. How do I convert this structure to
> > pascal . How dou you implement the pointer?
>
> Which pointer ?
> >
> > This is to allow dynamic changing of captions in the fcl. We have to
> > gain access to the label object at the top of the hiarchy.
> >
> > Cliff
> >
> >
> >
> > gtk_label_set(GTK_LABEL(GTK_BIN(mywidget)) -> child),'new text')
> >
>
> Var Gb,Gl,Child : PGtkWidget; // or whatever
>     pc : pchar;
>
>   gb:=gtk_bin(mywidget);
>   gl:=gtk_label(gb);           <<<<<<<<<<<<<   this always returns
> nil???
>   child:=gl^.child
>   gtk_label_set(child,'new text');
>
> You may need some typecasting here, but this should be it ?
>
> Michael
>
> >
> >
> >
> > Shane Miller wrote:
> >
> > >  You using ICQ on your linux yet so I can tell when you are on?  My
> > > ICQ # is 188007.  Your old one (in case you lost it) was
> > > 36008926 Shane
> >
> > _________________________________________________________________
> >      To unsubscribe: mail lazarus-request at miraclec.com with
> >                 "unsubscribe" as the Subject
> >
>
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject






More information about the Lazarus mailing list