🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.acorn.tech
1 messages
1 total messages Started by Mr A E Hersee Wed, 14 Oct 1992 09:13
Another RO3 bug to watch out for.
#318
Author: Mr A E Hersee
Date: Wed, 14 Oct 1992 09:13
14 lines
1419 bytes
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads