Jump to content


Photo

create UniMemo at runtime

memo unimemo

  • Please log in to reply
1 reply to this topic

#1 dunham

dunham

    Member

  • uniGUI Subscriber
  • PipPip
  • 29 posts

Posted 11 December 2015 - 09:39 AM

Hello,

 

 

i 'm creating a memo at runtime but it doesn't appear on the form,

can you explain please what's wrong with this code ?

var MyMemo:TuniMemo;
begin
                       MyMemo:= TUniMemo.Create(Self);
                       MyMemo.Name:='MyMemo';
                       MyMemo.Left:=10;
                       MyMemo.Top:=10;
                       MyMemo.Width:=164;
                       MyMemo.Height:=89;
                       MyMemo.Hint:='';
                       MyMemo.Visible:=true;
                       MyMemo.BringToFront;
end;

Attached Files


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3906 posts

Posted 11 December 2015 - 09:51 AM

Hi,

 

You must also specify the parent

MyMemo.Parent := Self;

Best regards.


  • 0





Also tagged with one or more of these keywords: memo, unimemo

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users