B bbgsgs Unregistered / Unconfirmed GUEST, unregistred user! 2006-01-12 #2 procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if (ssCtrl in Shift) and (key=88) then key:=0; end;
procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if (ssCtrl in Shift) and (key=88) then key:=0; end;
N nicai_wgl Unregistered / Unconfirmed GUEST, unregistred user! 2006-01-12 #4 继承 TEdit, 做一个新控件, TMyEdit = Class(TEdit) procedure WMPaste(var msg: TWMPaste); message WM_PASTE; end; procedure TMyEdit.WMPPaste(var msg: TWMPaste); begin Inherited; //your code here; end;
继承 TEdit, 做一个新控件, TMyEdit = Class(TEdit) procedure WMPaste(var msg: TWMPaste); message WM_PASTE; end; procedure TMyEdit.WMPPaste(var msg: TWMPaste); begin Inherited; //your code here; end;