> 1) what widget to use if I want it to just draw text (no border, no
> nothing). So - some "static text" or "label".

I'm not an FLTK2 user, but a quick search of the documentation gives:
http://www.fltk.org/doc-2.0/html/index.html and under "Related Pages"
you can find "Example 1: Basic FLTK Program which describes:

Widget *box = new Widget(20,40,260,100,"Hello, World!");
box->box(UP_BOX);

If it's like FLTK1, you can substitute UP_BOX with NO_BOX.

> 2) How to have button of width that would exactly fit the label on it?
> [...] using some measure()

Again go to the documentation http://www.fltk.org/doc-2.0/html/index.html
and under "File members" you will find "measure()" to give you the height
and width of the given string in pixels.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to