Difference between revisions of "RectControl.Tooltip"

From Xojo Documentation

(Created page with "N/A")
 
 
Line 1: Line 1:
N/A
+
{{PropertyBox
 +
| name=Tooltip
 +
| owner=[[RectControl]]
 +
| ownertype=class
 +
| scope=public
 +
| type=[[String]]
 +
| platform=all
 +
| newinversion=2019r2
 +
}}
 +
{{Description
 +
|text = Text of help message displayed as a Windows or Linux "tooltip" or macOS help tag.
 +
}}
 +
 
 +
==Notes==
 +
The tip/tag is displayed when the user hovers the mouse cursor over the control.
 +
 
 +
== Sample Code ==
 +
This example adds a tooltip to a [[BevelButton]] that has an icon.
 +
<rbcode>
 +
Me.CaptionAlignment = 0 // left
 +
Me.CaptionDelta = 10
 +
Me.Tooltip = "Click to bark."
 +
 
 +
Me.Icon = Woof // added to the project
 +
Me.CaptionPosition = 2
 +
</rbcode>
 +
 
 +
== See Also ==
 +
[[ToolTip]] class

Latest revision as of 23:06, 26 July 2019

Property (As String )
aRectControl.Tooltip = newStringValue
or
StringValue = aRectControl.Tooltip

New in 2019r2

Supported for all project types and targets.

Text of help message displayed as a Windows or Linux "tooltip" or macOS help tag.

Notes

The tip/tag is displayed when the user hovers the mouse cursor over the control.

Sample Code

This example adds a tooltip to a BevelButton that has an icon.

Me.CaptionAlignment = 0 // left
Me.CaptionDelta = 10
Me.Tooltip = "Click to bark."

Me.Icon = Woof // added to the project
Me.CaptionPosition = 2

See Also

ToolTip class