Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-12

Bug Report Update - LCL: TControl GetClientRect, GetClientWidth, GetCLientHeight

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Title: LCL: TControl GetClientRect, GetClientWidth, GetCLientHeight

Entered by: Claude Rieth

Original Description:
In TControl (control.inc)

GetClientRect returns Right and Bottom as Width and Height, it should be Width-1 and Height-1

GetClientWidth returns Right, should be Right+1
GetClientHeight return Bottom, should be Bottom+1

TWinControl.GetClientRect has the same problem,

Correcting this automagically fixes different glitches in the UI

Updated by: Mattias

Status: Not a bug

Comments:
MG

Reply by email