You've already forked lazarus-ccr
Cleanup code to set Tabsheet.Caption
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2321 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -989,27 +989,14 @@ var
|
|||||||
TS: TTabSheet;
|
TS: TTabSheet;
|
||||||
E: TEditor;
|
E: TEditor;
|
||||||
PgIdx: Integer;
|
PgIdx: Integer;
|
||||||
i, NrOfNoNames: Integer;
|
|
||||||
Suffix: String;
|
|
||||||
begin
|
begin
|
||||||
Result := nil;
|
Result := nil;
|
||||||
Inc(FCounter);
|
Inc(FCounter);
|
||||||
{
|
|
||||||
NrOfNoNames := 0;
|
|
||||||
Suffix := '';
|
|
||||||
for i := 0 to PageCount - 1 do
|
|
||||||
if Pos(vTranslations.NoName, Pages[i].Caption) = 1 then Inc(NrOfNoNames);
|
|
||||||
if NrOfNoNames > 0 then Suffix := ' [' + IntToStr(NrOfNoNames + 1) + ']';
|
|
||||||
}
|
|
||||||
TS := TTabSheet.Create(Self);
|
TS := TTabSheet.Create(Self);
|
||||||
TS.Name := 'TS' + IntToStr(FCounter);
|
TS.Name := 'TS' + IntToStr(FCounter);
|
||||||
TS.PageControl := Self;
|
TS.PageControl := Self;
|
||||||
PgIdx := TS.PageIndex;
|
PgIdx := TS.PageIndex;
|
||||||
|
|
||||||
TS.Caption := vTranslations.NoName + Suffix;
|
|
||||||
|
|
||||||
// exit;//<-------------------------------------------------------------
|
|
||||||
|
|
||||||
E := TEditor.Create(TS);
|
E := TEditor.Create(TS);
|
||||||
Result := E;
|
Result := E;
|
||||||
E.FileMaskList := FFileTypeMaskList;
|
E.FileMaskList := FFileTypeMaskList;
|
||||||
|
Reference in New Issue
Block a user