Matthias Melcher wrote:
> On 02.03.2010, at 20:36, Robo wrote:
>> What widgets can I use to build widget with columns and headers (clickable
>> header
>> with sort[..]
>> I think FL_Browser is good chioce. Maybe is something better than this.
>
> Take a look at Fl_Table (FLTK 1.3 only).
BTW: the Fl_Table widget is originally a standalone widget that was
recently added to FLTK 1.3. The original widget's download page is here:
http://seriss.com/people/erco/fltk/Fl_Table/
Because of its recent addition to FLTK, FLTK's own docs on Fl_Table
are missing some useful screenshots and example programs that show
Fl_Table's various uses, but there's some good screenshots of the
various Fl_Table test apps here to give you a good idea of what
it can do and how it works:
http://seriss.com/people/erco/fltk/Fl_Table/documentation/
It can be a regular table of info with optional headers/footers that
you can click on. It can be used either as a 'container' for FLTK
widgets,
or for your own custom text drawing (to avoid "per cell" widget
overhead),
and can be used for things like spread sheets (see 'singleinput.cxx').
Fl_Table doesn't manage any data itself, it just draws your data in
whatever way you want to present it; when Fl_Table is not being used
as a 'container' of FLTK widgets, it will basically invoke your own
callback to draw each cell, passing you a row and column number so that
your code handles drawing each cell.. at its simplest, just a matter
of your invoking fl_draw() to draw the text string to appear in each
cell.
Clicking on cells generates callbacks as well, so that you can do
different
things depending on if you right or left click, keyboard events, etc.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk