Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!travelers.mail.cornell.edu!news.kei.com!news.mathworks.com!newsfeed.internetmci.com!news.mel.aone.net.au!inferno.mpx.com.au!metro!news.cs.su.oz.au!tmx!news.tmx.com.au!news
From: FOOTPRINT@
Subject: How can ST know when it gets focus???
Keywords: ST V/PM
Message-ID: <DH1Er5.M5F@online.tmx.com.au>
Nntp-Posting-Host: footprint.tmx.com.au
Sender: news@online.tmx.com.au (System Administrator)
Reply-To: FOOTPRINT@
Organization: The Message eXchange Pty Ltd
Date: Thu, 26 Oct 1995 03:52:15 GMT
X-Newsreader: IBM NewsReader/2 v1.2
Lines: 18

Smalltalkers,

How can I make my ST V/PM app be aware when it is the active/inactive task?  
I have an application that co-exists on an OS/2 machine with other apps
and whenever my app becomes the current task, it needs to know.
I have come up with a solution that involves forking a continuous polling of Notifier>>haveFocus.  Surprisingly,
there is no noticeable performance degradation(contrary to what my PMMEM program tells me), although the
desktop and mouse behave a bit strangely.  I would prefer to use something else, possibly from 
the OS, but browsing the library doesn't admit any obvious solutions.

Does anyone have any ideas?

Jireh Mak
Team Leader
Footprint Software P/L
Sydney, Australia
jmak@footprint.com.au
61-2-285-1777
