carbon: fix for WordWrap property set in design-time, #16296

git-svn-id: trunk@24721 -
This commit is contained in:
dmitry 2010-04-19 12:29:06 +00:00
parent 7ca94731c5
commit dd61038ebf

View File

@ -910,8 +910,12 @@ end;
------------------------------------------------------------------------------}
class function TCarbonWSCustomMemo.CreateHandle(const AWinControl: TWinControl;
const AParams: TCreateParams): TLCLIntfHandle;
var
Memo : TCarbonMemo;
begin
Result := TLCLIntfHandle(TCarbonMemo.Create(AWinControl, AParams));
Memo:=TCarbonMemo.Create(AWinControl, AParams);
Memo.SetWordWrap(TCustomMemo(AWinControl).WordWrap);
Result := TLCLIntfHandle(Memo);
end;
{------------------------------------------------------------------------------