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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Explorer demo
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jenswahl

Germany
71 Posts

Posted - Mar 28 2022 :  07:39:29  Show Profile  Reply
Hello,

I have a question to the Explorer demo (10.3.5): If I add ievtVirtualFolders to the ViewTypes of the IEFolderTree1 than my smartphone is displayed. So far it's OK. If I open some folders of the smartphone than only the name of the selected folder is displayed in the edtFolder-Object. And so no file is displayed in the FolderMView (see attached image 1).
The problem is the missing complete path which is founded in IEFolderTree1FolderChange.
What have I to change to get the full path at connected devices?
If I set ReadOnly := False at edtFolder and fill in the complete path I get the images (see attached image 2)

Kind Regards,

Jens






www.inntalsoftware.de/en/

xequte

38608 Posts

Posted - Mar 29 2022 :  01:15:38  Show Profile  Reply
Hi

We have added device support to TIEFolderTree in the current beta. You can email us to test it.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

jenswahl

Germany
71 Posts

Posted - Mar 29 2022 :  04:56:24  Show Profile  Reply
Thank you, Nigel. I found a solution for me and so I can wait for the official release.

My solution is the following (in Explorer demo):

procedure TForm1.IEFolderTree1FolderChange(Sender: TObject; const Path: string; Node: TIEFolderNode);
var
  folderName: string;

  ndTmp: TTreeNode;
  sTmp: String;
  bGoOn: Boolean;
  iTmp: Integer;

begin
    folderName := IEFolderTree1.Folder;
    if folderName = '' then begin
//original:    folderName := IEFolderTree1.SelectedFolder.Name;
        sTmp := IEFolderTree1.SelectedFolder.Name;
        ndTmp := IEFolderTree1.Selected;
        bGoOn := True;
        iTmp := 0;
        while bGoOn do begin
            ndTmp := ndTmp.Parent;
            if (ndTmp <> nil) and (ndTmp.AbsoluteIndex > 0) then begin
                sTmp := ndTmp.Text + '\' + sTmp;
                Inc(iTmp);
            end
            else begin
                bGoOn := False;
                if (iTmp > 0) then begin
                    sTmp := 'WPD:' + sTmp;
//                    IEFolderTree1.Deselect(IEFolderTree1.Selected);
                    //Folder will be empty after this line:
//                    IEFolderTree1.Folder := sTmp;
//                    IEFolderTree1.Update;
                    //so use a little trick: set the MView-Folder directly:
                    IEFolderMView.Folder := sTmp;
                    folderName := sTmp;
                end
                else begin
                    folderName := IEFolderTree1.SelectedFolder.Name;
                end;
            end;
        end;
    end;
    edtFolder.Text := folderName;
end;


Kind regards,

Jens

www.inntalsoftware.de/en/
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: