
Prototype: GemRB.SetTooltip(WindowIndex, ControlIndex, String|Strref)

Metaclass Prototype: SetTooltip(String|Strref)

Description: Sets control's tooltip. Any control may have a tooltip.

Parameters: WindowIndex, ControlIndex  - the control's reference
String - an arbitrary string
Strref - a string index from the dialog.tlk table.

Return value:
0 on success, -1 on error

The tooltip's visual properties must be set in the gemrb.ini file:
  TooltipFont - Font used to display tooltips
  TooltipBack - Sprite displayed behind the tooltip text, if any
  TooltipColor - Tooltip text color (RGBA)
  TooltipMargin - Space between tooltip text and sides of TooltipBack (x2)



See also: SetText


MD5: 055166c150ec66ca9649006b42114967
