mouse-cursor

Cursor not functioning correctly in IE11 select inputs

妖精的绣舞 提交于 2019-12-05 13:08:55
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. It's an IE bug that seems to persist in every version - z-index and absolute positioning will not work. Since it doesn't cripple

Not displaying Mouse cursor

拜拜、爱过 提交于 2019-12-05 07:16:34
I am developing Mac desktop application, where i am capturing the screen using CGImageRef screenShot = CGWindowListCreateImage(CGRectInfinite, kCGWindowListOptionAll, kCGNullWindowID, kCGWindowImageDefault); and display the screen shot, The problem is, i am expecting it should show the mouse cursor too, but its not showing, do i need to enable any settings for that ? I tried following before calling this function CGDisplayShowCursor(kCGDirectMainDisplay); CGAssociateMouseAndMouseCursorPosition(true); but it didn't work, When i checked using following bool bCursor = CGCursorIsDrawnInFramebuffer

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

ぐ巨炮叔叔 提交于 2019-12-05 02:38:53
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. 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 jQuery for the ajax magic and you can for PrimeFaces <4 hook on standard jQuery ajaxStart and ajaxStop events

How do I get rid of the mouse cursor in full-screen exclusive mode?

為{幸葍}努か 提交于 2019-12-05 00:10:01
问题 I'm working on a simple 2D game engine in Java, and having no trouble with FSEM, buffer strategies, and so on; my issue is with the mouse cursor. In windowed mode, I can hide the mouse cursor, no problem, by using setCursor() from my JFrame to set a wholly-transparent cursor. However, after a call to device.setFullScreenWindow(this) to go into FSEM, the mouse cursor comes back, and subsequent calls to setCursor() to set it back to my blank cursor have no effect. Calling device

Swing: Change cursor to wait cursor

最后都变了- 提交于 2019-12-04 07:19:26
See also Java Swing GUI hour glass . However the provided answer does not seem to work. I have following code: private void loadFileMenuItemActionPerformed(java.awt.event.ActionEvent evt) { int returnVal = fileChoser.showOpenDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { try { this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); // do stuff } finally { this.setCursor(Cursor.getDefaultCursor()); } } } This is called when user selects the according entry in the menu bar. However the cursor never changes. Note that loading the file takes a file and hence a change in the

When I click on a canvas and drag my mouse, the cursor changes to a text-selection cursor. How can I prevent this?

徘徊边缘 提交于 2019-12-03 13:09:00
Here's a fiddle: http://jsfiddle.net/MZ9Xm/ Note: The following occurs in Chrome 22.0.1221.1, but not in Firefox 14.0.1. [Ubuntu linux] Move your mouse to the top canvas and press and hold the mouse button. Drag the mouse, and the cursor will change to a text-selection mouse cursor (I-bar). This does not happen if there are no other elements on the page. I've messed around with setting user-selection to none, but have not had any luck. You can bind a mousedown event in your canvas to prevent default behavior. Something like: // with jQuery $( "#canvasId" ).mousedown(function(event){ event

How to get the cursor to change to the hand when hovering a <button> tag

风格不统一 提交于 2019-12-03 09:18:32
When viewing my site, the cursor only changes to the gloved hand for <a> tags, not <button> tags. Is there a reason for this? Here is my code (the button tags have an id of #more in css3). #more { background:none; border:none; color:#FFF; font-family:Verdana, Geneva, sans-serif; } Thomas see: https://developer.mozilla.org/en-US/docs/Web/CSS/cursor so you need to add: cursor:pointer; In your case use: #more { background:none; border:none; color:#FFF; font-family:Verdana, Geneva, sans-serif; cursor:pointer; } This will apply the curser to the element with the ID "more" (can be only used once).

Changing the mouse's i-beam cursor in Xcode 4

六月ゝ 毕业季﹏ 提交于 2019-12-03 02:22:16
问题 With a dark color scheme in Xcode 4 the i-beam cursor (aka text selection cursor) is nearly invisible. Is there a way to change the color of this cursor, either for Xcode specifically, or failing that, system-wide? It'd be nice if it would automatically change to a color contrasting its background too. 回答1: As of Xcode 8, Apple has hidden the i-beam cursor somewhere where nobody has found it. Instead, many have chosen to use Mousecape to alter the i-beam in all programs. I prefer that method

Changing the mouse's i-beam cursor in Xcode 4

余生长醉 提交于 2019-12-02 15:52:56
With a dark color scheme in Xcode 4 the i-beam cursor (aka text selection cursor) is nearly invisible. Is there a way to change the color of this cursor, either for Xcode specifically, or failing that, system-wide? It'd be nice if it would automatically change to a color contrasting its background too. As of Xcode 8, Apple has hidden the i-beam cursor somewhere where nobody has found it. Instead, many have chosen to use Mousecape to alter the i-beam in all programs. I prefer that method since it fixes the i-beam in other programs that support dark themes, such as Komodo editor. Mousecape

Mouse cursor bitmap

江枫思渺然 提交于 2019-12-02 08:57:40
问题 I am trying to get bitmap from mouse cursor, but with next code, i just can't get colors. CURSORINFO cursorInfo = { 0 }; cursorInfo.cbSize = sizeof(cursorInfo); if (GetCursorInfo(&cursorInfo)) { ICONINFO ii = {0}; int p = GetIconInfo(cursorInfo.hCursor, &ii); // get screen HDC dc = GetDC(NULL); HDC memDC = CreateCompatibleDC(dc); //SelectObject(memDC, ii.hbmColor); int counter = 0; // byte* bits[1000];// = new byte[w * 4]; BITMAPINFO bmi; memset(&bmi, 0, sizeof(BITMAPINFO)); bmi.bmiHeader