Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Another RO3 bug to watch out for.

0 views
Skip to first unread message

Mr A E Hersee

unread,
Oct 14, 1992, 5:13:39 AM10/14/92
to
Last night I was writing a nice little application that needed to grab hotkeys
that the wimp passes around. So what do I do I test to see if the WIMP is
greater than 299 and if it is I open my window with -3 ie behind the pinboard
where iconized windows live. Thus it will never be seen. On RO2 it opens it at
the back ie -2. Now in RO3 when I receive a Wimp_KeyPressed message I process
the key or pass it on using SWI Wimp_ProcessKey. Now the RO2 PRM's state that
this is the correct action and indeed it is. They state that the wimp will
then pass the key on to other applications until it gets to the window at the
back and then stop. But if your window is the back one the WIMP just keeps
passing the message to you thus you keep returning it to the WIMP like a good
little app and it gives it back tou you, and hey we find ourselves in a
infinite circle. So to get round this I have to open the window at -2 not -3.
Just a warning incase you wonder why your little app decides to crash in a
VERY simple routine.
0 new messages