You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I create an Appearance that makes the text in the label change color when the mouse hovers over it ? I dont want to use the link label because I don't like the underline on it. Basically its for a custom menu I'm making.
Also - Do I just type the Appearance Key Name into the "Appearance Key" property of the label ?
as you might guess, there a couple of ways to achieve that with Wisej.
Here is a rather simple straight forward approach using css with the StyleSheet extender.
I have added a StyleSheetExtender to the page and created some simple css:
Now a CssClass property is added to all controls on that page. So you can now pick the class "highlight" and directly assign it using the designer.
(could also be done by code).
I have created a simple sample that shows you the result and helps you getting started:
Difficult to share code as it wont run without seeing all the other webservices i needs.
But – yes to the directive- below is my CSS:
.highlight:hover
{
color: red !important;
}
It works – Solved. My big typeO – needs to have “highlight” in the CssClass Property. Works as designed. I like the CSS effects in WiseJ – at least it does not have to go back to the server to do this type of thing – which in the early days of VisualWebGui i would have to code an event on the server to change the color of the text.
Activity
itg-assistant commentedon Jun 12, 2026
Frank (ITG) answered 2017-11-29 14:12:49 UTC
Hi Edmond,
just to make sure that I got it right:
Your custom menu is composed of standard labels ?
Will create a mixin and get back to you.
Best regards
Frank
itg-assistant commentedon Jun 12, 2026
edmond girardi answered 2017-11-29 14:19:58 UTC
yes – a user control with a picture box and a label that is dynamically added to a panel at runtime
itg-assistant commentedon Jun 12, 2026
Frank (ITG) answered 2017-11-29 15:16:58 UTC
Hi Edmond,
as you might guess, there a couple of ways to achieve that with Wisej.
Here is a rather simple straight forward approach using css with the StyleSheet extender.
I have added a StyleSheetExtender to the page and created some simple css:
Now a CssClass property is added to all controls on that page. So you can now pick the class "highlight" and directly assign it using the designer.
(could also be done by code).
I have created a simple sample that shows you the result and helps you getting started:
http://wisej.s3.amazonaws.com/support/attachments/LabelHover.zip
Best regards
Frank
itg-assistant commentedon Jun 12, 2026
edmond girardi answered 2017-11-29 20:56:54 UTC
I added a stylesheet extender to my user control and set the CSSClass on my label but it does not work (copied the style from your example to test)
itg-assistant commentedon Jun 12, 2026
Frank (ITG) answered 2017-11-29 21:13:01 UTC
Did you add the !important directive ? Can you please share the code / css ? If you want to you can also send it to frankATiceteagroup.com. TIA, Frank
itg-assistant commentedon Jun 12, 2026
edmond girardi answered 2017-11-29 21:38:39 UTC
Difficult to share code as it wont run without seeing all the other webservices i needs.
But – yes to the directive- below is my CSS:
.highlight:hover
{
color: red !important;
}
in the label CssClass property I have “important”
itg-assistant commentedon Jun 12, 2026
edmond girardi answered 2017-11-29 21:39:45 UTC
We can do a teamviewer session if you want to see the issue running – send me a private email if so.
itg-assistant commentedon Jun 12, 2026
edmond girardi answered 2017-11-29 21:39:48 UTC
We can do a teamviewer session if you want to see the issue running – send me a private email if so.
itg-assistant commentedon Jun 12, 2026
edmond girardi answered 2017-11-29 21:54:30 UTC
It works – Solved. My big typeO – needs to have “highlight” in the CssClass Property. Works as designed. I like the CSS effects in WiseJ – at least it does not have to go back to the server to do this type of thing – which in the early days of VisualWebGui i would have to code an event on the server to change the color of the text.
itg-assistant commentedon Jun 12, 2026
edmond girardi answered 2018-12-05 12:03:54 UTC
I went back to this and tried to add to it: change the pointer to a hand by using:
.highlight:hover {color: #5fc0fc !important;cursor: pointer};
but it does not change the pointer to a hand when hovering over the items. What am i doing wrong ?
itg-assistant commentedon Jun 12, 2026
Frank (ITG) answered 2018-12-05 12:40:17 UTC
Try adding !important; also to cursor:pointer Then it should work. Best regards, Frank