mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 16:38:17 +02:00
LCL: fixed compilation on 64bit Linux
git-svn-id: trunk@33898 -
This commit is contained in:
parent
ee7e057f20
commit
4a0c93d51e
@ -244,15 +244,17 @@ begin
|
||||
// In the LCL TEdit AutoSizes only its Height, so follow this here
|
||||
cidEdit: PreferredHeight := GetMeasuresEx(ADest, TCDCONTROL_CAPTION_HEIGHT, AState, AStateEx)+5;
|
||||
cidCheckBox, cidRadioButton:
|
||||
begin
|
||||
if AStateEx.AutoSize then
|
||||
PreferredWidth := GetMeasures(TCDCHECKBOX_SQUARE_HEIGHT)
|
||||
+ GetMeasuresEx(ADest, TCDCONTROL_CAPTION_WIDTH, AState, AStateEx) + 6;
|
||||
begin
|
||||
if AStateEx.AutoSize then begin
|
||||
PreferredWidth := GetMeasures(TCDCHECKBOX_SQUARE_HEIGHT);
|
||||
PreferredWidth := PreferredWidth
|
||||
+ GetMeasuresEx(ADest, TCDCONTROL_CAPTION_WIDTH, AState, AStateEx) + 6;
|
||||
end;
|
||||
|
||||
PreferredHeight :=
|
||||
Max(GetMeasuresEx(ADest, TCDCONTROL_CAPTION_HEIGHT, AState, AStateEx),
|
||||
GetMeasures(TCDCHECKBOX_SQUARE_HEIGHT));
|
||||
end;
|
||||
PreferredHeight :=
|
||||
Max(GetMeasuresEx(ADest, TCDCONTROL_CAPTION_HEIGHT, AState, AStateEx),
|
||||
GetMeasures(TCDCHECKBOX_SQUARE_HEIGHT));
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user