1

If I set the cursor for a Label in a css-file as shown below it works as expected. The cursor is a "wait-cursor" if it is moved over the Label

Label.mylabel:hover {
    cursor: wait;
}

As it is described in the RWT-Theming-Reference the following should also be possible

Label.mylabel:hover {
    cursor: url( resources/cursor.gif );
}

But I can not see my cursor.
How can I set an own image for a cursor?

Michael
  • 65
  • 7

2 Answers2

3

Turns out that there is a bug in RAP that prevents custom cursors from being rendered. I'll provided a fix that will likely be included in the 3.0.1 release.

Update: the fix is merged and will be available in 3.1 M1 and 3.0.1.

ralfstx
  • 3,893
  • 2
  • 25
  • 41
1

Try this

label.mylabel:hover {
    cursor:url("resources/cursor.gif"), auto;
}

Make sure that your are providing correct url for image.

  • This does not work on my system, I use RAP 3.0.0. The url to the image is correct; if not, I see a CSSException at startup. – Michael Jul 07 '15 at 14:36