bitbtn设快捷按钮esc

xiaoxiao2026-03-19  9

procedure TForm1.BitBtn1KeyDown(Sender: TObject; var Key: Word;Shift: TShiftState);beginif key=27 thenapplication.Terminate;end;

设它的cancel属性为true就行了~~

转载请注明原文地址: https://www.6miu.com/read-5046155.html

最新回复(0)