I have never tried that sort of things. From gtk api documentation, it appeared that you did not set the second parameter properly or are you sure that is in fact 0?
Пнд, 09 Июл 2012, Emir Ustamujic писал(а): > Hi, > > In the past several months I've worked occassionally with jgtk and can say > that by now I have a much better understanding of how it works, and how to > add functions based on online reference - managed to implement some DnD > (thanks to Bill Lam for the guidance and tips). > However, right now I'm stuck on a seemingly simple task of coloring a button > widget :) > I don't understand what the overall process in gtk should be for this. > > From what I could figure out it should be something like creating/assigning a > color and then using widget_override_background to color the widget: > 1. gdk_color_parse 'Blue', mycolor > > 2. gtk_widget_override_background_color mybutton, 0, mycolor > > but I'm sure I'm missing a big chunk of understanding for part 1... > > I see that gdk_colormap_alloc_color is mentioned and 'allocating' a color, > but don't know what that means - and if it's necessary, > what are colormaps anyway, should they be used ? :) > > Any guidance and/or and a simple working example from someone with a better > understanding of this would be great. > > Thanks, > Emir > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm