fhools wrote:
> Hi,
> I'm very new to FLTK and gui development in general. I was wondering if
> anyone has any tips on implementing movable columns on top of Fl_Table.
>
> If the user drags and drops a column header into another position to the left
> or right of another column it will move the dragged column accordingly.
As you've found, there is currently no drag-and-drop for columns/rows.
To implement it, you can probably use the FLTK drag+drop events, eg:
http://seriss.com/people/erco/fltk/#DragAndDrop
To do this, you can either derive your own class from Fl_Table,
or modify the widget itself.
For visual feedback, you'd probably want to override or modify
the draw() method so that you can show where the dropped column
will go (ie. an insert bar that shows where between the columns the
new column will be dropped)
If you come up with anything good, please post it as either a patch
or a complete tar file of the modifications.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk