[comp.sys.mac.hypercard] Detecting a window in SuperCard

ako@cs.hut.fi (Arto Kojo) (08/28/90)

I'm building an SC application, that uses several windows. It also uses a
menu of its own. Some menuItems need to be dimmed or activated depending on
the window that is active (topWindow()). Of course menuItems must be dimmed
or activated immediately after user has clicked ther window..

What is the best way to detect the active window? Using idle makes things
a bit too slow, so I'm currently using mouseWithin. It isn't too fast either.



--
:::: Arto Kojo :::::::::::::::::::::: Helsinki University of Technology ::::
::   TKK/TKO-lab/Y227                 =>  ako@cs.hut.fi  <=               ::
::   02150 ESPOO FINLAND              akojo@otax.tky.hut.fi               ::
:::: tel: +358-0-4513236 :::::::::::: s29808u@puukko.hut.fi ::::::::::::::::