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