B4J Question Underline Text on hover

walterf25

Expert
Licensed User
Longtime User
Hi all, I am trying to figure out a way to underline the text on an ABMLabel component when hovering over the label, I have tried the following but doesn't work.

B4X:
lblforgotpass.SetExtraStyle($":hover {text-decoration: underline; }"$)

Any ideas how to get this working?

Regards,
Walter
 

PaulMeuris

Active Member
Licensed User
For a standard B4J label you can use (in Label_MouseEntered or Label_MouseExited):
B4X:
CSSUtils.SetStyleProperty(lbl,"-fx-underline","true")
As for an ABMLabel you should consult the ABMaterial library documentation.
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
I'm very well aware of how to do it in regular B4J framework, my post is only about ABMLabel, and if I am posting here is because I already spent hours searching the forums but could not find a solution.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…