Magnifying Glass (zoom) Cursor over image
You can use: .picture img{ cursor: -moz-zoom-in; cursor: -webkit-zoom-in; cursor: zoom-in; }
You can use: .picture img{ cursor: -moz-zoom-in; cursor: -webkit-zoom-in; cursor: zoom-in; }
This should work Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; Use System.Windows.Input not System.Windows.Forms.
While I can’t explain exactly why this happens, I think I can show how to get around it. The ICONINFO struct contains two members, hbmMask and hbmColor, that contain the mask and color bitmaps, respectively, for the cursor (see the MSDN page for ICONINFO for the official documentation). When you call GetIconInfo() for the default … Read more
xgMz’s answer was best for me. You don’t need to worry about the browser: var html = $(“#MyTextArea”).val(); $(“#MyTextArea”).focus().val(“”).val(html); And here’s a quick jQuery extension I wrote to do this for me next time: ; (function($) { $.fn.focusToEnd = function() { return this.each(function() { var v = $(this).val(); $(this).focus().val(“”).val(v); }); }; })(jQuery); Use like this: … Read more
Standard cursor image: setCursor(Cursor.getDefaultCursor()); User defined Image: Toolkit toolkit = Toolkit.getDefaultToolkit(); Image image = toolkit.getImage(“icons/handwriting.gif”); Cursor c = toolkit.createCustomCursor(image , new Point(mainPane.getX(), mainPane.getY()), “img”); mainPane.setCursor (c); You can download a zip containing sample source: HERE
You can set two <svg> elements one to define your SVG symbol and the other to hold the element. Then with Javascript, you can set an event listener and change the position of the whole <svg> (the one holding your element) when the user’s cursor moves. Also, I have hidden the default browser cursor with … Read more
Your problem may be that cursor URLs don’t work in Firefox for the Mac. You can get the same effect on Firefox by using the -moz-zoom-in keyword. cursor:url(/img/magnify.cur), -moz-zoom-in, auto; This will show magnify.cur, the Mozilla-specific zoom cursor or a system default cursor. The first cursor on the list that the browser supports is used. … Read more
Use a MouseMotionListener on your JList to detect when the mouse enters it and then call setCursor to convert it into a HAND_CURSOR. Sample code: final JList list = new JList(new String[] {“a”,”b”,”c”}); list.addMouseMotionListener(new MouseMotionListener() { @Override public void mouseMoved(MouseEvent e) { final int x = e.getX(); final int y = e.getY(); // only display … Read more
Try to do the following: System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor; More information is available at Cursors Class documentation Cursor class doesn’t support GIF files or animated cursors (.ANI). You can load a custom cursor doing Cursor.Current = new Cursor(“C:\\ic.cur”); Maybe you can convert yout GIF file to cursor format using a tool like Microangelo. In addition, there … Read more
As AmeliaBR’s comment indicates, you should add this style inside the SVG <object>. And unless your SVG is very simple, you may have the same issue I had: only seeing a pointer when you are hovering over one of the shapes in the SVG, but not when you’re between shapes. (In some cases you might … Read more