A Couple of Wimp Issues
Justin F
gerph at gerph.org
Sat Apr 24 23:22:48 BST 2021
> 2) Under the comment "Various Windows", there's
>
> Wimp_NoIcon = Wimp_W: -1;
>
> which has me puzzled. It would make more sense (to me) if it were
>
> Wimp_NoIcon = Wimp_I: -1;
>
> and in the next section of the file, as it would then provide an alternative
> meaningful name for Wimp_IconWindow in different contexts. I've often used
> Wimp_IconWindow in code when I really meant "No Icon".
>
> Am I correct in thinking that this is a typo, or have I failed to spot what
> Wimp_NoIcon's purpose is as Wimp_W?
Wimp_SetCaretPosition takes r0 = -1 for the window handle to 'turn off and
disown the caret', ie it is being sent to 'no icon'. This is distinct from
setting the caret to the background window, or setting it to the top
window, which are the other two uses of the Wimp_W with the value set to
-1. Similarly Wimp_GetCaretPosition returns it in the block.
You might also want to review the messages for the clipboard or
drag-and-drop protocol, as I suspect that they also have a similar
meaning.
Probably adding a comment to this effect nearby might help :-)
--
Charles Justin Ferguson
[ All information, speculation, opinion or data within, or attached to,
this email is private and confidential. Such content may not be
disclosed to third parties, or a public forum, without explicit
permission being granted. ]
More information about the oslib-user
mailing list