Scrollbars aren't automatic. All the HASSCROLLBAR attribute of a field does
is cause the field to generate fldUpdateEvents more often than it otherwise
would (at all times when an associated scrollbar would need to be updated).
See pages 122-124 of Palm Programming: the Developer's Guide for code to
handle a scrollbar connected to a field.
Neil
--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA 92374
(909) 793-5995 [EMAIL PROTECTED] fax: (909) 793-2545
> Thanks for the help. I used FldRecalculateField() and text displayed
> properly, but the scrollbar doesn't show up. Here's my new code:
>
> #define About_text
> "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n"
>
> Char *test = About_text;
>
> form = FrmGetActiveForm();
> FrmDrawForm(form);
> fieldindex = FrmGetObjectPtr(form,FrmGetObjectIndex(form,AboutField));
> FldSetTextPtr(fieldindex,test);
> FldRecalculateField(fieldindex,true);
> FldDrawField (fieldindex);
>
>
> This is what I have in my .rcp file:
>
> FIELD ID AboutField AT ( 5 5 140 60) USABLE LEFTALIGN NONEDITABLE
> MULTIPLELINES HASSCROLLBAR
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/