Silverfrost Forums

Welcome to our forums

Curses - oops - cursors

8 Sep 2021 6:35 #28238

Although ClearWin+ allows definition of new cursors, it doesn't seem to have a way of changing the cursor on the fly except for to the 'wait' cursor, as with SET_CURSOR_WAITING@. What appears to me to be the case is that ClearWin+ has routines for setting the cursor for a window as a whole or for a %gr drawing surface, but not on the fly, except for the waiting cursor and the SET_GRAPHICS_MODE@(3) option that you wouldn't think was a cursor change at all. Can anyone help with the windows functions please? I had a look in CLEARWIN.INS, and several of the MSDN functions don't show up.

While rummaging around, I discovered that my Windows installation has a lot of cursors in it, such as 32649 which is a 'grabber hand'. Are some or all of them standard for Windows?

Eddie

8 Sep 2021 12:13 #28239

Eddie

%cu[name] sets the cursor for the next control and if you want to use two cursors for that control then you use %2cu[name1][name2] etc.. You also provide an integer sel which is set to 1 to display the first cursor, 2 for the second and zero to hide the cursor.

For more general use, the relevant Microsoft function is SetCursor but in this case the default cursor must be set to NULL otherwise the display changes back to the default as soon as the cursor is moved. I don't think there is currently a mechanism to set the default cursor to NULL other than the above %Ncu with sel = 0 which might work.

8 Sep 2021 1:13 #28240

Thanks Paul,

I did understand it 8 years ago, but had forgotten. Your reply reminded me what to look for. Many thanks.

Eddie

Please login to reply.