mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +02:00
LCL: TMemo using TTextStrings
git-svn-id: trunk@18820 -
This commit is contained in:
parent
2f23907551
commit
59cea6c0ba
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user