[gtkada] Changing a pixmap

Preben Randhol randhol at pvv.org
Thu Mar 27 14:33:26 CET 2003


Jean-Pierre Rosen <rosen at adalog.fr> wrote on 27/03/2003 (14:31) :
> >   Say you have this pixmap in a Vbox, then you will have to remove the
> >   old pixmap and then pack the new pixmap into it.
> > 
> >       Pack_Start (Status_Vbox, Green_Pixmap, True, True, 0);
> >    
> >    now you want to put in the Red_Pixmap:
> > 
> >       Remove (Status_Vbox, Get_Child (Status_Vbox, 0));
> >       Pack_Start (Status_Vbox, Red_Pixmap, True, True, 0);
> >       Show_All (Status_Vbox);
> > 
> Thanks Preben, now I understand how it works. But...
> The container is not a Vbox, but a Packer.

What is a Packer?

-- 
Preben Randhol ------------------- http://www.pvv.org/~randhol/ --
                 «For me, Ada95 puts back the joy in programming.»



More information about the gtkada mailing list