How can i d开发者_JAVA百科raw a picture on a TPanel
? I also want to determine X,Y to define exact position on the Panel.
Here is a simple code
var
eu:TImage;
begin
eu:=TImage.Create(Panel1);
eu.Parent:=Panel1;
eu.Top:=30; // You can adjust the position by using these coordinates
eu.Left:=50;
eu.Picture.LoadFromFile('D:\usb.ico'); // Load any supported image
eu.Visible:=True;
end;
精彩评论