ste wrote:
> thank you every one... i had try it, and it works.. now i try to show not
> just 1 text, but 3 or 4 text, i try with add new label.. but it not works..
> the 2nd, 3rd, 4th text not show.. how is it?? thank you very much every
> one... :) ~~i love FLTK~~
In the program I posted, it just uses whatever the label() is,
which is a single string.
If you want to print multiple strings in different positions,
find this line:
fl_draw(label(), x(),y(),w(),h(), align());
..and change it to these instead instead:
fl_draw("Your Message #1", x1, y1, w1, h1, align());
fl_draw("Your Message #2", x2, y2, w2, h2, align());
fl_draw("Your Message #3", x3, y3, w3, h3, align());
Where the x1,y1,w1,h1 are X/Y positions, and Width/Height.
If you want to change colors, just put fl_color(0xRRGGBB00)
commands above each fl_draw() command, where RR=red, GG=green, BB=blue,
and the last two digits are zeroes.
The RRGGBB values are 16 bit hex values, just like in html.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk