At 11:54 AM -0700 5/27/99, Qun Wang wrote:
>Hello, Everybody:
>how can I make a field dynamicly change it height as the characters are
>entered into the field and make all text visible without the scrollbar?
>I had set the dynamicSize attribute of the field to true , and use
>FldMakeFullyVisible function, but still only one line of text can be
>displayed.
FldMakeFullyVisible just creates/enqueues a fldHeightChanged event (if
necessary.)
It's up to the container object (usually a table) to resize the field so
that it's desired height is realized.
If your field isn't in a table, then you probably have to handle the
fldHeightChanged event yourself. I think you can use FrmSetObjectBounds
for the actual resize operation.
Or just create a 1 row, 1 column table that contains your field, then the
table code will do the resizing for you. :)
--Bob