Jump to content

UniMemo - number of rows


Volk65

Recommended Posts

Hi!

How in UniMemo to know the number of rows (not Lines.Count) with account transfers.
For example: there is one line in the memo, but because of the wordwrap property it was split into several lines. How do I know the number of these lines?

Link to comment
Share on other sites

5 hours ago, Volk65 said:

Auto increase height of the panel which has UniMemo. Up to a certain limit of course.

You can try this approach too I think:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  with UniMemo1, UniMemo1.JSInterface do
  begin
    JSConfig('grow', [True]);
    JSConfig('growMin', [Height]);
    JSConfig('growMax', [Height + 200]);
    JSAssign('height', [NULL]);
  end;
end;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...