On 5/4/23 14:44, Gonzalo Garramuño wrote:
El 4/5/23 a las 11:46, 'Matthias Melcher' via fltk.general escribió:
Hmm, I have not compiled it in many years, but it may just work out of the box:Thank you Matthias. It works fine, with a small change to the include fl_draw.h to fl_draw.H.
I was able to get it to work too with 1.4.x; as gga says, just
have to fix that fl_draw.h -> fl_draw.H.
In case anyone's curious what it looks like:
Apparently one can just call the function
flmm_color_a_chooser() to open the
chooser as a separate window dialog, and it blocks until the
user picks something, e.g.
void show_chooser(Fl_Widget*w, void *data) {
static double r=1,g=1,b=1,a=1;
int ret;
ret = flmm_color_a_chooser("Matt's Color Chooser",r,g,b,a);
printf("Result: %d\n", ret);
printf(" RGBA: %.2F %.2F %.2F %.2F\n", r,g,b,a);
}
Apparently one can just call the function flmm_color_a_chooser() to open the chooser as a separate window dialog, and it blocks until the user picks something.