Hi,
this small code snippet adds a ToolTipText to an ImageView - as currently not exposed.
Example:
this small code snippet adds a ToolTipText to an ImageView - as currently not exposed.
B4X:
'Add a tooltip to an ImageView
'JavaFX API Reference: http://download.java.net/jdk8/jfxdocs/javafx/scene/control/Tooltip.html
Sub ToolTipToImageView(iv As ImageView, msg As String)
Dim joToolTip As JavaObject
Dim joToolTip2 As JavaObject = joToolTip.InitializeNewInstance("javafx.scene.control.Tooltip", Array(msg))
joToolTip.RunMethod("install", Array(iv, joToolTip2))
End Sub
Example:
B4X:
Private imgTMP36 As ImageView
ToolTipToImageView(imgTMP36, "The TMP36 temperature sensor")