📄 advofficepager.hpp
字号:
__property Graphics::TColor ColorSelected = {read=FColorSelected, write=SetColorSelected, nodefault};
__property Graphics::TColor ColorSelectedTo = {read=FColorSelectedTo, write=SetColorSelectedTo, nodefault};
__property Graphics::TColor ColorDisabled = {read=FColorDisabled, write=SetColorDisabled, nodefault};
__property Graphics::TColor ColorDisabledTo = {read=FColorDisabledTo, write=SetColorDisabledTo, nodefault};
__property Graphics::TColor ColorHot = {read=FColorHot, write=SetColorHot, nodefault};
__property Graphics::TColor ColorHotTo = {read=FColorHotTo, write=SetColorHotTo, nodefault};
__property Graphics::TColor ColorMirror = {read=FColorMirror, write=SetColorMirror, nodefault};
__property Graphics::TColor ColorMirrorTo = {read=FColorMirrorTo, write=SetColorMirrorTo, nodefault};
__property Graphics::TColor ColorMirrorHot = {read=FColorMirrorHot, write=SetColorMirrorHot, nodefault};
__property Graphics::TColor ColorMirrorHotTo = {read=FColorMirrorHotTo, write=SetColorMirrorHotTo, nodefault};
__property Graphics::TColor ColorMirrorSelected = {read=FColorMirrorSelected, write=SetColorMirrorSelected, nodefault};
__property Graphics::TColor ColorMirrorSelectedTo = {read=FColorMirrorSelectedTo, write=SetColorMirrorSelectedTo, nodefault};
__property Graphics::TColor ColorMirrorDisabled = {read=FColorMirrorDisabled, write=SetColorMirrorDisabled, nodefault};
__property Graphics::TColor ColorMirrorDisabledTo = {read=FColorMirrorDisabledTo, write=SetColorMirrorDisabledTo, nodefault};
__property Graphics::TFont* Font = {read=FFont, write=SetFont};
__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 TPagerTabScroller;
class PASCALIMPLEMENTATION TPagerTabScroller : 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 TPagerTabScroller(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 ~TPagerTabScroller(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 TPageButtonSettings;
class PASCALIMPLEMENTATION TPageButtonSettings : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
Classes::TNotifyEvent FOnChange;
bool FPageListButton;
bool FCloseButton;
Gdipicture::TGDIPPicture* FScrollButtonNextPicture;
Gdipicture::TGDIPPicture* FScrollButtonPrevPicture;
Gdipicture::TGDIPPicture* FPageListButtonPicture;
Gdipicture::TGDIPPicture* FCloseButtonPicture;
AnsiString FScrollButtonPrevHint;
AnsiString FScrollButtonNextHint;
AnsiString FCloseButtonHint;
AnsiString FPageListButtonHint;
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 SetPageListButton(const bool Value);
void __fastcall SetPageListButtonPicture(const Gdipicture::TGDIPPicture* Value);
void __fastcall SetScrollButtonNextPicture(const Gdipicture::TGDIPPicture* Value);
void __fastcall SetScrollButtonPrevPicture(const Gdipicture::TGDIPPicture* Value);
public:
__fastcall TPageButtonSettings(void);
__fastcall virtual ~TPageButtonSettings(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property bool CloseButton = {read=FCloseButton, write=SetCloseButton, default=0};
__property bool PageListButton = {read=FPageListButton, write=SetPageListButton, default=0};
__property Gdipicture::TGDIPPicture* CloseButtonPicture = {read=FCloseButtonPicture, write=SetCloseButtonPicture};
__property Gdipicture::TGDIPPicture* PageListButtonPicture = {read=FPageListButtonPicture, write=SetPageListButtonPicture};
__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 PageListButtonHint = {read=FPageListButtonHint, write=FPageListButtonHint};
__property AnsiString ScrollButtonNextHint = {read=FScrollButtonNextHint, write=FScrollButtonNextHint};
__property AnsiString ScrollButtonPrevHint = {read=FScrollButtonPrevHint, write=FScrollButtonPrevHint};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
};
class DELPHICLASS TCustomAdvOfficePagerStyler;
class PASCALIMPLEMENTATION TCustomAdvOfficePagerStyler : public Classes::TComponent
{
typedef Classes::TComponent inherited;
private:
TDbgList* FControlList;
TTabAppearance* FTabAppearance;
TVistaBackground* FPageAppearance;
bool FRoundEdges;
bool FAutoThemeAdapt;
Advglowbutton::TGlowButtonAppearance* FGlowButtonAppearance;
int FBlendFactor;
void __fastcall OnTabAppearanceChanged(System::TObject* Sender);
void __fastcall OnPageAppearanceChanged(System::TObject* Sender);
void __fastcall OnGlowButtonAppearanceChanged(System::TObject* Sender);
void __fastcall SetRoundEdges(const bool Value);
void __fastcall SetTabAppearance(const TTabAppearance* Value);
void __fastcall SetPageAppearance(const TVistaBackground* Value);
void __fastcall SetGlowButtonAppearance(const Advglowbutton::TGlowButtonAppearance* 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 TVistaBackground* PageAppearance = {read=FPageAppearance, write=SetPageAppearance};
__property bool RoundEdges = {read=FRoundEdges, write=SetRoundEdges, default=1};
__property Advglowbutton::TGlowButtonAppearance* GlowButtonAppearance = {read=FGlowButtonAppearance, write=SetGlowButtonAppearance};
public:
__fastcall virtual TCustomAdvOfficePagerStyler(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomAdvOfficePagerStyler(void);
virtual void __fastcall Loaded(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
};
class DELPHICLASS TProWinControl;
class PASCALIMPLEMENTATION TProWinControl : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
public:
#pragma option push -w-inl
/* TWinControl.Create */ inline __fastcall virtual TProWinControl(Classes::TComponent* AOwner) : Controls::TWinControl(AOwner) { }
#pragma option pop
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TProWinControl(HWND ParentWindow) : Controls::TWinControl(ParentWindow) { }
#pragma option pop
#pragma option push -w-inl
/* TWinControl.Destroy */ inline __fastcall virtual ~TProWinControl(void) { }
#pragma option pop
};
class DELPHICLASS TAdvOfficePage;
class DELPHICLASS TAdvOfficePager;
typedef void __fastcall (__closure *TTabChangingEvent)(System::TObject* Sender, int FromPage, int ToPage, bool &AllowChange);
typedef void __fastcall (__closure *TOnClosePage)(System::TObject* Sender, int PageIndex, bool &Allow);
typedef void __fastcall (__closure *TOnClosedPage)(System::TObject* Sender, int PageIndex);
typedef void __fastcall (__closure *TOnPageListClick)(System::TObject* Sender, int X, int Y);
typedef void __fastcall (__closure *TTabMovedEvent)(System::TObject* Sender, int FromPos, int ToPos);
class PASCALIMPLEMENTATION TAdvOfficePager : public Controls::TCustomControl
{
typedef Controls::TCustomControl inherited;
private:
TCustomAdvOfficePagerStyler* FInternalOfficePagerStyler;
TCustomAdvOfficePagerStyler* FOfficePagerStyler;
TCustomAdvOfficePagerStyler* FCurrentOfficePagerStyler;
int FPageMargin;
int FOffSetY;
int FOffSetX;
TDbgList* FAdvPages;
bool FPropertiesLoaded;
bool FShowNonSelectedTabs;
TPagerTabSettings* FTabSettings;
TPagerTabScroller* FTabScroller;
int FActivePageIndex;
int FHotPageIndex;
int FDownPageIndex;
int FOldHotPageIndex;
int FHintPageIndex;
Imglist::TCustomImageList* FImages;
Imglist::TCustomImageList* FDisabledImages;
bool FShowTabHint;
Classes::TNotifyEvent FOnChange;
TTabChangingEvent FOnChanging;
int FOldCapRightIndent;
Advhintinfo::TAdvHintInfo* FOfficeHint;
Comctrls::TTabPosition FTabPosition;
Advgdip::TAntiAlias FAntiAlias;
TPageButtonSettings* FButtonSettings;
Menus::TPopupMenu* FPageListMenu;
TOnClosePage FOnClosePage;
TOnClosedPage FOnClosedPage;
TOnPageListClick FOnPageListClick;
bool FRotateTabLeftRight;
bool FCloseOnTab;
Advglowbutton::TAdvGlowButton* FCloseButton;
Advglowbutton::TAdvGlowButton* FPageListButton;
Advglowbutton::TAdvGlowButton* FScrollPrevButton;
Advglowbutton::TAdvGlowButton* FScrollNextButton;
int FTabOffSet;
bool FUseMaxSpace;
bool FFreeOnClose;
TDbgList* FShortCutHintWinList;
Classes::TWndMethod FFormWndProc;
bool FTabShortCutHintShowing;
AnsiString FTabShortCutChars;
bool FShowShortCutHints;
bool FTabReorder;
TTabMovedEvent FOnTabMoved;
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
HIDESBASE MESSAGE void __fastcall CMVisibleChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMShowingChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMControlChange(Controls::TCMControlChange &Message);
HIDESBASE MESSAGE void __fastcall CMControlListChange(Controls::TCMControlListChange &Message);
HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -