📄 advofficetabset.hpp
字号:
__property Advglowbutton::TGDIPGradient Gradient = {read=FGradient, write=SetGradient, nodefault};
__property Advglowbutton::TGDIPGradient GradientMirror = {read=FGradientMirror, write=SetGradientMirror, nodefault};
__property Advglowbutton::TGDIPGradient GradientHot = {read=FGradientHot, write=SetGradientHot, nodefault};
__property Advglowbutton::TGDIPGradient GradientMirrorHot = {read=FGradientMirrorHot, write=SetGradientMirrorHot, nodefault};
__property Advglowbutton::TGDIPGradient GradientSelected = {read=FGradientSelected, write=SetGradientSelected, nodefault};
__property Advglowbutton::TGDIPGradient GradientMirrorSelected = {read=FGradientMirrorSelected, write=SetGradientMirrorSelected, nodefault};
__property Advglowbutton::TGDIPGradient GradientDisabled = {read=FGradientDisabled, write=SetGradientDisabled, nodefault};
__property Advglowbutton::TGDIPGradient GradientMirrorDisabled = {read=FGradientMirrorDisabled, write=SetGradientMirrorDisabled, nodefault};
__property Graphics::TColor TextColor = {read=FTextColor, write=SetTextColor, nodefault};
__property Graphics::TColor TextColorHot = {read=FTextColorHot, write=SetTextColorHot, nodefault};
__property Graphics::TColor TextColorSelected = {read=FTextColorSelected, write=SetTextColorSelected, nodefault};
__property Graphics::TColor TextColorDisabled = {read=FTextColorDisabled, write=SetTextColorDisabled, nodefault};
};
class DELPHICLASS TTabAppearance;
class PASCALIMPLEMENTATION TTabAppearance : public TCustomTabAppearance
{
typedef TCustomTabAppearance inherited;
__published:
__property BackGround ;
public:
#pragma option push -w-inl
/* TCustomTabAppearance.Create */ inline __fastcall TTabAppearance(void) : TCustomTabAppearance() { }
#pragma option pop
#pragma option push -w-inl
/* TCustomTabAppearance.Destroy */ inline __fastcall virtual ~TTabAppearance(void) { }
#pragma option pop
};
class DELPHICLASS TTabSetTabScroller;
class PASCALIMPLEMENTATION TTabSetTabScroller : public System::TObject
{
typedef System::TObject inherited;
private:
int FMin;
int FMax;
int FPosition;
bool FVisible;
void __fastcall SetMax(const int Value);
void __fastcall SetMin(const int Value);
void __fastcall SetPosition(const int Value);
void __fastcall SetVisible(const bool Value);
public:
__fastcall TTabSetTabScroller(void);
bool __fastcall CanGoForward(void);
bool __fastcall CanGoBack(void);
__property int Min = {read=FMin, write=SetMin, nodefault};
__property int Max = {read=FMax, write=SetMax, nodefault};
__property int Position = {read=FPosition, write=SetPosition, nodefault};
__property bool Visible = {read=FVisible, write=SetVisible, nodefault};
public:
#pragma option push -w-inl
/* TObject.Destroy */ inline __fastcall virtual ~TTabSetTabScroller(void) { }
#pragma option pop
};
class DELPHICLASS TDbgList;
class PASCALIMPLEMENTATION TDbgList : public Classes::TList
{
typedef Classes::TList inherited;
public:
void * operator[](int Index) { return Items[Index]; }
private:
void * __fastcall GetItemsEx(int Index);
void __fastcall SetItemsEx(int Index, const void * Value);
public:
__property void * Items[int Index] = {read=GetItemsEx, write=SetItemsEx/*, default*/};
public:
#pragma option push -w-inl
/* TList.Destroy */ inline __fastcall virtual ~TDbgList(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TObject.Create */ inline __fastcall TDbgList(void) : Classes::TList() { }
#pragma option pop
};
class DELPHICLASS TTabSetButtonSettings;
class PASCALIMPLEMENTATION TTabSetButtonSettings : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
Classes::TNotifyEvent FOnChange;
bool FTabListButton;
bool FCloseButton;
Gdipicture::TGDIPPicture* FScrollButtonNextPicture;
Gdipicture::TGDIPPicture* FScrollButtonPrevPicture;
Gdipicture::TGDIPPicture* FTabListButtonPicture;
Gdipicture::TGDIPPicture* FCloseButtonPicture;
AnsiString FScrollButtonPrevHint;
AnsiString FScrollButtonNextHint;
AnsiString FCloseButtonHint;
AnsiString FTabListButtonHint;
void __fastcall Changed(void);
void __fastcall OnPictureChanged(System::TObject* Sender);
void __fastcall SetCloseButton(const bool Value);
void __fastcall SetCloseButtonPicture(const Gdipicture::TGDIPPicture* Value);
void __fastcall SetTabListButton(const bool Value);
void __fastcall SetTabListButtonPicture(const Gdipicture::TGDIPPicture* Value);
void __fastcall SetScrollButtonNextPicture(const Gdipicture::TGDIPPicture* Value);
void __fastcall SetScrollButtonPrevPicture(const Gdipicture::TGDIPPicture* Value);
public:
__fastcall TTabSetButtonSettings(void);
__fastcall virtual ~TTabSetButtonSettings(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property bool CloseButton = {read=FCloseButton, write=SetCloseButton, default=0};
__property bool TabListButton = {read=FTabListButton, write=SetTabListButton, default=0};
__property Gdipicture::TGDIPPicture* CloseButtonPicture = {read=FCloseButtonPicture, write=SetCloseButtonPicture};
__property Gdipicture::TGDIPPicture* TabListButtonPicture = {read=FTabListButtonPicture, write=SetTabListButtonPicture};
__property Gdipicture::TGDIPPicture* ScrollButtonPrevPicture = {read=FScrollButtonPrevPicture, write=SetScrollButtonPrevPicture};
__property Gdipicture::TGDIPPicture* ScrollButtonNextPicture = {read=FScrollButtonNextPicture, write=SetScrollButtonNextPicture};
__property AnsiString CloseButtonHint = {read=FCloseButtonHint, write=FCloseButtonHint};
__property AnsiString TabListButtonHint = {read=FTabListButtonHint, write=FTabListButtonHint};
__property AnsiString ScrollButtonNextHint = {read=FScrollButtonNextHint, write=FScrollButtonNextHint};
__property AnsiString ScrollButtonPrevHint = {read=FScrollButtonPrevHint, write=FScrollButtonPrevHint};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
};
class DELPHICLASS TCustomAdvOfficeTabSetStyler;
class PASCALIMPLEMENTATION TCustomAdvOfficeTabSetStyler : public Classes::TComponent
{
typedef Classes::TComponent inherited;
private:
TDbgList* FControlList;
TTabAppearance* FTabAppearance;
bool FRoundEdges;
bool FAutoThemeAdapt;
Advglowbutton::TGlowButtonAppearance* FGlowButtonAppearance;
int FBlendFactor;
Graphics::TColor FButtonBorderColor;
void __fastcall OnTabAppearanceChanged(System::TObject* Sender);
void __fastcall OnGlowButtonAppearanceChanged(System::TObject* Sender);
void __fastcall SetRoundEdges(const bool Value);
void __fastcall SetTabAppearance(const TTabAppearance* Value);
void __fastcall SetGlowButtonAppearance(const Advglowbutton::TGlowButtonAppearance* Value);
void __fastcall SetButtonBorderColor(const Graphics::TColor Value);
protected:
void __fastcall AddControl(Controls::TCustomControl* AControl);
void __fastcall RemoveControl(Controls::TCustomControl* AControl);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
void __fastcall Change(int PropID);
__property int BlendFactor = {read=FBlendFactor, write=FBlendFactor, nodefault};
__property bool AutoThemeAdapt = {read=FAutoThemeAdapt, write=FAutoThemeAdapt, default=0};
__property TTabAppearance* TabAppearance = {read=FTabAppearance, write=SetTabAppearance};
__property bool RoundEdges = {read=FRoundEdges, write=SetRoundEdges, default=1};
__property Graphics::TColor ButtonBorderColor = {read=FButtonBorderColor, write=SetButtonBorderColor, nodefault};
__property Advglowbutton::TGlowButtonAppearance* GlowButtonAppearance = {read=FGlowButtonAppearance, write=SetGlowButtonAppearance};
public:
__fastcall virtual TCustomAdvOfficeTabSetStyler(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomAdvOfficeTabSetStyler(void);
virtual void __fastcall Loaded(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
};
class DELPHICLASS TDummyHintControl;
class PASCALIMPLEMENTATION TDummyHintControl : public Controls::TControl
{
typedef Controls::TControl inherited;
private:
Advhintinfo::TAdvHintInfo* FOfficeHint;
void __fastcall SetOfficeHint(const Advhintinfo::TAdvHintInfo* Value);
public:
__fastcall virtual TDummyHintControl(Classes::TComponent* AOwner);
__fastcall virtual ~TDummyHintControl(void);
__published:
__property Advhintinfo::TAdvHintInfo* OfficeHint = {read=FOfficeHint, write=SetOfficeHint};
};
class DELPHICLASS TOfficeTabCollectionItem;
class PASCALIMPLEMENTATION TOfficeTabCollectionItem : public Classes::TCollectionItem
{
typedef Classes::TCollectionItem inherited;
private:
AnsiString FCaption;
bool FVisible;
int FTag;
int FImageIndex;
bool FEnabled;
Extctrls::TTimer* FTimer;
int FTimeInc;
int FStepHover;
int FStepPush;
TGlowState FGlowState;
Gdipicture::TGDIPPicture* FIPicture;
Gdipicture::TGDIPPicture* FIDisabledPicture;
Advhintinfo::TAdvHintInfo* FOfficeHint;
void __fastcall TimerProc(System::TObject* Sender);
void __fastcall PictureChanged(System::TObject* Sender);
void __fastcall SetCaption(const AnsiString Value);
void __fastcall SetVisible(const bool Value);
void __fastcall SetImageIndex(const int Value);
void __fastcall SetEnabled(const bool Value);
void __fastcall SetDisabledPicture(const Gdipicture::TGDIPPicture* Value);
void __fastcall SetPicture(const Gdipicture::TGDIPPicture* Value);
void __fastcall SetOfficeHint(const Advhintinfo::TAdvHintInfo* Value);
protected:
Forms::TForm* FChildForm;
Classes::TNotifyEvent FOnActivateForm;
Classes::TNotifyEvent FOnDestroyForm;
virtual AnsiString __fastcall GetDisplayName();
virtual void __fastcall SetIndex(int Value);
void __fastcall Refresh(void);
public:
__fastcall virtual TOfficeTabCollectionItem(Classes::TCollection* Collection);
__fastcall virtual ~TOfficeTabCollectionItem(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property AnsiString Caption = {read=FCaption, write=SetCaption};
__property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};
__property bool Visible = {read=FVisible, write=SetVisible, default=1};
__property int ImageIndex = {read=FImageIndex, write=SetImageIndex, default=-1};
__property Gdipicture::TGDIPPicture* DisabledPicture = {read=FIDisabledPicture, write=SetDisabledPicture};
__property Gdipicture::TGDIPPicture* Picture = {read=FIPicture, write=SetPicture};
__property Advhintinfo::TAdvHintInfo* OfficeHint = {read=FOfficeHint, write=SetOfficeHint};
__property int Tag = {read=FTag, write=FTag, default=0};
};
class DELPHICLASS TOfficeTabCollection;
class DELPHICLASS TAdvCustomOfficeTabSet;
typedef void __fastcall (__closure *TTabChangingEvent)(System::TObject* Sender, int FromTab, int ToTab, bool &AllowChange);
typedef void __fastcall (__closure *TOnTabClose)(System::TObject* Sender, int TabIndex, bool &Allow);
typedef void __fastcall (__closure *TOnTabListClick)(System::TObject* Sender, int X, int Y);
class PASCALIMPLEMENTATION TAdvCustomOfficeTabSet : public Controls::TCustomControl
{
typedef Controls::TCustomControl inherited;
private:
TCustomAdvOfficeTabSetStyler* FInternalOfficeTabSetStyler;
TCustomAdvOfficeTabSetStyler* FOfficeTabSetStyler;
TCustomAdvOfficeTabSetStyler* FCurrentOfficeTabSetStyler;
int FOffSetY;
int FOffSetX;
TOfficeTabCollection* FAdvOfficeTabs;
bool FPropertiesLoaded;
bool FShowNonSelectedTabs;
TTabSetTabSettings* FTabSettings;
TTabSetTabScroller* FTabScroller;
int FActiveTabIndex;
int FHotTabIndex;
int FDownTabIndex;
int FOldHotTabIndex;
int FHintTabIndex;
Imglist::TCustomImageList* FImages;
Imglist::TCustomImageList* FDisabledImages;
bool FShowTabHint;
Classes::TNotifyEvent FOnChange;
TTabChangingEvent FOnChanging;
int FOldCapRightIndent;
Advhintinfo::TAdvHintInfo* FOfficeHint;
Comctrls::TTabPosition FTabPosition;
Advgdip::TAntiAlias FAntiAlias;
TTabSetButtonSettings* FButtonSettings;
Menus::TPopupMenu* FTabListMenu;
TOnTabClose FOnTabClose;
TOnTabListClick FOnTabListClick;
bool FRotateTabLeftRight;
bool FCloseOnTab;
Advglowbutton::TAdvGlowButton* FCloseButton;
Advglowbutton::TAdvGlowButton* FTabListButton;
Advglowbutton::TAdvGlowButton* FScrollPrevButton;
Advglowbutton::TAdvGlowButton* FScrollNextButton;
int FTabOffSet;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -