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
CMNForm.pas
Package: delphi.rar [view]
Upload User: fh681027
Upload Date: 2022-07-23
Package Size: 1959k
Code Size: 1k
Category:
Delphi VCL
Development Platform:
Delphi
- unit CMNForm;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls, ExtCtrls;
- type
- TForm1 = class(TForm)
- Edit1: TEdit;
- Edit2: TEdit;
- Edit3: TEdit;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- Label4: TLabel;
- Label5: TLabel;
- Bevel1: TBevel;
- private
- { Private declarations }
- public
- procedure CMDialogKey(var Msg: TCMDialogKey); message cm_DialogKey;
- procedure CMDialogChar(var Msg: TCMDialogChar); message cm_DialogChar;
- procedure CmFocusChanged (var Msg: TCmFocusChanged); message cm_FocusChanged;
- end;
- var
- Form1: TForm1;
- implementation
- {$R *.DFM}
- { TForm1 }
- procedure TForm1.CMDialogChar(var Msg: TCMDialogChar);
- begin
- Label1.Caption := Label1.Caption + Char (Msg.CharCode);
- inherited;
- end;
- procedure TForm1.CMDialogKey(var Msg: TCMDialogKey);
- begin
- if (Msg.CharCode = VK_RETURN) then
- begin
- Perform (CM_DialogKey, VK_TAB, 0);
- Msg.Result := 1;
- end
- else
- inherited;
- end;
- procedure TForm1.CmFocusChanged(var Msg: TCmFocusChanged);
- begin
- Label5.Caption := 'Focus on ' + Msg.Sender.Name;
- end;
- end.