Jump to content

Setting image url issue


mhmda

Recommended Posts

Hello,

 

When I set the url for the uniimage:

 img:=TUniImage.Create(self);
 img.Parent:=pnl;
 img.LayoutConfig.Margin:='0 4 0 4';
 img.Url:='files/images/Desktop/docket/plus.png';
 img.Width:=9;
 img.Height:=9;

The Image dosn't displayed because the framework adds width=0 and height=0 why????

<img src="files/images/Desktop/docket/plus.png" width="0" height="0"> 

url.png

 

Why doesn't it set the url only without the width/height??

Link to comment
Share on other sites

  • 4 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...