[gtkada] Changing a pixmap

Emmanuel Briot briot at ACT-Europe.FR
Wed Mar 26 16:38:29 CET 2003


On Fri, 2003-03-21 at 16:44, Jean-Pierre Rosen wrote:
> I have a user interface (with GTKAda of course), generated with glade, that includes a pixmap, and I want to
> change dynamically the picture (typically, changing a green "light" to red).
> 
> I did something like:
>          Control_Window.Modif_Status := GTK.Pixmap.Create_Pixmap ("pixmaps/red.xpm",
>                                                                            Control_Window_Pkg.Control_Window);


You need to put the pixmap in some container on the screen, maybe
replacing the previous one
If Control.Window.Modif_Status is the one created by Glade, you might
want to use Gtk.Pixmap.Set instead, to replace the existing one

Emmanuel



More information about the gtkada mailing list