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 (3)
-
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 ).
LZX Synopsis
<class name="
tooltip" extends="
LzNode
">
<attribute name="
text
" type="
text" />
<attribute name="
tipalign
" type="
string" value="
" />
</class>
JavaScript Synopsis
public
tooltip extends
LzNode
{
public var
text
:
String;
}