I have found that the built in mail app gets round this one by fiddling with
the dynamic attribute of the field during a penDown event. Could someone at
PalmSource please tell me the current opinion on accessing the field
attributes?

   // Restore the dynamiclly resizeable attribute that
   // was cleared in NewViewGetField to allow drag selection.
   FldGetAttributes (fld, &attr);
   attr.dynamicSize = true;
   FldSetAttributes (fld, &attr);

I need to know whether I should continue hacking the non-dynamic field to do
what I want (basically checking each keystroke and calculating the new field
size), or use the dynamic field and use the above workaround that may break
in the future...

Thanks

Matt

----- Original Message -----
From: "Matt Hebley" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Sunday, May 05, 2002 5:03 PM
Subject: Alternative to FldSetMaxVisibleLines for pre-4.0


> I have come across the feature whereby a dynamic field will not allow the
> user to select text when there is more text than the field can show and
the
> last line is not visible. This is apparently fixed by the
> FldSetMaxVisibleLines call.
>
> The feature is exhibited on the 3.5 en color ROM, however, in OS 3.5 the
> definition of the field object does not support max lines.
>
> Has anyone come across this one? Is there a work-around for 3.5? The field
> has undesirable effects if I make it non-dynamic (I don't get the
> fldHeightChangedEvents that I need), but maybe if I keep trying I can get
> around those instead...
>
> Thanks
>
> Matt
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
>


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

Reply via email to