lcl: cleanup

git-svn-id: trunk@21766 -
This commit is contained in:
paul 2009-09-19 09:34:41 +00:00
parent a095fdff62
commit f4a1e520cd
2 changed files with 3 additions and 4 deletions

View File

@ -33,9 +33,7 @@ begin
FWantReturns := true;
FWantTabs := false;
FWordWrap := True;
//FLines := TMemoStrings.Create(Self);
FLines := TTextStrings.Create;
//TMemoStrings(FLines).MemoWidgetClass := TWSCustomMemoClass(WidgetSetClass);
FVertScrollbar := TMemoScrollBar.Create(Self, sbVertical);
FHorzScrollbar := TMemoScrollBar.Create(Self, sbHorizontal);
AutoSize := False;
@ -276,7 +274,8 @@ end;
------------------------------------------------------------------------------}
procedure TCustomMemo.SetWordWrap(const Value : boolean);
begin
if Value <> FWordWrap then begin
if Value <> FWordWrap then
begin
//DebugLn('TCustomMemo.SetWordWrap ',Name,' Old=',FWordWrap,' New=',Value);
FWordWrap := Value;
if HandleAllocated and (not (csLoading in ComponentState)) then

View File

@ -1218,7 +1218,7 @@ begin
Flags := Flags and not WS_HSCROLL
else
Flags := Flags or ES_AUTOHSCROLL;
if ACustomMemo.BorderStyle=bsSingle then
if ACustomMemo.BorderStyle = bsSingle then
FlagsEx := FlagsEx or WS_EX_CLIENTEDGE;
pClassName := @EditClsName[0];
WindowTitle := StrCaption;