|Home Page:||http://www.ant-s.com/WebContent/FL (1978 visits)|
|Download:||http://www.ant-s.com/WebContent/FL/Fl_ColumnManager/Fl_ColumnManager.tgz (1102 visits)|
An Fl_ColumnManager controls the row sorting of an Fl_Browser.
The class is designed to manage the row sorting of the text in an Fl_Browser. Depressing any column button will cause the rows to be sorted by the text in that column. It uses the column_widths() of the associated browser to draw itself. These widths can be changed interactively.
[ Submit Article | View All ]
No articles found.
[ Submit Comment ]
From smoof, 06:31 Nov 04, 2008 (score=3)
I am not familiar with fltk and I'm writing a little front-end for a command line program. I need a kind of datagrid to show the output. Yet, I use the Fl_Resize_Browser ( found with cheats at http://seriss.com/people/erco/fltk/#Fl_Resize_Browser )
Your "column manager" seems interesting but I don't understand how to implement it :(
Is it possible to have an example on how to use it ?
[ Reply ]
From ANT-S, 07:50 Nov 04, 2008 (score=3)
I've uploaded a new version at our website. It has the following "HowTo" in it (the actual lines from a real program):
static Fl_ColumnManager* myColumnManager; // controls column display and sorting
static Fl_Multi_Browser* myDataBrowser;
myColumnManager = new Fl_ColumnManager(0,H/2+25+0,W,6);
myDataBrowser = new Fl_Multi_Browser(0,H/2+25+6,W,H/2-50-6);
// let the manager know which browser to manage
void add_something(const char* myString, void* myData)
// let the manager know about changes