Out of the box, Delphi does not support record properties because of two lacking features:
- published record properties are not expanded in the Object Inspector
- [RSP-19303] RTTI for record properties is not available – Embarcadero Technologies
Paul Toth worked around both at [WayBack] DelphiTips/RecordProperty at master · tothpaul/DelphiTips · GitHub
He uses an intermediate helper where he redirects the get/set methods to from a property registration call.
Note that in the past, Pieter Zijlstra did a similar thing, but bumped into a Delphi 2010 problem where the status indicates it is till open: [WayBack] QualityCentral: 77635 – Open – The new RTTI of D2010 causes components with published record properties to fail to stream in.
Source: Yes ! I’ve published a Record property it could be nice to have this feature…
Via: [WayBack] Yes ! I’ve published a Record property it could be nice to have this feature in Delphi, but we need RTTI for record properties to simplify the code (an… – Paul TOTH – Google+
–jeroen