Jump to content

How to create unihtmlmemo on runtime ?


FFREDIANELLI

Recommended Posts

Please some help, :blink2: , when i create the  unihtmlmemo on runtime , the height take no effect it have allways only one line and  it sas that ssboth is undefined...

    mm := TUniHTMLMemo.Create(MainForm);
    with mm do
    begin
      Name := 'mm_' + inttostr(UniMainModule.UserInfo.pulsetag) + '_' + 'Seq' +
        UniMainModule.qMensagensseq.AsString;
      Parent := m1;
      Left := 21;
      top := 0;
      align := altop;
      Width := 600;
      Height := 200;
      showtoolbar := false;
      hint := '';
      ScrollBars := ssboth;
      lines.Clear;
      ParentFont := false;
      Color := 14998230;
      TabOrder := 0;
      tag := UniMainModule.qMensagensseq.value;
      lines.assign(UniMainModule.qMensagensobs);
      readonly := false;
    end;
 

image.thumb.png.011d5e3166568c7767ed76e72aec8437.png

Link to comment
Share on other sites

17 hours ago, FFREDIANELLI said:

Please some help, :blink2: , when i create the  unihtmlmemo on runtime , the height take no effect it have allways only one line and  it sas that ssboth is undefined...

Hi,

Can you make a simple testcase for this?

Link to comment
Share on other sites

Thanks for the help,  

1. My mistake , i'm creating  unihtmlmemo inside a collapsible panel that obviously will not grow up to accomodate the new component inside, i have to adjust the size of the panel programmaticaly too with the size of the unihtmlmemo...sorry.

2. I will let unihtmlmemo with a fixed size, and let scroll bars to the job if the content is to big, this is my problem now ,if  i put the command to show bars it not compile

image.thumb.png.9047fc44ab98765b08033248c52e0269.png

 

Link to comment
Share on other sites

9 minutes ago, FFREDIANELLI said:

2. I will let unihtmlmemo with a fixed size, and let scroll bars to the job if the content is to big, this is my problem now ,if  i put the command to show bars it not compile

Add to Uses list:

uses ..., StdCtrls;

 

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