hi,
the tooltip component isnt working well. I am suspecting that is some
easy thing to do to fix it, but i am not able to do this alone. Can
someone help?
it work ok for buttons and for LzViews that has the attribute
"clickable='true'".
or
to LzViews that have the event "onmouseover" setted (even with garbage
like ' onmouseover="var a;" ')
so i think that is a mather of a lzdelegate that isnt proper adjusted.
the code i am using to test is:
<?xml version="1.0" encoding="UTF-8"?>
<canvas width="100%" height="100%" debug="true" proxied="false">
<debug width="90%" height="320" x="0" y="295"/>
<include href="incubator/tooltip/tooltip.lzx"/>
<include href="incubator/tooltip/tooltipview.lzx"/>
<window name="w" x="0" y="0" width="500" height="300">
<button name="b" x="20" y="60" text="oukay">
<tooltip name="tt" text="BUTTON tooltip here"/>
</button>
<view name="v" x="100" y="60" width="70" height="70" bgcolor="blue">
<tooltip name="tt" text="VIEW tooltip here"/>
</view>
<edittext name="e" x="20" y="200" width="70">
<tooltip name="tt" text="EDITTEXT tooltip here"/>
</edittext>
</window>
</canvas>
and here is the piece of code that i think that, perhaps, need to be
fixed. It is on tooltip.lzx file:
<method event="oninit">
this.overdel = new LzDelegate(this, "startCheck", parent,
"onmouseover");
this.outdel = new LzDelegate(this, "hideTip", parent, "onmouseout");
this.outdel.register(parent, "onclick");
</method>
i was thinking on: check if onmouseover exists
(parent['onmouseover']). If dont, create one on the fly and all go
normal. This, perhaps, take care of the unecessary need of the attribute
"onclickable".
another issue is for LzInputText too. It dont work well with tooltip
and this make components like edittext and comboboxes dont work.
can someone help?
thanks,
Luís.
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user