mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 20:28:19 +02:00
win32: edit, spin edit: fix changing font at runtime. Issue #29873
git-svn-id: trunk@52030 -
This commit is contained in:
parent
fdeb9c3110
commit
4b6594212f
@ -374,7 +374,8 @@ end;
|
||||
class procedure TWin32WSCustomFloatSpinEdit.SetFont(
|
||||
const AWinControl: TWinControl; const AFont: TFont);
|
||||
begin
|
||||
inherited SetFont(AWinControl, AFont);
|
||||
if not WSCheckHandleAllocated(AWinControl, 'SetFont') then Exit;
|
||||
TWin32WSWinControl.SetFont(AWinControl, AFont);
|
||||
|
||||
ApplyMargins(AWinControl);
|
||||
end;
|
||||
|
@ -1242,7 +1242,8 @@ end;
|
||||
class procedure TWin32WSCustomEdit.SetFont(const AWinControl: TWinControl;
|
||||
const AFont: TFont);
|
||||
begin
|
||||
inherited SetFont(AWinControl, AFont);
|
||||
if not WSCheckHandleAllocated(AWinControl, 'SetFont') then Exit;
|
||||
TWin32WSWinControl.SetFont(AWinControl, AFont);
|
||||
|
||||
ApplyMargins(AWinControl);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user