Name

tooltip

Synopsis

LZX: tooltip
JavaScript: lz.tooltip
Type: Class
Access: public
Topic: Incubator.Tooltip
Declared in: lps/components/incubator/tooltip/tooltip.lzx

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"

Superclass Chain

node (LzNode) » tooltip

Known Subclasses

Details

Properties (7)

_checkdel
<attribute name="_checkdel" value="null" />
private var _checkdel;
_lastmousex
<attribute name="_lastmousex" value="0" />
private var _lastmousex;
_lastmousey
<attribute name="_lastmousey" value="0" />
private var _lastmousey;
_mousein
<attribute name="_mousein" type="boolean" value="false" />
private var _mousein : boolean;
p_yoffset
<attribute name="p_yoffset" value="15" />
public var p_yoffset;
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=" _lastmousex " value="0" />
  <attribute name=" _lastmousey " value="0" />
  <attribute name=" _mousein " type="boolean" value="false" />
  <attribute name=" p_yoffset " value="15" />
  <attribute name=" text " type="text" />
  <attribute name=" tipalign " type="string" value="" />
  <method name=" checkTip " />
  <method name=" hideTip " />
  <method name=" showTip " />
  <method name=" startCheck " />
</class>

JavaScript Synopsis

public lz.tooltip extends  LzNode  {
  private var _checkdel ;
  private var _lastmousex ;
  private var _lastmousey ;
  private var _mousein  : boolean;
  public var p_yoffset ;
  public var text  : String;
  public var tipalign  : String;
  prototype private function checkTip ();
  prototype private function hideTip ();
  prototype private function showTip ();
  prototype private function startCheck ();
}