DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2041 Version: 1.3-feature Resulting from my previous STR #2040 <http://www.fltk.org/str.php?L2040> I propose the following Proof-of-Concept) patch. This patch adds a FL_TOOLTIP event. The FL_TOOLTIP is sent, to the current widget, just prior to displaying a tooltip. If Fl_Tooltip::current()->handle(FL_TOOLTIP) returns 1, then the widget has 'used' the event. Therefore, the text use for the tooltip (i.e. tip in the source) will be updated. I am also including an example. The example may not be the best one since the widget (Fl_Smart_Choice) does not have a tooltip to start with. In this case, the tooltip is simply a space. Regardless, as the items are selected, you can see the tooltip being dynamically altered (if the selected item's text is longer than the width of the widget). To compile: fltk-config --compile smartchoice.cpp Link: http://www.fltk.org/str.php?L2041 Version: 1.3-feature
SmartChoiceTest-v2.tar.gz
Description: Binary data
_______________________________________________ fltk-dev mailing list fltk-dev@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-dev