请问怎么使Enter键和向前的键失效???急急 请问怎么使Enter键和向前的键失效???急急 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你想在什么地方实现这两个键失效,是在TEDIT中吗? // http://expert.csdn.net/Expert/topic/1779/1779021.xml?temp=.5134699 // 和 这贴的unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls ;type TForm1 = class(TForm) RichEdit1: TRichEdit; procedure FormCreate(Sender: TObject); private { Private declarations } procedure ApplicationMessage(var Msg: TMsg; var Handled: Boolean); public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);var TS: TStrings; i: Integer;begin RichEdit1.Clear; Ts := TStringList.Create; Ts.LoadFromFile(ExtractFilePath(Application.ExeName) + 'Test.txt'); for i := 0 to Ts.Count - 1 do RichEdit1.Lines.Add(Ts.Strings[i]); Application.OnMessage := ApplicationMessage ;end;procedure TForm1.ApplicationMessage(var Msg: TMsg; var Handled: Boolean);begin if ((Msg.message = wm_KeyDown) and (Msg.wParam = VK_Return)) or ((Msg.message = wm_KeyDown) and (Msg.wParam = VK_Up)) then begin Handled := True ; end;end;end. 急了.高分求教treeviewer和数据库的连接 为何老提示‘连接未打开’? 有关数据库组件的问题,高分求教 谁能为迷途的羔羊指点一下迷经? 怎么样用delphi建立精确计数器 这个怎么实现? 数据类型转换——整型转换为浮点型我应该如何操作? 关于USB设备问题 IE 6的工具栏图标在哪个资源文件里面?或者谁能直接给我一份? 紧急,我找了一天了,那里可以找到定植的ListBox,可以像DataGrid那样用,给我各详细例子好吗?我急着用.只是不要连结数据库. 救命阿!!!! 如何改变LISTVIEW头部(header)的颜色!
// 和 这贴的unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls ;type
TForm1 = class(TForm)
RichEdit1: TRichEdit;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
procedure ApplicationMessage(var Msg: TMsg; var Handled: Boolean); public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
var
TS: TStrings;
i: Integer;
begin
RichEdit1.Clear;
Ts := TStringList.Create;
Ts.LoadFromFile(ExtractFilePath(Application.ExeName) + 'Test.txt');
for i := 0 to Ts.Count - 1 do
RichEdit1.Lines.Add(Ts.Strings[i]);
Application.OnMessage := ApplicationMessage ;
end;procedure TForm1.ApplicationMessage(var Msg: TMsg; var Handled: Boolean);
begin
if ((Msg.message = wm_KeyDown) and (Msg.wParam = VK_Return)) or ((Msg.message
=
wm_KeyDown) and (Msg.wParam = VK_Up)) then
begin
Handled := True ;
end;
end;end.