相应按钮的OnKeyPress事件,在里面滤掉回车键
解决方案 »
- 工作,纠结
- 如何擦除IMAGE上面绘制的图案?
- 紧急求救,关于DBGridEh的STFilter过滤问题。救命啊!
- *****请问delphi有没有这个颜色选择控件的问题*****
- 运行Indy10提供的Demo Base例子,什么都没改动,为什么客户端一连接CPU就100%,Chat2.0也一样
- WideString类型不可以超过256个字符吗?
- 有4张表,分别在一张纸上打印,4张同时打印才是完整的一份报表,请问如何设置
- 简单问题:在一个很多人做的合在一起的工程中,如何添加重名的窗体?可以使用别名吗?
- VC中int function aa(int prim_len,Char* buffer,int wait_seconds,int trace);在Delphi中怎么声明?
- 定时器的时间不准?
- 各位DELPHI高手们,我想知道DELPHI开发数据库有没有优势。
- 关于delphi最好的工具与最好的书.
if key=#13 then abort;
FMouseDown: Boolean;
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.BitBtn1Click(Sender: TObject);
begin
if not FMouseDown then Exit;
ShowMessage('这只是一种解决方案,但很有效');
end;procedure TForm1.BitBtn1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
FMouseDown := True;
end;procedure TForm1.BitBtn1MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
FMouseDown := False;
end;
//....
怎样屏蔽掉但要Edit的KeyDown响应