🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #318

Another RO3 bug to watch out for.

#318
From: 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.
Technical Details
Message-ID: <1bgoc3INNifj@lily.csv.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!warwick!warwick!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!warwick!warwick!not-for-mail
From: esutt@csv.warwick.ac.uk (Mr A E Hersee)
Newsgroups: comp.sys.acorn.tech
Subject: Another RO3 bug to watch out for.
Message-ID: <1bgoc3INNifj@lily.csv.warwick.ac.uk>
Date: 14 Oct 92 09:13:39 GMT
Organization: Computing Services, University of Warwick, UK
Lines: 14
NNTP-Posting-Host: lily.csv.warwick.ac.uk