AT LAST! I fixed the keyboard input :-)

This commit is contained in:
zueuk
2005-09-18 13:26:14 +00:00
parent 849426664f
commit 510c4c87a9
2 changed files with 18 additions and 16 deletions

View File

@ -13,6 +13,7 @@ type
procedure WMEraseBkgnd(var Message: TWMEraseBkgnd); message WM_ERASEBKGND;
// procedure WMSetFocus(var Message: TWMSetFocus); message WM_SETFOCUS;
// procedure WMKillFocus(var Message: TWMKillFocus); message WM_KILLFOCUS;
procedure WMGetDlgCode(var Message: TMessage); message WM_GETDLGCODE;
protected
public
@ -54,6 +55,12 @@ begin
end;
}
procedure TCustomDrawControl.WMGetDlgCode(var Message: TMessage);
begin
inherited;
Message.Result := Message.Result or DLGC_WANTARROWS;
end;
procedure TCustomDrawControl.Paint;
begin
if Assigned(FOnPaint) then FOnPaint(Self);