mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 22:39:11 +02:00
IDEIntf: replaced TNoteBook with TPageControl
git-svn-id: trunk@27298 -
This commit is contained in:
parent
dcdc584212
commit
dd6758df98
@ -594,7 +594,7 @@ type
|
|||||||
FindDeclarationPopupmenuItem: TMenuItem;
|
FindDeclarationPopupmenuItem: TMenuItem;
|
||||||
OptionsSeparatorMenuItem: TMenuItem;
|
OptionsSeparatorMenuItem: TMenuItem;
|
||||||
MainPopupMenu: TPopupMenu;
|
MainPopupMenu: TPopupMenu;
|
||||||
NoteBook: TNoteBook;
|
NoteBook: TPageControl;
|
||||||
OptionsSeparatorMenuItem2: TMenuItem;
|
OptionsSeparatorMenuItem2: TMenuItem;
|
||||||
PastePopupmenuItem: TMenuItem;
|
PastePopupmenuItem: TMenuItem;
|
||||||
PropertyGrid: TOICustomPropertyGrid;
|
PropertyGrid: TOICustomPropertyGrid;
|
||||||
@ -4781,38 +4781,41 @@ const
|
|||||||
tkSString, tkLString, tkAString, tkWString, tkVariant,
|
tkSString, tkLString, tkAString, tkWString, tkVariant,
|
||||||
{tkArray, tkRecord, tkInterface,} tkClass, tkObject, tkWChar, tkBool,
|
{tkArray, tkRecord, tkInterface,} tkClass, tkObject, tkWChar, tkBool,
|
||||||
tkInt64, tkQWord];
|
tkInt64, tkQWord];
|
||||||
|
function AddPage(PageName, TabCaption: string): TTabSheet;
|
||||||
|
begin
|
||||||
|
Result:=TTabSheet.Create(Self);
|
||||||
|
Result.Name:=PageName;
|
||||||
|
Result.Caption:=TabCaption;
|
||||||
|
Result.Parent:=NoteBook;
|
||||||
|
end;
|
||||||
|
var
|
||||||
|
APage: TTabSheet;
|
||||||
begin
|
begin
|
||||||
DestroyNoteBook;
|
DestroyNoteBook;
|
||||||
|
|
||||||
// NoteBook
|
// NoteBook
|
||||||
NoteBook:=TNoteBook.Create(Self);
|
NoteBook:=TPageControl.Create(Self);
|
||||||
with NoteBook do
|
with NoteBook do
|
||||||
begin
|
begin
|
||||||
Name := 'NoteBook';
|
Name := 'NoteBook';
|
||||||
Parent := Self;
|
Parent := Self;
|
||||||
Align := alClient;
|
Align := alClient;
|
||||||
if PageCount > 0 then
|
|
||||||
Pages.Strings[0] := oisProperties
|
|
||||||
else
|
|
||||||
Pages.Add(oisProperties);
|
|
||||||
Page[0].Name := DefaultOIPageNames[oipgpProperties];
|
|
||||||
|
|
||||||
Pages.Add(oisEvents);
|
|
||||||
Page[1].Name := DefaultOIPageNames[oipgpEvents];
|
|
||||||
|
|
||||||
Pages.Add(oisFavorites);
|
|
||||||
Page[2].Name := DefaultOIPageNames[oipgpFavourite];
|
|
||||||
Page[2].TabVisible := ShowFavorites;
|
|
||||||
|
|
||||||
Pages.Add(oisRestricted);
|
|
||||||
Page[3].Name := DefaultOIPageNames[oipgpRestricted];
|
|
||||||
Page[3].TabVisible := ShowRestricted;
|
|
||||||
Page[3].OnShow := @RestrictedPageShow;
|
|
||||||
|
|
||||||
PageIndex:=0;
|
|
||||||
PopupMenu := MainPopupMenu;
|
PopupMenu := MainPopupMenu;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
AddPage(DefaultOIPageNames[oipgpProperties],oisProperties);
|
||||||
|
|
||||||
|
AddPage(DefaultOIPageNames[oipgpEvents],oisEvents);
|
||||||
|
|
||||||
|
APage:=AddPage(DefaultOIPageNames[oipgpFavourite],oisFavorites);
|
||||||
|
APage.TabVisible := ShowFavorites;
|
||||||
|
|
||||||
|
APage:=AddPage(DefaultOIPageNames[oipgpRestricted],oisRestricted);
|
||||||
|
APage.TabVisible := ShowRestricted;
|
||||||
|
APage.OnShow := @RestrictedPageShow;
|
||||||
|
|
||||||
|
NoteBook.PageIndex:=0;
|
||||||
|
|
||||||
PropertyGrid := CreateGrid(PROPS, oipgpProperties, 0);
|
PropertyGrid := CreateGrid(PROPS, oipgpProperties, 0);
|
||||||
EventGrid := CreateGrid([tkMethod], oipgpEvents, 1);
|
EventGrid := CreateGrid([tkMethod], oipgpEvents, 1);
|
||||||
FavouriteGrid := CreateGrid(PROPS + [tkMethod], oipgpFavourite, 2);
|
FavouriteGrid := CreateGrid(PROPS + [tkMethod], oipgpFavourite, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user