📄 让edit只接收数字.txt
字号:
procedure TfOilAppend.Edit3KeyPress(Sender: TObject; var Key: Char);
begin
if Key <> #8 then begin
if ((Key < '0') or (Key > '9')) and (Key <> '.') then
Key := chr(0);
if (Key = '.') and (AnsiContainsText(Edit3.Text ,'.')) then
Key := chr(0);
end;
end;
procedure TfOilAppend.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if Key <> #8 then
if (Key < '0') or (Key > '9') then
Key := chr(0);
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -