Skip to main content

SalToolTipManager

Namespace: PPJ.Runtime.Windows.QO

Assembly: PPJ.Runtime.50 (5.0.0.0)

Manages Quick Objects tooltip registration and text for controls.

public class SalToolTipManager : SalFunctionalClass

Example:

using PPJ.Runtime.Windows.QO;

var manager = new SalToolTipManager();

Constructors

Instance member SalToolTipManager()

Initializes a tooltip manager.

Instance member SalToolTipManager(derived)

Initializes a tooltip manager for an owning object.

NameTypeDescription
derivedObjectThe owning object used for SAL multiple-inheritance delegation.

Properties

Static member ToolTip

ToolTip: Gets the lazily created shared native tooltip control.

The instance is connected to the manager's display, text, and dismissal handlers.

Methods

Instance member AddTool(ctrl, sTip, sStatus)

Associates tooltip text and status text with a control.

ParameterTypeDescription
ctrlControlThe control associated with the tooltip.
sTipSalStringThe tooltip text.
sStatusSalStringThe status-bar text; ignored by the Web implementation.

Returns: SalBoolean. True if the control is registered; otherwise, false.

User controls also register their immediate children.

Instance member AddTool(ctrl, sTip, sStatus, bTracking)

Associates tooltip text and status text with a control.

ParameterTypeDescription
ctrlControlThe control associated with the tooltip.
sTipSalStringThe tooltip text.
sStatusSalStringThe status-bar text; ignored by the Web implementation.
bTrackingSalBooleanWhether to enable absolute tracking; ignored by the Web implementation.

Returns: SalBoolean. True if the control is registered; otherwise, false.

User controls also register their immediate children.

Instance member AddToolEx(ctrl, sTip, sStatus, bTracking, nMessage)

Registers a tooltip with tracking and display-message settings.

ParameterTypeDescription
ctrlControlThe control associated with the tooltip.
sTipSalStringThe tooltip text.
sStatusSalStringThe status-bar text; ignored by the Web implementation.
bTrackingSalBooleanWhether to enable absolute tracking; ignored by the Web implementation.
nMessageSalNumberThe tooltip-display message; ignored by the Web implementation.

Returns: SalBoolean. True if the control is registered; otherwise, false.

User controls also register their immediate children.

Instance member DeleteTool(ctrl)

Unregisters a control's tooltip.

ParameterTypeDescription
ctrlControlThe control associated with the tooltip.

Returns: SalBoolean. True if the control is removed; otherwise, false.

For a user control, unregisters its immediate children as well.

Instance member GetStatusText(ctrl)

Reads a registered control's status-bar text.

ParameterTypeDescription
ctrlControlThe control associated with the tooltip.

Returns: SalString. The stored status text; an empty string if no status data exists; SalString.Null if the control is not registered.

Instance member GetTipText(ctrl)

Reads a registered control's tooltip text.

ParameterTypeDescription
ctrlControlThe control associated with the tooltip.

Returns: SalString. The tooltip text, or SalString.Null if the control is not registered.

Instance member IsTool(ctrl)

Tests whether a control has a tooltip registration.

ParameterTypeDescription
ctrlControlThe control associated with the tooltip.

Returns: SalBoolean. True if registered; otherwise, false.

Instance member SetStatusText(ctrl, sText)

Updates the status-bar text for a registered control.

ParameterTypeDescription
ctrlControlThe control associated with the tooltip.
sTextSalStringThe replacement text.

Returns: SalBoolean. True if tooltip information exists; otherwise, false.

Instance member SetTipText(ctrl, sText)

Updates the tooltip text for a registered control.

ParameterTypeDescription
ctrlControlThe control associated with the tooltip.
sTextSalStringThe replacement text.

Returns: SalBoolean. True if the control is registered and updated; otherwise, false.