newsanti Posted March 14 Share Posted March 14 How to get Image URL From TunimImage? 1.Save image in TunimImage; 2.Get Image URL inside TunimImage 3.Change Panel Background with Image URL Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 14 Share Posted March 14 8 minutes ago, newsanti said: How to get Image URL From TunimImage? 1.Save image in TunimImage; 2.Get Image URL inside TunimImage 3.Change Panel Background with Image URL Hello, Sorry, I didn't really understand your questions. Quote Link to comment Share on other sites More sharing options...
newsanti Posted March 14 Author Share Posted March 14 5 minutes ago, Sherzod said: Hello, Sorry, I didn't really understand your questions. TunimImage.Picture >> What is URL Image in Picture Property? Bring URL to set Background Image of TunimPanel. don't need external file. Quote Link to comment Share on other sites More sharing options...
newsanti Posted March 14 Author Share Posted March 14 13 minutes ago, Sherzod said: Hello, Sorry, I didn't really understand your questions. Tunipicture.ImageURL TunimImage.Picture is TPicture, Thus no ImageURL Property. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 14 Share Posted March 14 As I understand, you want to get the url from the UnimImage and assign this link as the background-image of the UnimPanel? If yes, when and where? Quote Link to comment Share on other sites More sharing options...
newsanti Posted March 14 Author Share Posted March 14 14 minutes ago, Sherzod said: As I understand, you want to get the url from the UnimImage and assign this link as the background-image of the UnimPanel? If yes, when and where? Yes… I want to create panel as button with image background and Label on top And TunimImage.Visible= False for client side Menu application. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 14 Share Posted March 14 1 hour ago, newsanti said: I want to create panel as button with image background and Label on top And TunimImage.Visible= False for client side Menu application. Okay. Where in the code? Quote Link to comment Share on other sites More sharing options...
newsanti Posted March 14 Author Share Posted March 14 Mobile Background.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 14 Share Posted March 14 I will try to check later, thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15 Share Posted March 15 15 hours ago, newsanti said: Mobile Background.zip 3.08 MB · 0 downloads I modified the code. Move the code to the OnReady event, that's why I asked where you use the code... One possible solution: procedure TMainmForm.UnimFormReady(Sender: TObject); begin with UnimContainerPanel1 do begin JSInterface.JSCall('bodyElement.setStyle', ['background', 'url('+UnimImage1.CurrImgUrl+')']); end; end; 1 Quote Link to comment Share on other sites More sharing options...
newsanti Posted March 15 Author Share Posted March 15 4 hours ago, Sherzod said: I modified the code. Move the code to the OnReady event, that's why I asked where you use the code... One possible solution: procedure TMainmForm.UnimFormReady(Sender: TObject); begin with UnimContainerPanel1 do begin JSInterface.JSCall('bodyElement.setStyle', ['background', 'url('+UnimImage1.CurrImgUrl+')']); end; end; Great. Thanks. 1 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.