Topic: Inserting URL & Dragging Images

Hi Guys,
I like to add the following features to my bookmark manager but they are beyond me:
1. Inserting URL from the default browser current window - The URL displayed on browser website URL field.
2. Dragging images into DB images field from a website and any other supporting apps.

Post's attachments

Attachment icon BookmarksMini03.zip 858.45 kb, 83 downloads since 2025-07-22 

Adam
God... please help me become the person my dog thinks I am.

2 (edited by sparrow 2025-07-22 19:37:40)

Re: Inserting URL & Dragging Images

Hi Adam

Let's start with the 2nd question.
MVD does not have a very large support for graphic formats and it is definitely not enough for 100% of supported formats in the browser.
At least one already quite popular format WEBM you will not be able to drag. Many sites prohibit the functions of dragging, saving an image
and opening an image in a new window. What you will encounter in other programs I cannot predict in advance. However, you can see how it is implemented in example (frmItems -> DBImage1).
As for the URL, you can easily drag the link from the address bar to the RichEdit component. To other text components by Ctrl+C Ctrl+V.

Post's attachments

Attachment icon BookmMini03 m.zip 812.71 kb, 89 downloads since 2025-07-22 

Re: Inserting URL & Dragging Images

Hi Sparrow,
Thank you very much....
Unfortunately, it didn't work at my end. I've tried jpg and png true color.
Alternatively, what about copy/paste?

Adam
God... please help me become the person my dog thinks I am.

Re: Inserting URL & Dragging Images

Hi Adam, Sparrow,
If you want to get a 'drag and drop' effect for your URLs, you could try something like the attached - drag the URL you want and drop it on the small box at the left of the URL field on 'frmitems' (it's just a second dedicated RTF that is then automatically copied to frmitems.edit1 before being cleared). 
Not sure it's that much easier than a simple copy and paste directly into frmitems.edit1 though but the effect is perhaps nicer.
Still, it's food for thought.
Derek.

Post's attachments

Attachment icon BookmarksMini03b.zip 1.17 mb, 99 downloads since 2025-07-23 

Re: Inserting URL & Dragging Images

Hi Derek, Adam

Adam, Sorry but I can't help if you write in general.
"Dragging images into DB images field from a website and any other supporting apps.",
"Unfortunately, it didn't work at my end. I've tried jpg and png true color." ...
I tried to give you an extended answer, what is possible and what is not. I can transfer images from my disk to your example and
tried all the formats available in the example + images from websites in Firefox if they are available for transfer.
If you are ready to expand your questions about what images you are copying, from where, what programs you are using,
what exactly does not work, I and other forum members will try to help you.

Re: Inserting URL & Dragging Images

Hi Derek,
Thank you very much....
Good workaround. I prefer dragging as it gets the full URL. With c/p sometimes I coy part of the URL without realizing it, especially long ones.


Hi Sparrow,
I used chrome, opera and xara designer.
From chrome, I tried to drag the jpg image from:
https://en.m.wikipedia.org/wiki/File:Red_Kitten_01.jpg


As you mentioned, there are many restrictions with image dragging. Perhaps c/p is better option instead of dragging, if possible.

Adam
God... please help me become the person my dog thinks I am.

Re: Inserting URL & Dragging Images

AD1408 wrote:

From chrome, I tried to drag the jpg image from:
https://en.m.wikipedia.org/wiki/File:Red_Kitten_01.jpg


Yes, Chrome does not allow this. This problem is written about on the Internet.

Re: Inserting URL & Dragging Images

Hi all,


A new method for copying/pasting an image has been added. The drag-and-drop function has not been removed.
In the browser or in programs that support this feature, select "Copy image" from the Edit menu or the right-click menu.
In the example, when you move the mouse over DBImage1, a "+" button for pasting an image will appear in the lower left corner of this component. This method will also copy the WEBM format. All files will be saved as JPG regardless of the input format. Bugs are possible.

Post's attachments

Attachment icon BookmMini03 m new.zip 1.05 mb, 89 downloads since 2025-07-24 

Re: Inserting URL & Dragging Images

Hi Sparrow,
Thank you very much......
Nice one.
I have duplicated your script for the img02 and it seems to be working OK.

Adam
God... please help me become the person my dog thinks I am.

Re: Inserting URL & Dragging Images

Hi Sparrow,
Image c/p is working fine. However, when added two images sometimes (on first save) the first image is not displayed on form1. On edit of the same record, adding the first image again and save then image 1 is displayed on form1 as intended.
I think, I missed something during duplicating your script for the image 2 and couldn't locate the issue.

Post's attachments

Attachment icon BookmarksMini05.zip 114.37 kb, 77 downloads since 2025-07-29 

Adam
God... please help me become the person my dog thinks I am.

11 (edited by Destiny 2025-07-29 08:25:35)

Re: Inserting URL & Dragging Images

On the SAVE button check the image saving

Post's attachments

Attachment icon Save.jpg 38.77 kb, 35 downloads since 2025-07-29 

Destiny

12 (edited by sparrow 2025-07-29 09:46:59)

Re: Inserting URL & Dragging Images

Hi Adam, Destiny

Post's attachments

Attachment icon BookmarksMini05 fix.zip 104.86 kb, 85 downloads since 2025-07-29 

Re: Inserting URL & Dragging Images

Optimized.

Post's attachments

Attachment icon BookmarksMini05 fix opt.zip 105.33 kb, 95 downloads since 2025-07-29 

Re: Inserting URL & Dragging Images

Thank you very much Sparrow............
Now it works fine.

Adam
God... please help me become the person my dog thinks I am.

Re: Inserting URL & Dragging Images

Buttons added to ToolBar of DBImage components. Active/inactive button depending on the content of the image clipboard. Fixed minor bugs.

Post's attachments

Attachment icon BookmarksMini05 mod.zip 107.26 kb, 88 downloads since 2025-07-31 

Re: Inserting URL & Dragging Images

sparrow wrote:

Buttons added to ToolBar of DBImage components. Active/inactive button depending on the content of the image clipboard. Fixed minor bugs.


Hi Sparrow,
Great stuff......
Thank you very much..........
It solved the issue visible to me - disappearing of paste image button.

Adam
God... please help me become the person my dog thinks I am.