walterf25 Expert Licensed User Longtime User Mar 27, 2024 #1 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
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
P PaulMeuris Well-Known Member Licensed User Mar 27, 2024 #2 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
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.
walterf25 Expert Licensed User Longtime User Mar 28, 2024 #3 PaulMeuris said: 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. Click to expand... 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
PaulMeuris said: 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. Click to expand... 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.
P PaulMeuris Well-Known Member Licensed User Mar 28, 2024 #4 OK. I understand. Sorry to have wasted your time. Hopefully the author of the library can give you an answer... Upvote 0
OK. I understand. Sorry to have wasted your time. Hopefully the author of the library can give you an answer...