mouse-cursor

SVG mouse cursor blurry on Retina display

為{幸葍}努か 提交于 2019-12-13 02:04:35
问题 I'm using a custom SVG cursor on my webpage and it appears to be blurry on Retina screens. Is this a common issue? 回答1: I've run into the same issue. My workaround involves using jQuery to follow the mouse position with an SVG div: $(document).mousemove(function(e){ $("#cursor").css({left:e.pageX, top:e.pageY}); but this has one issue of its own which I haven't resolved - it does not follow the mouse position as you scroll like the css option does jQuery: https://jsfiddle.net/jhhbrook

Determine cursor size of currently selected theme

随声附和 提交于 2019-12-12 03:09:18
问题 I want to show a custom mouse cursor, in a size that matches the current settings (in the control panel) of the user. Doing Cursor.Current.Size always returns 32x32 (as I guess they always are technically , though not visually), no matter what the control panel settings, which are correctly reflected by smaller or bigger cursor appearances. So how do I figure out the size? 回答1: For what I have found out, you have to get the Icon for the cursor (probably with some win32-API) and then using

Silverlight: Is it possible to use custom mouse cursors/pointers?

僤鯓⒐⒋嵵緔 提交于 2019-12-10 19:13:46
问题 I have just found this page indicating the support for Silverlight mouse cursors: http://msdn.microsoft.com/en-us/library/system.windows.input.cursor(VS.95).aspx Is that it!!! :-| what are they thinking, at least there is stylish looking Eraser! Is there aany other way to use custom cursors? How efficient/usable would it be to hide the cursor and show a png instead? 回答1: I found an example here: http://nokola.com/blog/post/2009/12/13/Adorners-in-Silverlight-Move-Size-Rotate-Custom-Mouse

Changing cursor when rendering a JList

别来无恙 提交于 2019-12-10 17:53:28
问题 I've achieved what I'm trying to do, but I can't help but to think there is a more efficient way...allow me to illustrate. In short, the question I'm asking is if there's a way to determine when a component has finished it's initial rendering. I have a JList, which is hooked up to a DefaultListModel and getting painted by a custom renderer which extends the DefaultListCellRenderer. This intention of the JList is to "page" through a log file, populating 2500 elements every time a new page is

Cursor not functioning correctly in IE11 select inputs

谁说我不能喝 提交于 2019-12-07 11:38:44
问题 Please see fiddle: http://jsfiddle.net/ajjp/b7M2H/ <div> <select> <option> Option 1 </option> <option> Option 2 </option> <option> Option 3 </option> <option> Option 4 </option> <option> Option 5 </option> <option> Option 6 </option> <option> Option 7 </option> </select> </div> <div> <input> </input> </div> In Internet Explorer 11 the cursor property changes when hovering over a select option that is over the input beneath. Hoping there is a simple CSS solution. 回答1: It's an IE bug that seems

Shadow for custom mouse cursor

北城余情 提交于 2019-12-07 07:30:45
问题 On "newer" Windows systems there is an option to make the OS draw a shadow beneath the mouse cursor: However the custom cursors in my Delphi app don't show a shadow even if this setting is enabled. Do you have any idea how to arrange it so that Windows adds the shadow automagically? Or do I really have to check the user's preferences and conditionally draw the shadow myself like Mike Lischke did? (This is a question that has been bugging me and others for some time: Custom mouse cursor shadow

Change mouse cursor to busy mode when PrimeFaces ajax request is in progress

a 夏天 提交于 2019-12-06 22:41:46
问题 it is possible to change the mouse cursor's form into busy mode (for example: hourglass) when processing ajax button in JSF (specifically primefaces)? I want to change my cursor's form while my p:dataTable is loading data when i navigate it to the next page. Thanks. 回答1: You can achieve this with a little help of CSS and jQuery. With CSS, you can create a class which changes the cursor on the entire document. With jQuery, you can add/remove that CSS class. Under the covers, PrimeFaces uses

C++ - change the cursor in an X Window

点点圈 提交于 2019-12-05 15:12:33
I thought this would be easy to find, but a google search has been very unhelpful. Is there a simple api to change the mouse cursor in your X window? (I know in windows you can just call "SetCursor") #include <X11/cursorfont.h> /* ... */ Cursor c; c = XCreateFontCursor(dpy, XC_xterm); XDefineCursor(dpy, w, c); Where dpy is your display, w is your window and XC_xterm is a constant defining the shape of your cursor. Here's a list of available cursor shape , along with images. Looks like the equivalent of a SetCursor call is XDefineCursor . You can get a Cursor id by calling XCreateFontCursor and

Shadow for custom mouse cursor

ⅰ亾dé卋堺 提交于 2019-12-05 14:41:18
On "newer" Windows systems there is an option to make the OS draw a shadow beneath the mouse cursor: However the custom cursors in my Delphi app don't show a shadow even if this setting is enabled. Do you have any idea how to arrange it so that Windows adds the shadow automagically? Or do I really have to check the user's preferences and conditionally draw the shadow myself like Mike Lischke did ? (This is a question that has been bugging me and others for some time: Custom mouse cursor shadow Custom cursor shadow Custom cursor with shadow ) No, you don't need to check the user's global