home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apple2
- Path: sparky!uunet!newsstand.cit.cornell.edu!piccolo.cit.cornell.edu!crux2!jmk3
- From: jmk3@crux2.cit.cornell.edu (Jay Krell)
- Subject: Re: aaarghh...DragWindow doesn't drag...
- Message-ID: <jmk3.728200534@crux1.cit.cornell.edu>
- Sender: news@piccolo.cit.cornell.edu (USENET News System)
- Nntp-Posting-Host: crux2.cit.cornell.edu
- Organization: Cornell Information Technologies
- References: <1993Jan27.200524.5726@ifi.unizh.ch>
- Date: 28 Jan 93 05:55:34 GMT
- Lines: 43
-
- >From: gudat@avalon.physik.unizh.ch (gudat henrik)
- >Subject: aaarghh...DragWindow doesn't drag...
-
- >Hello Dave, Matt, Jay and all those other GS gurus!
-
- >I want to move windows to other places "manually", i.e. without using
- >taskmaster. The user has to select "Move Window...", the cursor becomes
- >a hand, and then he (or she) can walk with that window around. The
- >pseudocode looks like this:
- >...
- >_GetMouse
- >_LocalToGlobal
- >_DragWindow
- >...
- >I've noticed that this routine works only with titled windows, but I'd
- >like to apply this mechanism to windows without title bar. (Er, that's
- >why it's here...)
- >
- >Any way out? Does DragWindow check the frame bits (BTW, fMove=1)?
- >
- >What's going on? Thanks a ton for your reply!
- >
- >henrik
-
- I'm a guru? Wow. Thanks. Anyway, I must admit, my knowledge of the IIGS is very
- lacking. Two huge voids are QuickDraw II and the Window Manager. I've barely
- used them.
-
- As a cop-out and not a bad answer at all, I can tell you what Matt would be
- sure to say: what you are doing is not part of the Apple interface and the
- inconsistency is against it and might confuse users. If you are trying to drag
- a modal dialog or window, you might consider a modeless dialog or a movable
- modal dialog, via FakeModalDialog (name?).
-
- I've often thought, though, that it would be nice if windows were dragable w/o
- taking up so much room (esp. on the IIGS) for the title bar.
-
- I checked the DragWindow docs (never had before) and your use seems right. It
- doesn't mention flags it checks. You should try changing some of the bits and
- experimenting. Just call SetWFrame in Nifty List while testing your app.
-
- --Jay, jay.krell@cornell.edu
-
-