Mantis 6231: Must circumvent a VCL bug in TCustomMemo