ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 common file dialog problem with devices

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
jrpcguru Posted - Sep 22 2022 : 10:01:44
I've been working with your Portable Device Browser Demo to try to figure out how to implement more features for devices. In particular, I would like to be able to copy to and from a device. Copying from a device to my HD does work. The problem arises with copy from the HD to the device since I need a common file dialog to select the target folder.

The demo uses TOpenDialog for the Copy To Device button. TOpenDialog returns an empty string for the target folder, so the demo can't copy the file.

I tried TSaveImageEnDialog1. It does not show device folders.
I tried OpenImageEnDialog1. If I point it to something like: WPD:moto x4\MICROSD32\Download\temp for testing\, it returns a totally bogus folder like: C:\Users\username\AppData\Local\Microsoft\Windows\INetCache\IE\S6O7319V\
I tried TIEOpenFolderDialog. It does not show device folders.

For the time being, I'm using TOpenDialog and testing for a blank target folder. Once TIEfoldertree fully supports devices, I guess I can build my own common file dialog. Meanwhile, copying files to a device isn't available.

I tried copying a file to the device like this: IEFolderMView.CopySelectedFilesToFolder('WPD:moto x4\MICROSD32\Download\temp for testing\');

This still shows the bug from some time ago that combines the program folder with the target folder into a bogus target folder which fails. That was a surprise that makes the question of common file dialogs moot, until it is fixed.


J.R.
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 22 2022 : 19:44:15
Hi JR

I have added support to TImageEnFolderMView to copy to and from removable devices. The WPD: prefix will not work with any non-ImageEn components or components that descend from VCL dialogs (e.g. TOpenImageEnDialog).

I'd prefer not to spend too much time on expanding functionality in this area as our focus is on imaging components rather than shell components.

Nigel
Xequte Software
www.imageen.com