LCL carbon: fixed 0012413: TMemo on Carbon, clear doesn't work by patch from skalogryyz

git-svn-id: trunk@17083 -
This commit is contained in:
tombo 2008-10-21 08:40:25 +00:00
parent ab49d7b9ed
commit e90765f1bc

View File

@ -187,6 +187,7 @@ type
procedure SetPasswordChar(AChar: Char); override;
procedure SetReadOnly(AReadOnly: Boolean); override;
procedure SetWordWrap(AWordWrap: Boolean); virtual;
function SetText(const S: String): Boolean; override;
public
function GetLineCount: Integer;
function GetLine(AIndex: Integer): String;
@ -1680,6 +1681,12 @@ begin
Invalidate;
end;
function TCarbonMemo.SetText(const S: String): Boolean;
begin
Result:=inherited SetText(S);
Invalidate;
end;
{------------------------------------------------------------------------------
Method: TCarbonMemo.GetLineCount
Returns: Memo line count