Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread EWB 3 build 7 - multiline edit and page down
Tue, Mar 17 2020 7:23 PMPermanent Link

Raul

Team Elevate Team Elevate

Tim,

I have some MultiLineEdit observations

I use this to populate it

   MultiLineEdit1.Lines.Clear;
   for i := 0 to 200 do
   begin
      MultiLineEdit1.Lines.Add( inttostr(i));
   end;
   MultiLineEdit1.Lines.Add( ' Line count = ' +
inttostr(MultiLineEdit1.Lines.Count));


Observations
1. The "line count is printed as "201" - good!

2. There appear to be whole bunch of empty lines after now - if i
copy/paste it out to editor there are 282 lines with 203-282 being blank

3. If you Page Down it always jumps all the way to the end (and due to
those blank lines everything appears empty on first look)


Raul
Thu, Mar 19 2020 2:38 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Raul,

<< 2. There appear to be whole bunch of empty lines after now - if i copy/paste it out to editor there are 282 lines with 203-282 being blank >>

This is fixed in build 8.  It was a side-effect of me adding capacity sizing to the TStringList class in order to cut down on allocations.

<< 3. If you Page Down it always jumps all the way to the end (and due to those blank lines everything appears empty on first look) >>

This, unfortunately, how the textarea control works in the browsers.  It's weird, no doubt, but overriding the behavior in the control is a little dicey because line-height sizing is an inexact science in a textarea control.

Tim Young
Elevate Software
www.elevatesoft.com
Image