Number of lines in MemoView

Hi,

is there any possibility to get the number of lines of a memoview (with WordWrap = True) in an event?

Thanks in advance,
M.Hanisch

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:48AM
    yes in the memoview's onafterdataevent.

    sample to strip blanklines.
    begin
    for i := TfrxMemoView(Sender).Lines.Count - 1 downto 0 do
    begin
    if TfrxMemoView(Sender).Lines.Strings = '' then
    TfrxMemoView(Sender).Memo.Delete(i);
    end;
    end;

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.