browser objects do not display tooltips. I can't figure this one out.
The xforms source looks ok.
Attached is a minimal test code.
I /can/ display tooltips if I add a prehandler to do so, but the normal
xforms mechanism just ain't working.
I have added print statements to fl_handle_it (objects.c):
+ if (obj->objclass == FL_BROWSER)
+ printf("fl_handle_it browser, handle=%p\n", obj->handle);
if (obj->handle == NULL)
return 0;
switch (event)
{
case FL_ENTER:
+ if (obj->objclass == FL_BROWSER)
+ printf("browser entered\n");
+ if (obj->tooltip && *(obj->tooltip) && !obj->form->no_tooltip)
+ printf("tooltip %s\n", obj->tooltip);
if (obj->tooltip && *(obj->tooltip) && !obj->form->no_tooltip)
obj->tipID = fl_add_timeout(fl_context->tooltip_time,
tooltip_handler, obj);
obj->belowmouse = 1;
break;
case FL_LEAVE:
+ if (obj->objclass == FL_BROWSER)
+ printf("browser left\n");
if (obj->tooltip && *(obj->tooltip))
{
fl_hide_tooltip();
if (obj->tipID)
fl_remove_timeout(obj->tipID);
obj->tipID = 0;
}
obj->belowmouse = 0;
break;
It transpires that fl_handle_it is invoked for a FL_BROWSER object
only when the mouse enters/leaves the form, not when it enters/leaves
the browser. So, we never get to activate the tooltips.
So why isn't fl_handle_it called for an FL_BROWSER for these events?
Dazed and confused,
Angus
This archive was generated by hypermail 2b29 : Fri Oct 25 2002 - 11:10:11 EDT