Delphi's Resource Manager Suite

Source: Internet
Author: User
Tags resource

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.