home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7387 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  1.3 KB

  1. Path: sparky!uunet!rosie!NeXT.com
  2. From: sam_s@NeXT.com (Sam Streeper)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: Making a window... not a window.
  5. Message-ID: <5931@rosie.NeXT.COM>
  6. Date: 24 Nov 92 01:51:58 GMT
  7. References: <17039@umd5.umd.edu>
  8. Sender: news@NeXT.COM
  9. Reply-To: sam_s@NeXT.com
  10. Lines: 22
  11.  
  12. matthews@oberon.umd.edu (Mike Matthews) writes:
  13. > How in blazes are you supposed to make a window that can not be moved?  I
  14. > know you have to use the initContext:... stuff (i.e. not use IB's palettes).
  15. > I tried passing a style of NX_PLAINSTYLE to the window but the doggone title
  16. > bar was logically there.
  17.  
  18. You were probably on the right track.  If memory serves me a window with a null  
  19. button mask has no title/move bar.  The following code seems to do what you  
  20. want:
  21.  
  22.     window = [[Window alloc] initContent:&r style:NX_PLAINSTYLE
  23.             backing:NX_BUFFERED buttonMask:0 defer:NO];
  24.  
  25. I think plain windows, tastefully used, don't have to violate anybody's idea of  
  26. how a NeXTstep app ought to work.  They are very useful for all kinds of custom  
  27. UI and I for one like to see intuitive UI objects other than those found in IB.
  28.  
  29. -sam
  30.  
  31. --
  32. Opinions expressed herein are not those of my employer.  They're not even
  33. mine.  They're probably wrong besides.  How did they get in here, anyway?
  34.