Volk65 Posted February 21, 2019 Share Posted February 21, 2019 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? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 21, 2019 Share Posted February 21, 2019 Hi, Sorry, for what purpose do you want to know and use this? Quote Link to comment Share on other sites More sharing options...
Volk65 Posted February 21, 2019 Author Share Posted February 21, 2019 Auto increase height of the panel which has UniMemo. Up to a certain limit of course. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 21, 2019 Share Posted February 21, 2019 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; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 21, 2019 Share Posted February 21, 2019 And use UniMemo1 -> OnResize event... procedure TMainForm.UniMemo1Resize(Sender: TUniControl; OldWidth, OldHeight: Integer); begin ShowMessage(IntToStr(UniMemo1.Height)); end; Quote Link to comment Share on other sites More sharing options...
Volk65 Posted February 21, 2019 Author Share Posted February 21, 2019 Thanks Sherzod! I will try Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.