Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ListActForm.pas
Package: delphi.rar [view]
Upload User: fh681027
Upload Date: 2022-07-23
Package Size: 1959k
Code Size: 2k
Category:
Delphi VCL
Development Platform:
Delphi
- unit ListActForm;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, ToolWin, ActnMan, ActnCtrls, StdCtrls, ActnList, ListActns,
- ActnMenus, ExtActns, DateUtils;
- type
- TForm1 = class(TForm)
- ActionManager1: TActionManager;
- StaticListAction1: TStaticListAction;
- ListBox1: TListBox;
- ActionToolBar1: TActionToolBar;
- VirtualListAction1: TVirtualListAction;
- ListControlCopySelection1: TListControlCopySelection;
- ListControlDeleteSelection1: TListControlDeleteSelection;
- ActionToolBar2: TActionToolBar;
- ListControlMoveSelection2: TListControlMoveSelection;
- ListBox2: TListBox;
- procedure VirtualListAction1GetItemCount(Sender: TCustomListAction;
- var Count: Integer);
- procedure VirtualListAction1GetItem(Sender: TCustomListAction;
- const Index: Integer; var Value: String; var ImageIndex: Integer;
- var Data: Pointer);
- procedure ListActionItemSelected(Sender: TCustomListAction;
- Control: TControl);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- Form1: TForm1;
- implementation
- {$R *.dfm}
- procedure TForm1.VirtualListAction1GetItemCount(Sender: TCustomListAction;
- var Count: Integer);
- begin
- Count := 100;
- end;
- procedure TForm1.VirtualListAction1GetItem(Sender: TCustomListAction;
- const Index: Integer; var Value: String; var ImageIndex: Integer;
- var Data: Pointer);
- begin
- Value := 'Item' + IntToStr (Index);
- // add this code to check when the method is called
- { + ' - ' + IntToStr (SecondOf (Now)) + ':' +
- IntToStr (MilliSecondOf (Now));}
- end;
- procedure TForm1.ListActionItemSelected(Sender: TCustomListAction;
- Control: TControl);
- begin
- ListBox1.Items.Add ((Control as TCustomActionCombo).SelText);
- end;
- end.