Page 1 of 1

Simple Annex Tooltips

Posted: Tue Feb 09, 2021 8:45 pm
by Electroguard
(from CiccioCB)
The css can become easily complicate and very hard to understand.

A "fast and dirty" solution is to use the attribute "title" that enable the tooltip text on the objects.

This snippet shows how it can be applied to textbox and button objects


'CODE: tooltip-easy.bas
cls
b$="ciao"

t$ = textbox$(b$)
html replace$(t$, "<input ", "<input title='this is a textbox'")

t$ = button$("Press Me", gohere)
html replace$(t$, "<button ", "<button title='this is a button'")

gohere: