Advanced TRect functions (compatibility with Delphi)
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
The attached patch adds advanced TRect functions like they are defined in Delphi: http://docwiki.embarcadero.com/Libraries/Seattle/en/System.Types.TRect
IMPORTANT! The patch also fixes wrong SetLocation() method. The former code set only TopLeft when setting Location, resulting in size change. It has to set TopLeft and BottomRight so that size stays the same!!!
Mantis conversion info:
- Mantis ID: 29479
- Build: trunk
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 32998 (#e7a722cd)
- Target version: 3.0.2