
Old displays such as VGA do not support color or animated cursors.

The type of cursor used on a particular computer system depends on the system's display. The following illustration shows several custom cursors.Ĭursors can be either monochrome or color, and either static or animated. An application replaces a default image by using the SetSystemCursor function.Īn application can use the GetIconInfo function to retrieve the current image for a cursor and can draw the cursor by using the DrawIconEx function.Ĭustom cursors are designed for use in a specific application and can be any design the developer defines. The user or an application can replace the default image associated with any standard cursor at any time. See Guidelines for information on recommended usage of standard cursors.Įach standard cursor has a corresponding default image associated with it. The SDK header files contain identifiers for the standard cursors - the identifiers begin with the IDC_ prefix: Value Remember: in my code above, I use a ScreenShot I’ve done before I click in Custom (last line of the first screen shot above).Windows provides a set of standard cursors that are available for any application to use at any time. The code is some lines only (including tests)… but warning: you can pass a large image asa MouseCursor (on macOS, not tested on WIndows) by error, so limit the picture size.ĭim thisMouse As New MouseCursor(Curs_Pict, 0, 0) I wrote that on January 22nd, 2022, and run it now with Xojo 2022r2 (m1 MacBookPro / Monterey 12.5). I do not tried to create a multiple Picture object, so I do not know if this work.

Of course, this MouseCursor change when the Mouse is ut of the ListBox. The code takes the Clipboard available Picture and convert it as a cursor (I made a copy of and get that as a cursor (RAW Cursor, whith white background since it was only to recall how this project worked). This project allow the user to change the ListBox MouseCursor, using one of the System.Cursors OR Custom.
