home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15285 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.3 KB  |  35 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!psinntp!intercon!news
  3. From: amanda@intercon.com (Amanda Walker)
  4. Subject: Re: EditText items larger than 255 bytes?
  5. Sender: usenet@intercon.com (USENET The Magnificent)
  6. Message-ID: <2AAE73AE.49F@intercon.com>
  7. Date: Wed, 9 Sep 92 21:59:09 GMT
  8. Reply-To: amanda@intercon.com (Amanda Walker)
  9. References: <BuAyG1.8n7@iat.holonet.net>
  10. Nntp-Posting-Host: chaos
  11. Organization: InterCon Systems Corporation, Herndon, VA
  12. Lines: 21
  13.  
  14. timper@iat.holonet.net (Tim Perkis) writes:
  15. > Is there a reasonable way to access an editText item in a Modal
  16. > dialog having more than 255 Characters? I know that a Dialog
  17. > Record has a normal TErecord to hold the text: the bottleneck limiting
  18. > edit text dialog items to 255 seems to be the GetDItem arguments,
  19. > which are Str255. 
  20.  
  21. Close.  TextEdit is limited to 32K, which puts a hard limit on the size of an 
  22. editable text item.  The key to getting more than 255 characters, however, is 
  23. simply to avoid using GetIText & SetIText, but to use GetDItem and SetDItem 
  24. directly, copying things into and out of thew handle yourself.
  25.  
  26.  
  27. Amanda Walker <amanda@intercon.com>
  28. -- 
  29. "I wouldn't be surprised if the architecture of Intel's microprocessors
  30.  were eventually linked to the eventual fall of mankind."
  31.                 --Steve Gibson
  32.  
  33.  
  34.  
  35.