B4J Question Tooltip when hovering over a button with a mouse cursor

red30

Active Member
Licensed User
How can I make a tooltip when I hover over an element of a mouse cursor? For example: I have a button with an icon, when I move the mouse cursor over it, I get a message that this button does. Like in the picture below.
fig_1_08_08.png
 

stevel05

Expert
Licensed User
You can add the Tooltip text in the deisgner

1580733905921.png


or in code with
B4X:
Button1.TooltipText = "Tooltip text"

Edit: If the button is a B4XView you will need to cast it to a Button first:

B4X:
Dim BN as Button = Button1
BN.TooltipText = "Tooltip Text"
 
Last edited:
Upvote 0
Top