matthiasm wrote:
>
> On 11.09.2008, at 17:11, Alvin wrote:
>
>> The problem I am having is my picked() is not being called. Instead,
>> to get
>> this feature to work I had to put it in the handle(). This is ok in a
>> pinch, but as you can see from the test program attached, the
>> tooltipification logic is executed way too often. It really should
>> only
>> executed when an item is selected which is why I first tried to
>> override
>> picked().
>
>
> Yet another case when a FL_TOOLTIP message should be sent to the
> widget just before the tooltip pops up. Then you would change the
> tooltip even less often. This is a long standing feature request.
>
> ----
> http://robowerk.com/
You mean something like:
int Fl_Smart_Choice::handle(int e)
{
...
case FL_TOOLTIP:
tooltipification(label()); // <-- set tooltip if neccessary
return 1;
...
}
That would be perfect. I didn't think of that. I just submitted an STR
<http://www.fltk.org/str.php?L2040> with a patch and sample program but by
adding a picked() to Fl_Choice.
--
Alvin
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk