Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!sharkey!csmil.umich.edu From: cash@csmil.umich.edu (Howard Cash) Newsgroups: comp.sys.mac.programmer Subject: editText >255 chars in a dialog Summary: How do I edit lots of text in dialog windows? Message-ID: <11@sharkey.cc.umich.edu> Date: 4 May 89 04:32:59 GMT Sender: usenet@sharkey.cc.umich.edu Reply-To: cash@csmil.umich.edu (Howard Cash) Organization: Cognitive Science and Machine Intelligence Laboratory Lines: 34 How do I include in a dialogbox, an editable text field that handles more than 255 characters (say, a field that can scroll through several PAGES of text)? If I treat it as a useritem, how do I handle TABS so that the cursor flows from item 1 to 2 to 3 in the outline below? ----------------------------------------------------------- | TROUBLESOME DIALOG | |-----------------------------------------------------------| | ------------------------------------ | | |(1) Normal EditableText Item (<255) | 0 RadioBtn1 | | ------------------------------------ | | 0 RadioBtn2 | | ------------------------------------ | | |(2) Normal EditableText Item (<255) | 0 RadioBtn3 | | ------------------------------------ | | 0 RadioBtn4 | | ---------------------------------------------------- | | | | ^ | | | |(3) Big, hulking and possibly scrollable block | | | | | of editable text (>>255 chars) | | | | | | | | | | | v | | | ---------------------------------------------------- | ----------------------------------------------------------- According to IM vol1, p422, GetIText and SetIText can handle only strings up to 255 characters. I'm sure this problem has already been solved many times. Please mail me any suggestions. Thanks, Howard Cash cash@csmil.umich.edu