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