Jump to content

How to Resize UniMemo without showing scrollbar


Sirawit

Recommended Posts

  • Sirawit changed the title to How to Resize UniMemo without showing scrollbar
On 8/15/2023 at 2:41 PM, Sirawit said:

I want to Resize TUnimemo follow width,heigth text and TUnimemo don't show scrollbar but can stretch.

You can try this approach:

  with UniMemo1, UniMemo1.JSInterface do
  begin
    JSConfig('grow', [True]);
    JSConfig('growMax', [400]);
    JSConfig('growMin', [Height]);
    //JSConfig('preventScrollbars', [True]);
    JSAddListener('afterrender', 'function(){this.setHeight("auto")}');
  end;

 

Link to comment
Share on other sites

9 minutes ago, Sherzod said:

You can try this approach:

  with UniMemo1, UniMemo1.JSInterface do
  begin
    JSConfig('grow', [True]);
    JSConfig('growMax', [400]);
    JSConfig('growMin', [Height]);
    //JSConfig('preventScrollbars', [True]);
    JSAddListener('afterrender', 'function(){this.setHeight("auto")}');
  end;

 

Can't work increase height when wordwrap but work with when press enter.

I want Tunimemo autoheight when wordwrap.

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...