home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / programm / 7757 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  2.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!news.u.washington.edu!news
  2. From: wrb@ulnar.biostr.washington.edu (William Barker)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: How to limit window size of app
  5. Message-ID: <1992Dec15.202538.18129@u.washington.edu>
  6. Date: 15 Dec 92 20:25:38 GMT
  7. Article-I.D.: u.1992Dec15.202538.18129
  8. References: <1992Dec15.175215.13932@dtint.uucp>
  9. Sender: news@u.washington.edu (USENET News System)
  10. Organization: University of Washington
  11. Lines: 63
  12.  
  13. In article <1992Dec15.175215.13932@dtint.uucp> nevin@dtint.dtint.com  
  14. writes:
  15. > In article <1992Dec13.222309.16899@serveme.chi.il.us>  
  16. datec@gagme.chi.il.us  
  17. > (Charles Robinson) writes:
  18. > > William Barker (wrb@ulnar.biostr.washington.edu) wrote:
  19. > > : Hej,
  20. > > : 
  21. > > : Hopefully an easy question that I'm too lazy to look up for myself:
  22. > > : 
  23. > > : How does one limit the size of an app's window?  For example, not  
  24. letting  
  25. > > : the user resize a main window to less than a certain size, or more  
  26. than a  
  27. > > : certain size.
  28. > > : 
  29. > > : Hope this is an easy one.
  30. > > :
  31. > > Certainly is --- look at the code in DrawDocument.m method  
  32. windowDidResize
  33. > > in the Draw example. Basically you just apply the constants you want  
  34. to
  35. > > to width & height after the user has made his attempt at resizing. 
  36. > No, no, no.  This is the old solution.  While this was easy, it is now  
  37. even  
  38. > easier.  Under 3.0, just send the window a '-setMinSize:' message (or  
  39. > '-setMaxSize:', whichever is relevant).
  40. > --
  41. > Nevin Pratt, Digital Technology, Int'l    Orem, Ut
  42. > NeXTmail preferred, but ONLY at my REAL email address:  
  43. nevin@dtint.dtint.com
  44. > -- 
  45. > ---
  46. > root                                   root@dtint.dtint.com
  47. > Digital Technology Int.                (801)226-2984    
  48. > 500 W. 1200 South, Orem UT, 84057      FAX (801) 226-8438
  49.  
  50. Thanks to all who answered my original post, both the email responders and  
  51. the Net repsonders.  
  52.  
  53. Most of the responses were programming related.  That's not a problem, but  
  54. there is an real easy way to limit the small end of the window size:  See  
  55. the Size inspector panel in IB, when inspecting the window you want to  
  56. limit.  There's a Minimum size feature that you can either set to you own  
  57. coords, or there's a button that sets the coords to the window's current  
  58. size.  Very handy. 
  59.  
  60. So, at least half the answer was to be found in IB.  As it happens, that's  
  61. the answer I was after.
  62.  
  63. Again, thanks to all the responders.
  64.  
  65. And now back to your original programming....
  66.  
  67. bb 
  68.  
  69. --
  70. Bill Barker--Biological Structure--University of  
  71. Washington--Seattle--WA--98195
  72. (206) 543-7315
  73.