|
|
Ok, thank you anyway.
I have posted quite a few problems here and almost always get good suggested solutions. I do no always use the proposed solutions, but the process is always very positive for me - I appreciate someone to discuss issues with !
Best regards Håvard
torsdag 10. september 2020 kl. 00:06:10 UTC+2 skrev pdh...@compintensehpc.com:
Your approach with a combination of an Fl_Input and an
Fl_Table also seems interesting. Do you have the code posted somewhere ?
I am sorry Håvard, my code as currently written is proprietary. I am thinking to publish simplified versions of things I've done like this sometime in the future in a github repository. But no timeline yet.
But I was really trying to convey the concepts in what I did, in case it might be helpful to you in trying to do something similar (e.g., perhaps using a Fl_Browser instead of an Fl_Table?). It was straightforward. The greatest effort I expended was just implementing the filtering and table updating -- and that wasn't too bad actually, thanks to the nice way Fl_Table is implemented based on drawing cell contents via its draw_cell() method. My filter mechanism would ultimately select only a set of column data items and store their table row indexes in a std::set<int> variable. I would then access that variable to draw the corresponding full row contents within the draw_cell() method of my sub-classed Fl_Table. In other words, I needed to subclass Fl_Table, but not the Fl_Input widget. I just supplied a callback for the latter that drove the filtering as the user typed in characters.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/ecf35a22-a7c0-4b9a-bba6-3aa39bc93addn%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |