Jump to content

How to get Image URL From TunimImage?


newsanti

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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;

 

  • Thanks 1
Link to comment
Share on other sites

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.

image.png.8bf3063906fdc18c730ec8d82ca3a7d6.png

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...