AT LAST! I fixed the keyboard input :-)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user