mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 07:30:22 +02:00
lcl: formatting
git-svn-id: trunk@20676 -
This commit is contained in:
parent
f5cdfcac6a
commit
d7dd2de4ce
@ -277,16 +277,16 @@ end;
|
||||
|
||||
function TCustomLabel.DialogChar(var Message: TLMKey): boolean;
|
||||
begin
|
||||
Result := false;
|
||||
Result := False;
|
||||
if not FShowAccelChar then exit;
|
||||
if FFocusControl = nil then exit;
|
||||
|
||||
if IsAccel(Message.CharCode, GetLabelText) and FFocusControl.CanFocus then
|
||||
begin
|
||||
Result := true;
|
||||
Result := True;
|
||||
FFocusControl.SetFocus;
|
||||
end else
|
||||
Result:=inherited DialogChar(Message);
|
||||
Result := inherited DialogChar(Message);
|
||||
end;
|
||||
|
||||
procedure TCustomLabel.Loaded;
|
||||
|
@ -5301,11 +5301,11 @@ var
|
||||
I: integer;
|
||||
begin
|
||||
// broadcast to children
|
||||
Result := false;
|
||||
Result := False;
|
||||
for I := 0 to ControlCount - 1 do
|
||||
begin
|
||||
Result := Controls[I].DialogChar(Message);
|
||||
if Result then exit;
|
||||
if Result then Exit;
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -5419,10 +5419,7 @@ begin
|
||||
begin
|
||||
Result := ParentForm.DialogChar(Message);
|
||||
if Result then
|
||||
begin
|
||||
Message.CharCode := VK_UNKNOWN;
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user