You've already forked lazarus-ccr
tvplant: More features in demo project.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4805 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -128,6 +128,7 @@ type
|
||||
constructor Create(Collection: TCollection); override;
|
||||
destructor Destroy; override;
|
||||
function GetContainer: TVpFolderContainer;
|
||||
function ItemByName(AName: String): TVpNavBtnItem;
|
||||
|
||||
property Items[Index: Integer]: TVpNavBtnItem read GetItem;
|
||||
property ItemCount: Integer read GetItemCount;
|
||||
@@ -834,6 +835,18 @@ begin
|
||||
end;
|
||||
{=====}
|
||||
|
||||
function TVpNavFolder.ItemByName(AName: String): TVpNavBtnItem;
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
for i:=0 to ItemCount-1 do begin
|
||||
Result := Items[i];
|
||||
if Result.Name = AName then
|
||||
exit;
|
||||
end;
|
||||
Result := nil;
|
||||
end;
|
||||
|
||||
procedure TVpNavFolder.lfGetEditorCaption(var Caption: string);
|
||||
begin
|
||||
Caption := RSEditingItems;
|
||||
|
Reference in New Issue
Block a user