Steps to reproduce:
- Call proposal form on Windows 7 with Aero theme.
- Press End to go to the last item (there should be enough items to fill form space).
The last item will be outside form.
The last item should be visible under Windows 7 with Aero theme.
The issue may be fixed by the followind code.
Old code:
New code:
Old code:
New code:
~~~~~~ procedure RecalcFormPlacement;
var
i: Integer;
tmpWidth: Integer;
tmpHeight: Integer;
tmpX: Integer;
tmpY: Integer;
tmpStr: UnicodeString;
BorderWidth: Integer;
BorderHeight: Integer;
NewWidth: Integer;
begin
tmpX := x;
tmpY := y;
tmpWidth := 0;
tmpHeight := 0;
case Kind of
ctCode:
begin
BorderWidth :=
{$IFDEF SYN_CLX}
6; // TODO: I don't know how to retrieve the border width in CLX
{$ELSE}
2 * GetSystemMetrics(SM_CXSIZEFRAME);
{$ENDIF}
BorderHeight :=
{$IFDEF SYN_CLX}
6; // TODO: I don't know how to retrieve the border width in CLX
{$ELSE}
2 * GetSystemMetrics(SM_CYSIZEFRAME);
{$ENDIF}
tmpWidth := FWidth;
tmpHeight := Form.FHeightBuffer + Form.FEffectiveItemHeight * FNbLinesInWindow + BorderHeight;
end;
~~~~~~