Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Drag and Drop
I find the ability to drag and drop external files into a picture control a highly valuable feature that can be used in a wide variety of instances, not just for images but as a general catch all for any type of document you might want to link into a database.
It makes it easy to link employee photos, attach scanned documents such as qualifications and licences or any other document such as word docs and pdfs that might be relevant to the other data displayed in the window. :-D
So, now that I can do all these things, I want more. :-P
The scenario that doesn't quite work is where the internet is my source. There are instances where the users want to link images to a record but they don't have copies of the images themselves. This might be stock items, customer logos or some other thing that they wouldn't ordinarily have their own copy of but can easily find on the internet. In this case, it would be nicer to be able to drag the image straight out of the browser into the control.
Yes, I can tell the user to drag from the browser to their desktop and then from their desktop to the control.
Yes, this can still save them time instead of using a combobox and browsing for the image so it is better than the alternative.
It is still a little disjointed however and an extra step that to an end user seems unnecessary. "If I can drag it to my desktop, then why can't I drag it here?"
So, is there any chance that this will become possible in a future release? And whilst you're contemplating this, how about from other sources as well such as dragging an attachment straight from my email? Eg: An employee has emailed me a copy of their renewed drivers licence. I'd like to drag that attachment straight into their file rather than placing it on my desktop or somewhere else and then dragging it in.
I expect its more difficult than it sounds but you guys are clever...
It makes it easy to link employee photos, attach scanned documents such as qualifications and licences or any other document such as word docs and pdfs that might be relevant to the other data displayed in the window. :-D
So, now that I can do all these things, I want more. :-P
The scenario that doesn't quite work is where the internet is my source. There are instances where the users want to link images to a record but they don't have copies of the images themselves. This might be stock items, customer logos or some other thing that they wouldn't ordinarily have their own copy of but can easily find on the internet. In this case, it would be nicer to be able to drag the image straight out of the browser into the control.
Yes, I can tell the user to drag from the browser to their desktop and then from their desktop to the control.
Yes, this can still save them time instead of using a combobox and browsing for the image so it is better than the alternative.
It is still a little disjointed however and an extra step that to an end user seems unnecessary. "If I can drag it to my desktop, then why can't I drag it here?"
So, is there any chance that this will become possible in a future release? And whilst you're contemplating this, how about from other sources as well such as dragging an attachment straight from my email? Eg: An employee has emailed me a copy of their renewed drivers licence. I'd like to drag that attachment straight into their file rather than placing it on my desktop or somewhere else and then dragging it in.
I expect its more difficult than it sounds but you guys are clever...
Comments
How's the picture controls education coming along?
else, do you have a reasonable workaround?
cheers
Any traction?
So far i've got a control on a form, catching the Ole Events, but cant drop on it.
What do i need to set/change?
(FYI: the wiki is a good reference but I find this issue with most of the controls as there is no "example" per-se)
My first guess is that you aren't qualifying the OnFileDrop event. Also, just to confirm, you are only trying to drop an OS file, correct? There is no support - as of yet - for other types of drag-and-drop operations (which was the purpose of this very thread...so I'm guessing you already knew that).
As far as "examples" are concerned, no argument there. I wish I had more examples for myself. :) I can't promise how fast this will occur, but we do intend to augment our documentation this way. We put in a huge effort to convert our content from the old wiki to the new wiki, and then add the discussion forum and product sites. So, we need to catch our breath and keep the ship afloat while we also make sure that new documentation gets added when necessary.
Might i suggest updating the Wiki with the correct ProgID...
https://wiki.srpcs.com/display/PictureControl/SRP+Picture+Control
Have you done this in your create event?
// Always show what the user dropped Set_Property(@Window:".OLE_PICTURE", "OLE.AutoLoadDropFile", 1)
It's not necessary and may not be what you ultimately want but I often use it to test that I've got things right.
What it does is automatically display the image that you've dropped on the control.
It is a bit of a concern though, that you can't display the image using ole.image.
What's the layout property set to and how big is the image?
Yep, that was it. See, this confirms we are overworked and underpaid! We were so tired we let that one slip by. I got this updated. Thanks for pointing that out.
:D
Yeah, no the panel doesn't do drag/drop.
I'll stop my overthinking here.