Simple Annex Tooltips

Place code snippets and demo code here
Post Reply
User avatar
Electroguard
Posts: 836
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 268 times
Been thanked: 317 times

Simple Annex Tooltips

Post 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:
Post Reply