mayusod Posted March 12, 2015 Share Posted March 12, 2015 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). Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 12, 2015 Administrators Share Posted March 12, 2015 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. Quote Link to comment Share on other sites More sharing options...
mayusod Posted March 12, 2015 Author Share Posted March 12, 2015 OK, Thanks 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.