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