home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / programm / 7723 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!ddsw1!gagme!datec
  3. From: datec@gagme.chi.il.us (Charles Robinson)
  4. Subject: Re: How to limit window size of app
  5. Message-ID: <1992Dec13.222309.16899@serveme.chi.il.us>
  6. Sender: usenet@serveme.chi.il.us
  7. Organization: GAGME - Public Access UNIX of Chicago, Illinois, USA, Earth
  8. X-Newsreader: TIN [version 1.1 PL7]
  9. References: <1992Dec9.173903.17768@u.washington.edu>
  10. Date: Sun, 13 Dec 1992 22:23:09 GMT
  11. Lines: 14
  12.  
  13. William Barker (wrb@ulnar.biostr.washington.edu) wrote:
  14. : Hej,
  15. : Hopefully an easy question that I'm too lazy to look up for myself:
  16. : How does one limit the size of an app's window?  For example, not letting  
  17. : the user resize a main window to less than a certain size, or more than a  
  18. : certain size.
  19. : Hope this is an easy one.
  20. :
  21. Certainly is --- look at the code in DrawDocument.m method windowDidResize
  22. in the Draw example. Basically you just apply the constants you want to
  23. to width & height after the user has made his attempt at resizing. 
  24.