home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / apple2 / 27627 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.1 KB  |  56 lines

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