OdontonetEs Posted February 1 Share Posted February 1 Good morning. I need to display an image or logo in a TUniLabel control. What would be the correct way to specify the "src" attribute. With the example I attached indicating the path where the image file is physically located, it is not working for me. Thank you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 1 Share Posted February 1 Hello, Please analyze other elements that correctly display the image... Quote Link to comment Share on other sites More sharing options...
OdontonetEs Posted February 1 Author Share Posted February 1 Sorry, I didn't understand you. do you mean using other controls instead of a TUniLabel? Quote Link to comment Share on other sites More sharing options...
PS1 Posted February 1 Share Posted February 1 On Windows works for me this: <img src="/files/img.svg" style="height: 16px;width: 16px;"> Remember to set TextConversion = txtHTML in properties of unilabel 1 Quote Link to comment Share on other sites More sharing options...
OdontonetEs Posted February 1 Author Share Posted February 1 Of course it works fine on Windows, but I need it on Linux. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 2 Share Posted February 2 Check file and folders name as linux is case sensitive. 1 Quote Link to comment Share on other sites More sharing options...
OdontonetEs Posted February 5 Author Share Posted February 5 Thanks, but if anyone can help, I'll leave the solution here. For now it is working for me if the site is concatenated before the route. example: <img src="http://mywebsite.com/files/img.svg" style="height: 16px;width: 16px;"> 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.