home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20707 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.5 KB  |  35 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!wupost!csus.edu!netcom.com!bskendig
  3. From: bskendig@netcom.com (Brian Kendig)
  4. Subject: How do I make my windows handle a multiple-monitor system?
  5. Message-ID: <1993Jan5.193034.19490@netcom.com>
  6. Organization: Starfleet Headquarters: San Francisco
  7. Date: Tue, 5 Jan 1993 19:30:34 GMT
  8. Lines: 25
  9.  
  10. The windows in my program work just fine with a single-monitor system,
  11. but they have problems when the user tries to drag or zoom them on a
  12. Macintosh with more than one monitor connected to it.
  13.  
  14. To drag the window, I just set up a drag rect with
  15.  
  16.     dragRect = screenBits.bounds;
  17.     dragRect.left += DRAG_THRESHOLD;
  18.     dragRect.right -= DRAG_THRESHOLD;
  19.     dragRect.bottom -= DRAG_THRESHOLD;
  20.  
  21. then do a DragWindow(whichWindow, theEvent.where, &dragRect).  I zoom
  22. in the standard way too, with ZoomWindow, but that's not quite working
  23. either.  (I don't know exactly what's happening, because I don't have
  24. multiple monitors; my beta-testers are the ones reporting the problems.)
  25.  
  26. Is there sample code available anywhere for how to properly drag and
  27. zoom windows across multiple monitors?
  28.  
  29. -- 
  30. _/_/_/  Brian Kendig                             Je ne suis fait comme aucun
  31. /_/_/  bskendig@netcom.com                de ceux que j'ai vus; j'ose croire
  32. _/_/                            n'etre fait comme aucun de ceux qui existent.
  33.   /  Nolite te bastardes     Si je ne vaux pas mieux, au moins je suis autre.
  34.  /    carborundorum.                                             -- Rousseau
  35.