Description
This class allows you to show a floating "tooltip" on any
view. To use it you make it a child of a view. The parent view has
to be clickable for the tooltip to work. Setting clickable to false
will disable the tooltip.
For example:
The appearance of the tooltip is determined by a view on the canvas
which must be named "tooltipview" and have a setText method and
options="ignorelayout"
Details
Properties (7)
-
_checkdel
-
<attribute name="_checkdel" value="null" />
-
_lastmousex
-
<attribute name="_lastmousex" value="0" />
-
_lastmousey
-
<attribute name="_lastmousey" value="0" />
-
_mousein
-
<attribute name="_mousein" type="boolean" value="false" />
private var _mousein : boolean;
-
p_yoffset
-
<attribute name="p_yoffset" value="15" />
offset of tooltip from parent view
-
text
-
<attribute name="text" type="text" />
public var text : String;
text that appears in the tooltip. null or empty string means tooltip will not show.
-
tipalign
-
<attribute name="tipalign" type="string" value="" />
public var tipalign : String;
values = "'right',''"
attribute to align a tooltip 'right' so that it's right edge is flush
with it's parent's right edge ( minus 10 pixel inset ).
Methods (4)
-
checkTip()
-
<method name="checkTip" />
private function checkTip();
-
hideTip()
-
<method name="hideTip" />
private function hideTip();
-
showTip()
-
<method name="showTip" />
private function showTip();
-
startCheck()
-
<method name="startCheck" />
private function startCheck();
LZX Synopsis
<class name="
lz.tooltip" extends="
LzNode
">
<attribute name="
_checkdel
" value="
null" />
<attribute name="
_mousein
" type="
boolean" value="
false" />
<attribute name="
text
" type="
text" />
<attribute name="
tipalign
" type="
string" value="
" />
</class>
JavaScript Synopsis
public
lz.tooltip extends
LzNode
{
public var
text
:
String;
prototype private function
hideTip
();
prototype private function
showTip
();
}