--- Richard Bell <[EMAIL PROTECTED]> wrote:
> I have a form that I use to scroll through a dynamically 
> changing set of fields.  The problem I run into seems to be 
> that if I have a field that was set to singleline = 1 then 
> set to singleline = 0 then back that I recieve an error "No 
> word wrapping info", Does anyone have any ideas what I
> might be doing wrong or is this just a quirk?

This is just an idea - I don't know for certain.

It seems that if singleline = 0 when the field is created, then it is a
multi-line field and it has to have word wrapping info.  If, OTOH,
singleline = 1 when the field is created, no word wrapping info is
created or stored.

If you look at the description of FieldType in the docs, you'll notice
that one of its fields is "lines", described thus (not the last line):

  "Pointer to an array of LineInfoType structures.
  There is one entry in this array for each visible
  line of the text. (See LineInfoType.) The field
  code maintains this array internally; you should
  never change the lines array yourself.

  Note that this value is NULL for single line fields,
  and for fields that do not have an allocated text
  handle."

If you look up LineInfoType, you'll see that it contains the
information used to do word wrapping.


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to