Jump to content

Recommended Posts

Posted

I am trying to create a TuniImage at runtime, but I could not.

I've seen the demo "Dynamic" and I can create other components at runtime, but not a Tunimage

 

 

this is ok.

 with TUniEdit(InsertControl(TUniEdit.Create(Self))) do
  begin
    Left:=10;
    Top:=40;
    Text:='Text';
  end;

 

but this no
 with TuniImage(InsertControl(TuniImage.Create(Self))) do
  begin
    Left:=10;
    Top:=40;
    Picture.LoadFromFile('Hydrangeas.jpg');
  end;

(The picture is in the same directory).

 

 

  • Administrators
Posted
 with TUniEdit(InsertControl(TUniEdit.Create(Self))) do
  begin
    Left:=10;
    Top:=40;
    Text:='Text';
  end;

 

but this no
 with TuniImage(InsertControl(TuniImage.Create(Self))) do
  begin
    Left:=10;
    Top:=40;
    Picture.LoadFromFile('Hydrangeas.jpg');
  end;

 

 

 

Width and Height are missing.

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