[comp.sys.mac.programmer] Handling many Modeless Dialogs

soe@ames.arpa (Brad Soe) (04/29/88)

I am using MPW, and want to be able to display many modaless dialogs
at one time. I want to be able to switch windows by just 
clicking in them, making them the active (if not already)
dialog window. Are these windows just like any other WindowPtrs, or
do they act differently?? What I thought that I could do is to
track mouse down events, and use FindWindow to get the window
that the mouse was clicked in and then call SelectWindow 
to change windows . This has worked fine in the 
past using regular document windows, but when I try to use it
on modeless dialogs, I have problems. I have read through 
Inside Macintosh, but somehow just can't find the answer. 
Is there some way to do this. 


				Brad Soe 
				internet : soe@ames.arc.nasa.gov
				NASA Ames Research Ctr.
				Mail Stop 233-18
				Moffett Field, CA 94035
				(415) 694-4866