--- celeste <[EMAIL PROTECTED]> wrote: > but there is a real problem with uneditable > field because i don't manage to write on > multiple line in a field when i use this > code: > > Char *setText = "toto"; > myfld = (FieldType *)FrmGetObjectPtr(form, > FrmGetObjectIndex(form, fld1)); > FldSetTextPtr(myfld, setText); > FldDrawField(myfld); >
If changing a field's text changes the number of lines, you have to call FldRecalculateField to let the field determine where to break the lines. So, instead of calling FldDrawField, do this: FldRecalculateField(myfld, true); __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
