home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / oop / macapp3 / 228 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.4 KB

  1. Xref: sparky comp.sys.mac.oop.macapp3:228 comp.sys.mac.programmer:19933
  2. Path: sparky!uunet!spool.mu.edu!agate!dewey.soe.berkeley.edu!werner
  3. From: werner@dewey.soe.berkeley.edu (John Werner)
  4. Newsgroups: comp.sys.mac.oop.macapp3,comp.sys.mac.programmer
  5. Subject: Re: ViewEdit question
  6. Followup-To: comp.sys.mac.oop.macapp3
  7. Date: 16 Dec 1992 22:43:42 GMT
  8. Organization: School of Education, U.C. Berkeley
  9. Lines: 20
  10. Message-ID: <1gobeuINN381@agate.berkeley.edu>
  11. References: <1992Dec16.214331.4233@u.washington.edu>
  12. NNTP-Posting-Host: dewey.soe.berkeley.edu
  13.  
  14. [Note: followups redirected to comp.sys.mac.oop.macapp3.]
  15.  
  16. In article <1992Dec16.214331.4233@u.washington.edu> Bob Cent writes:
  17. >I want to make a window with ViewEdit that can only be enlarged in 
  18. >the vertical direction when one drags the "grow box" (a window like 
  19. >you see when you configure a TView while in ViewEdit).
  20.  
  21. The good news: TWindow has a fResizeLimits field that will do what you
  22. want.  I think you just need to set fResizeLimits.left =
  23. fResizeLimits.right = your fixed size.
  24.  
  25. The bad news: I don't think there's a way to set this with ViewEdit.
  26. You'll have to do it in the code, either by explicitly calling
  27. SetResizeLimits on the window, or by creating a subclass with a method
  28. (maybe DoPostCreate?) that automatically figures out the horizontal
  29. size, then calls SetResizeLimits.
  30.  
  31. -- 
  32. John Werner                        werner@soe.berkeley.edu
  33. UC Berkeley School of Education    510-642-9651
  34.