mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 13:17:03 +02:00
LCL: Remove function IntfSendsUTF8KeyPress. Was deprecated in 2011.
git-svn-id: trunk@64467 -
This commit is contained in:
parent
95b5489cff
commit
d4256b2fe5
@ -465,11 +465,6 @@ begin
|
|||||||
Result:=false;
|
Result:=false;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TWidgetSet.IntfSendsUTF8KeyPress: Boolean;
|
|
||||||
begin
|
|
||||||
Result := GetLCLCapability(lcSendsUTF8KeyPress) = LCL_CAPABILITY_YES;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TWidgetSet.InvalidateFrame(aHandle: HWND; ARect: pRect;
|
function TWidgetSet.InvalidateFrame(aHandle: HWND; ARect: pRect;
|
||||||
bErase: Boolean; BorderWidth: integer): Boolean;
|
bErase: Boolean; BorderWidth: integer): Boolean;
|
||||||
|
|
||||||
|
@ -317,16 +317,6 @@ begin
|
|||||||
Result := WidgetSet.GetWindowRelativePosition(Handle,Left,Top);
|
Result := WidgetSet.GetWindowRelativePosition(Handle,Left,Top);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
|
||||||
function IntfSendsUTF8KeyPress: Boolean;
|
|
||||||
|
|
||||||
Returns true if interface sends UTF8 KeyPress notifications.
|
|
||||||
------------------------------------------------------------------------------}
|
|
||||||
function IntfSendsUTF8KeyPress: Boolean;
|
|
||||||
begin
|
|
||||||
Result := WidgetSet.IntfSendsUTF8KeyPress{%H-};
|
|
||||||
end;
|
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
function InvalidateFrame(aHandle: HWND; ARect: pRect; bErase: Boolean;
|
function InvalidateFrame(aHandle: HWND; ARect: pRect; bErase: Boolean;
|
||||||
BorderWidth: integer): Boolean;
|
BorderWidth: integer): Boolean;
|
||||||
|
@ -82,7 +82,6 @@ function GetScrollBarSize(Handle: HWND; SBStyle: Integer): integer; {$IFDEF IF_B
|
|||||||
function GetScrollbarVisible(Handle: HWND; SBStyle: Integer): boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
function GetScrollbarVisible(Handle: HWND; SBStyle: Integer): boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
||||||
function GetWindowRelativePosition(Handle : hwnd; var Left, Top: integer): boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
function GetWindowRelativePosition(Handle : hwnd; var Left, Top: integer): boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
||||||
|
|
||||||
function IntfSendsUTF8KeyPress: Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF} deprecated;
|
|
||||||
function InvalidateFrame(aHandle : HWND; ARect : pRect; bErase : Boolean; BorderWidth: integer) : Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
function InvalidateFrame(aHandle : HWND; ARect : pRect; bErase : Boolean; BorderWidth: integer) : Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
||||||
function IsDesignerDC(WindowHandle: HWND; DC: HDC): Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
function IsDesignerDC(WindowHandle: HWND; DC: HDC): Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
||||||
function IsMobilePlatform: Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
function IsMobilePlatform: Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
||||||
|
@ -7265,7 +7265,7 @@ procedure TWinControl.CNChar(var Message: TLMKeyUp);
|
|||||||
var
|
var
|
||||||
c: TUTF8Char;
|
c: TUTF8Char;
|
||||||
begin
|
begin
|
||||||
//debugln('TWinControl.CNChar B ',DbgSName(Self),' ',dbgs(Message.CharCode),' ',dbgs(IntfSendsUTF8KeyPress));
|
//debugln('TWinControl.CNChar B ',DbgSName(Self),' ',dbgs(Message.CharCode));
|
||||||
if Widgetset.GetLCLCapability(lcSendsUTF8KeyPress) = LCL_CAPABILITY_NO then
|
if Widgetset.GetLCLCapability(lcSendsUTF8KeyPress) = LCL_CAPABILITY_NO then
|
||||||
begin
|
begin
|
||||||
// current interface does not (yet) send UTF8 key press notifications -> emulate
|
// current interface does not (yet) send UTF8 key press notifications -> emulate
|
||||||
@ -7290,7 +7290,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{$ifdef VerboseKeyboard}
|
{$ifdef VerboseKeyboard}
|
||||||
debugln('TWinControl.CNChar A ',DbgSName(Self),' ',dbgs(Message.CharCode),' ',dbgs(IntfSendsUTF8KeyPress));
|
debugln('TWinControl.CNChar A ',DbgSName(Self),' ',dbgs(Message.CharCode));
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
if DoKeyPress(Message) then
|
if DoKeyPress(Message) then
|
||||||
|
Loading…
Reference in New Issue
Block a user