mouse-cursor

How do you use a custom mouse Cursor in a .NET application?

Well, as the title says, how can I set an image or anything else as the mouse cursor. I know you can use the built in ones that are part of the Cursors class, but I was wondering if there's a way to use your own image (preferably without P/Invoke, but either way is fine.) EDIT: I guess I didn't explain what I wanted clearly enough. I do...

Setting the mouse cursor for a particular JTable cell.

I have a JTable with a set of uneditable cells and I want all the cells in a particular column to have a different mouse cursor displayed whilst the mouse is hovering over them. I am already using a custom renderer and setting the cursor on the renderer component doesn't seem to work (as it does for tooltips). It does seem to work for e...

how do I implement a "second mouse cursor" in a c# windows app?

I actually don't want it to be a "real" mouse cursor, i.e. no need for ability to click on buttons, select text etc. It should just look like a cursor (or kinda like it) and be able to move around the app's window (no need to go outside). It will be controlled by the computer, and the user should be able to use the mouse as usual during ...

Changing mouse-cursor on a html-page

I need a way of changing the mouse-cursor on a html-page. I know this can be done with css, but I need to be able to change it at runtime, like for instance having buttons on the page, and when they're clicked they change the cursor to a specific custom graphic. I think the best (or only?) way of doing this is through javascript? I hope ...

Changing mouse-cursor

I have seen in some applications the cursor changing. How do you do that? Thanks ...

How override cursor:text in the asp:menu for non-clickable items?

I have a menu control on the master page. The datasource for the menu is a websitemap. E.g., HOME Page1 (clickable) Page2 SubPage1A (clickable) SubPage2B SubPageSubPage1 (clickable) SubPageSubPage2 (clickable) Page3 ...

VC++ win32 API programming :how to change mouse cursor

Hi there I am trying to change the mouse cursor and write the code below but doesn't work. It seems IDC_CURSOR_WHITE should be put into a rc file. I tried and failed. At last I came here seeking your guidance. Help! Thanks. IDC_CURSOR_WHITE IDC_CURSOR_BLACK not hWhiteCursor = ::LoadCursor(hInstance, (LPCTSTR)IDC_CURSOR_WHITE); hBlac...

How do I know the size of a HCURSOR object

I want to get the height and width of a .cur file without look into its format. I try to use LoadCursorFromFile() to get a HCURSOR, I suppose there is a API function to obtain the HCURSOR infos, but I find that GetCursorInfo() is not I want at all. Is there any way to get the height and width of a HCURSOR object? ...

Is it possible to make a custom mouse cursor with Python Tkinter? (Using matplotlib with the TkAgg backend)

It's likely that this is just a general Python Tkinter question, not necessarily a matplotlib one. So I'm in the midst of developing a rather large suite of plotting functionality on top of matplotlib using the Matplotlib "TkAgg" backend (Agg rendering to a Tk canvas using TkInter). I'm using some of the default zooming functionality p...

html positioned over flash: how to get cursor to respect CSS rules in OS X browsers

I have a webpage with a flash movie (via SWFObject) and I am using a modal jQuery UI dialog to pop up a google map on top of the webpage in response to user input. When viewing the site in Safari or FireFox on OS X, if I have the mouse over the part of the dialog content that is overlapping the flash movie underneath, the cursor change...

Mouse cursor replacement in Windows

Hi! Is it possible to replace default mouse cursor with some more complex animated object that has size bigger than 32x32? I know that I can use transparent window instead of cursor, but it doesn't look as good solution because cursor renders much more faster than window, therefore user could see movement delays. Thanks! ...

Resetting wait cursor in browser with Content-Disposition:attachment

The following code works nicely: <script type="text/javascript"> var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_initializeRequest(InitializeRequest); prm.add_endRequest(EndRequest); function InitializeRequest(sender, args) { document.body.style.cursor = 'progress'; } function EndRequest...

Mouse coordinates lags if CPU usage is not 100% - really weird!

When i make my program to use only 0-2% cpu (removed some CPU intensive opengl function), my mouse coordinates starts to lag! and when i use 100% CPU (when enabling the opengl function) i get nice and smooth mouse coordinates, note that the opengl function does nothing to my mouse coordinates. look at below image i recorded my rotation f...

Changing mouse icon thru javascript

I am developing paintbrush application in javasript using Canvas Object. I want to change my own mouse cursor when the mouse pointer comes inside Canvas object. How to load my own icon? ...

PyGame Set Mouse Cursor from Bitmap

Hello everyone, I'm making an image editor using pyGame and I was wondering if it was possible to change the mouse cursor to something more suitable (for instance a circle or rectangle) for brushes. PyGame has a really weird way of doing it that I'm not sure would work very well. Is there a way I can write to a bitmap and then use that?...

Changing mouse cursor in Share Point

I designed a Share Point page in Share Point Designer. ( I cannot upload anything to the servers or no chance to use add-ons) Since it is requested I have to change the shape of mouse cursor. Some purple bubbles or a logo should follow the original mouse cursor when I move the mouse. How can do this? If I find the code where (in whic...

Hide cursor in Chrome (and IE)

I have the following CSS that hides the mouse cursor for anything on the web page. It works perfectly in FireFox but in IE and and Chrome it doesn't work. html { cursor: none; } In Chrome I always see the mouse pointer. In IE however I see whatever cursor was last 'active' when it entered the screen. Presumably it's...

flash cs4: how can i change mouse cursor as if i'm on a button ?

Hiya. I have some MovieClips that act like buttons, how can i do that when the user hovers on the movieclip, the mouse cursor will change to a hand or the default cursor when it hovers a button. i don't want to create my own custom cursor, i want to use the default set of cursors that come with flash. thanks using flash cs4, action sc...

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

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 t...

C# Change Global Mouse Cursor

I have a form with a Transparency-key color, where I'm doing a global mouse hook for the right click. Until there everything is okay, but since the form is transparent, the mouse cursor is changing according to what is behind the form. Is there any way to change the global mouse cursor? ...