Need something similar to a resource manager, first try Tdrivecombobox, Tdirectorylistbox, Tfilelistbox, hey! Things in the Win31 era are not generally ugly. Try the next Vcl.Shell.ShellCtrls under the Tshellcombobox, Tshelltreeview, Tshelllistview, very satisfied! And Tshellcombobox can also be removed.
Unit Unit1; Interfaceuses winapi.windows, Winapi.messages, System.sysutils, System.variants, system.classes, Vcl.Graphics, Vcl.C
Ontrols, Vcl.forms, Vcl.dialogs, Vcl.filectrl, Vcl.stdctrls, Vcl.comctrls;
Type TFORM1 = Class (Tform) procedure formcreate (sender:tobject); Private procedure Treeviewonchange (sender:tobject;
Node:ttreenode);
public end;
var Form1:tform1;
implementation{$R *.dfm}uses Vcl.Shell.ShellCtrls;
var C:tshellcombobox;
T:tshelltreeview;
L:tshelllistview;
Procedure Tform1.formcreate (Sender:tobject);
Begin C: = Tshellcombobox.create (Self);
T: = Tshelltreeview.create (Self);
L: = Tshelllistview.create (Self);
C.parent: = Self;
T.parent: = Self;
L.parent: = Self;
T.width: = Screen.width div4;
C.align: = Altop;
T.align: = Alleft;
L.align: = alclient;
T.shellcombobox: = C;
L.shelltreeview: = T;
L.viewstyle: = vslist;
T.onchange: = Treeviewonchange;
End Procedure Tform1.treeviewonchange(Sender:tobject;
Node:ttreenode);
Begin Caption: = T.selectedfolder.pathname;
End
End.