Theme Designer - Text Label highlite

0
0

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 ?

  • You must to post comments
0
0

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:

stylesheet

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).

label

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

  • edmond girardi
    We can do a teamviewer session if you want to see the issue running – send me a private email if so.
  • edmond girardi
    We can do a teamviewer session if you want to see the issue running – send me a private email if so.
  • edmond girardi
    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.
  • edmond girardi
    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 ?
  • Frank (ITG)
    Try adding !important; also to cursor:pointer Then it should work. Best regards, Frank
0
0

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

  • edmond girardi
    yes – a user control with a picture box and a label that is dynamically added to a panel at runtime
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.