[gtkada] Changing a pixmap

Manuel Op de Coul manuel.op.de.coul at eon-benelux.com
Thu Mar 27 13:37:28 CET 2003


J-P. Rosen wrote:

>"I have a picture of a red button and a picture of a green button in XPM 
format. 
>I want to display sometimes red, sometimes green".

Perhaps you could use a normal toggle button and put something like
this in the resource file?

style "toggle_button" =
{
  fg[NORMAL] = {1, 0, 0}
  fg[ACTIVE] = {0, 1, 0}
}

Manuel




More information about the gtkada mailing list