Here's a patch that calculates menu height and fix GetWindowSize for TCustomForm.
Also fix GetRelativePos when parent is TGroupBox.
I must warn that this patch doesn't fixes the problems introduced after the recent changes and that were reported by Micha.
Mattias, please take a closer previous
implementation does the same as the current with a cleaner/faster approach:
if we assume that
NewRect.Right:=NewRect.Left+(R.Right-R.Left);
Then
NewRect.Right - NewRect.Left =
NewRect.Left+(R.Right-R.Left) - NewRect.Left =
R.Right-R.Left -> the previous value
Thanks
karl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zip00031.zip
Type: application/octet-stream
Size: 1426 bytes
Desc: "size.zip"
Url : http://localhost/pipermail/lazarus/attachments/20030820/214db5f7/zip00031.obj
