Icon Property

The Icon property contains the type of icon displayed inside the tooltip.


    Tooltip.Icon [=long]
Possible Values
    Long value that specifies or retrieves the icon type.

    The property is read/write.
    Possible icon types are:

    0 = No icon
    1 = Info
    2 = Warning
    3 = Error
    The following example shows a tooltip containing a warning icon when the mouse enters the text.

    <span id='mydiv' onMouseEnter='OnMouseEnter()'
    onMouseLeave='OnMouseLeave()' onMouseMove='OnMouseMove()'>
    Move the mouse over here.
    <SCRIPT TYPE="text/javascript">
    function OnMouseEnter()
       myToolTip = SiteKiosk.SiteKioskUI.CreateToolTip();
       myToolTip.Balloon = true;
       myToolTip.NoAnimate = false;
       myToolTip.NoFade = false;
       myToolTip.NoPrefix = false;
       myToolTip.MaxWidth = 150;
       myToolTip.Title = "Title";
       myToolTip.Text = "Example: Warning message";
       myToolTip.Icon = 2;
       myToolTip.CloseButton = true;     // Windows XP only
       myToolTip.SetMargin(5, 5, 5, 5);
       myToolTip.SetPosition(event.screenX, event.screenY);
    function OnMouseMove()
       myToolTip.SetPosition(event.screenX, event.screenY);
    function OnMouseLeave()

Applies to
    SiteKiosk v5.5 (and later versions).

Back to top