|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Wed Sep 08, 2021 7:35 am Post subject: Curses - oops - cursors |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7930 Location: Salford, UK
|
Posted: Wed Sep 08, 2021 1:13 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Wed Sep 08, 2021 2:13 pm Post subject: |
|
|
Thanks Paul,
I did understand it 8 years ago, but had forgotten. Your reply reminded me what to look for. Many thanks.
Eddie |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|