home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14732 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.4 KB  |  30 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!psgrain!qiclab!baer
  3. From: baer@qiclab.scn.rain.com (Ken Baer)
  4. Subject: How do I keep small tools windows in front of Big work windows?
  5. Message-ID: <1992Aug30.000511.1110@qiclab.scn.rain.com>
  6. Organization: SCN Research/Qic Laboratories of Tigard, Oregon.
  7. Date: Sun, 30 Aug 1992 00:05:11 GMT
  8. Lines: 20
  9.  
  10. Here's the situation: my application has a large work area, with a fixed
  11. tools window above it, and several other tools windows that are draggable
  12. and sizable that are non-modal and pop up over the main window.  The user
  13. frequently will click on the tools windows and the main work area (similar
  14. to a paint program).  My problem is that when you click on the larger window
  15. it pops to the front and covers up the other windows.  Since the Windows
  16. Manager talks directly to the Toolbox Manager, how can I intercept the 
  17. ActivateWindow() my mouseclick generates?  What I want to do is exactly
  18. what Studio8 or PhotoShop do when their tools windows are always in the
  19. front.  BTW, I always open the tools windows after the main window.  Also,
  20. I would prefer not to have to redraw the tools windows everytime I click
  21. in the main window.  
  22.  
  23. Any hints and code examples will be greatly appreciated.
  24.     -Ken Baer.
  25.     baer@qiclab.scn.rain.com
  26. -- 
  27.     //    -Ken Baer.  Programmer/Animator, Hash Enterprises
  28.   \X/     Usenet: baer@qiclab.UUCP  /  Office: (206)573-9427
  29.           "Hey, I think a glacier just passed us!" - Andy from Joyride
  30.