Skip to content

Theme Designer - Text Label highlite #1228

Closed

Description

@itg-assistant

edmond girardi asked 2017-11-29 13:03:55 UTC

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 ?

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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

  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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

  4. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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)

  5. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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

  6. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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”

  7. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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.

  8. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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.

  9. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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.

  10. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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 ?

  11. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2018-12-05 12:40:17 UTC

    Try adding !important; also to cursor:pointer Then it should work. Best regards, Frank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions