[comp.sys.mac.programmer] editText >255 chars in a dialog

cash@csmil.umich.edu (Howard Cash) (05/04/89)

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