Article View: comp.sys.next.programmer
Article #2047Re: How to limit window size of app
From: Charles Robinson
Date: Sun, 13 Dec 1992 22:23
Date: Sun, 13 Dec 1992 22:23
14 lines
1130 bytes
1130 bytes
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.
Technical Details
Message-ID:
<1992Dec13.222309.16899@serveme.chi.il.us>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!ddsw1!gagme!datecReferences:
<1992Dec9.173903.17768@u.washington.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!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