LCL: TMemo using TTextStrings

git-svn-id: trunk@18820 -
This commit is contained in:
mattias 2009-02-24 18:24:40 +00:00
parent 2f23907551
commit 59cea6c0ba
2 changed files with 1 additions and 12 deletions

View File

@ -34,11 +34,7 @@ begin
FWantTabs := false;
FWordWrap := True;
//FLines := TMemoStrings.Create(Self);
{$IFDEF EnableMemoTextStrings}
FLines := TTextStrings.Create;
{$ELSE}
FLines := TStringList.Create;
{$ENDIF}
//TMemoStrings(FLines).MemoWidgetClass := TWSCustomMemoClass(WidgetSetClass);
FVertScrollbar := TMemoScrollBar.Create(Self, sbVertical);
FHorzScrollbar := TMemoScrollBar.Create(Self, sbHorizontal);
@ -141,11 +137,7 @@ var
begin
if Assigned(FLines) then begin
// create internal item list
{$IFDEF EnableMemoTextStrings}
NewStrings := TTextStrings.Create;
{$ELSE}
NewStrings := TStringList.Create;
{$ENDIF}
// copy items (text+objects) from the interface items list
NewStrings.Assign(Lines);

View File

@ -31,10 +31,7 @@ interface
uses
Classes, SysUtils, LCLStrConsts, LCLType, LCLProc, LMessages, Graphics,
GraphType, ExtendedStrings, LCLIntf, ClipBrd, ActnList, Controls,
{$IFDEF EnableMemoTextStrings}
TextStrings,
{$ENDIF}
Forms, Menus, LResources;
TextStrings, Forms, Menus, LResources;
type