📄 advpagecontrol.hpp
字号:
// CodeGear C++ Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Advpagecontrol.pas' rev: 11.00
#ifndef AdvpagecontrolHPP
#define AdvpagecontrolHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp> // Pascal unit
#include <Sysinit.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <Sysutils.hpp> // Pascal unit
#include <Commctrl.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Imglist.hpp> // Pascal unit
#include <Comctrls.hpp> // Pascal unit
#include <Math.hpp> // Pascal unit
#include <Dialogs.hpp> // Pascal unit
#include <Types.hpp> // Pascal unit
#include <Menus.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Advpagecontrol
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TGradientDirection { gdVertical, gdHorizontal };
#pragma option pop
#pragma option push -b-
enum TTabStyle { tsClassic, tsDotNet, tsDelphi };
#pragma option pop
typedef int TMarginSize;
typedef void __fastcall (__closure *TMarginChange)(TMarginSize NewValue, TMarginSize OldValue, int Index);
class DELPHICLASS TTabMargin;
class PASCALIMPLEMENTATION TTabMargin : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TMarginSize FLeftMargin;
TMarginSize FTopMargin;
TMarginSize FRightMargin;
TMarginChange FOnMarginChange;
void __fastcall SetMargin(int Index, TMarginSize Value);
protected:
__property TMarginChange OnMarginChange = {read=FOnMarginChange, write=FOnMarginChange};
public:
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property TMarginSize LeftMargin = {read=FLeftMargin, write=SetMargin, index=0, default=0};
__property TMarginSize TopMargin = {read=FTopMargin, write=SetMargin, index=1, default=0};
__property TMarginSize RightMargin = {read=FRightMargin, write=SetMargin, index=2, nodefault};
public:
#pragma option push -w-inl
/* TPersistent.Destroy */ inline __fastcall virtual ~TTabMargin(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TObject.Create */ inline __fastcall TTabMargin(void) : Classes::TPersistent() { }
#pragma option pop
};
typedef void __fastcall (__closure *TCanCloseEvent)(System::TObject* Sender, bool &CanClose);
typedef void __fastcall (__closure *TCanChangeEvent)(System::TObject* Sender, int FromPage, int ToPage, bool &AllowChange);
class DELPHICLASS TAdvTabSheet;
class DELPHICLASS TAdvPageControl;
typedef Shortint TTabOverlapSize;
class PASCALIMPLEMENTATION TAdvPageControl : public Comctrls::TCustomTabControl
{
typedef Comctrls::TCustomTabControl inherited;
private:
Classes::TList* FPages;
TAdvTabSheet* FActivePage;
TAdvTabSheet* FNewDockSheet;
TAdvTabSheet* FUndockingPage;
TTabMargin* FTabMargin;
Classes::TStringList* FClosedTabList;
Classes::TNotifyEvent FOnChange;
Imglist::TCustomImageList* FImages;
Imglist::TCustomImageList* FDummyImages;
Graphics::TColor FDefaultTextColor;
Graphics::TColor FDefaultTabColor;
Graphics::TColor FDefaultTabColorTo;
Graphics::TColor FActiveColor;
Graphics::TColor FActiveColorTo;
bool FTabBorder3D;
Graphics::TColor FTabBorderColor;
Graphics::TColor FTabHoverColor;
Graphics::TColor FTabHoverColorTo;
Graphics::TColor FTabHoverBorder;
bool FShowFocus;
bool FHoverClosedButton;
TTabOverlapSize FTabOverlap;
bool FTabSheet3D;
Graphics::TColor FTabSheetBorderColor;
Graphics::TColor FTabBackGroundColor;
bool FTabSplitLine;
bool FRoundEdges;
int FHoverTab;
Graphics::TBitmap* FTabBackGround;
Graphics::TBitmap* FTabBackGroundActive;
TTabStyle FTabStyle;
int FLowerActive;
bool FPropertiesLoaded;
bool FFreeOnClose;
Graphics::TFont* FActiveFont;
TCanChangeEvent FOnCanChange;
Graphics::TBitmap* FCloseGlyph;
bool FFullRefresh;
Comctrls::TDrawTabEvent FOnDrawTab;
void __fastcall ActiveFontChangeEvent(System::TObject* Sender);
void __fastcall UpdateTabForActiveFont(TAdvTabSheet* Page);
void __fastcall ChangeActivePage(TAdvTabSheet* Page);
void __fastcall DeleteTab(TAdvTabSheet* Page, int Index);
int __fastcall GetActivePageIndex(void);
Controls::TControl* __fastcall GetDockClientFromMousePos(const Types::TPoint &MousePos);
TAdvTabSheet* __fastcall GetPage(int Index);
int __fastcall GetPageCount(void);
void __fastcall InsertPage(TAdvTabSheet* Page);
void __fastcall InsertTab(TAdvTabSheet* Page);
void __fastcall MoveTab(int CurIndex, int NewIndex);
void __fastcall RemovePage(TAdvTabSheet* Page);
void __fastcall SetActivePage(TAdvTabSheet* Page);
void __fastcall SetActivePageIndex(const int Value);
void __fastcall SetDefaultTextColor(const Graphics::TColor Value);
void __fastcall SetDefaultTabColor(const Graphics::TColor Value);
void __fastcall SetDefaultTabColorTo(const Graphics::TColor Value);
void __fastcall SetActiveColor(const Graphics::TColor Value);
void __fastcall SetActiveColorTo(const Graphics::TColor Value);
void __fastcall SetTabBorder3D(bool Value);
void __fastcall SetTabBorderColor(const Graphics::TColor Value);
void __fastcall SetTabBackGround(const Graphics::TBitmap* Value);
void __fastcall SetTabBackGroundActive(const Graphics::TBitmap* Value);
HIDESBASE void __fastcall SetImages(Imglist::TCustomImageList* value);
void __fastcall SetTabMargin(TTabMargin* Value);
void __fastcall SetTabOverlap(TTabOverlapSize Value);
void __fastcall SetTabSheet3D(bool Value);
void __fastcall SetTabSheetBorderColor(Graphics::TColor Value);
void __fastcall SetTabBackGroundColor(Graphics::TColor Value);
void __fastcall SetTabSplitLine(bool Value);
void __fastcall SetRoundEdges(bool Value);
void __fastcall SetTabStyle(TTabStyle Value);
void __fastcall SetLowerActive(int Value);
Comctrls::TTabPosition __fastcall GetTabPosition(void);
HIDESBASE void __fastcall SetTabPosition(Comctrls::TTabPosition Value);
void __fastcall SetTabMargins(void);
void __fastcall DrawCloseGlyph(const Types::TPoint &P);
void __fastcall DrawCloseButton(const Types::TRect &Rect, bool Active);
void __fastcall DrawHoverCloseButton(const Types::TRect &Rect);
void __fastcall DrawDownCloseButton(const Types::TRect &Rect);
bool __fastcall IsOnButton(int TabIndex, int X, int Y);
void __fastcall TabMarginChange(TMarginSize NewValue, TMarginSize OldValue, int Index);
void __fastcall UpdateTab(TAdvTabSheet* Page);
void __fastcall UpdateTabHighlights(void);
HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &Message);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
HIDESBASE MESSAGE void __fastcall CMDesignHitTest(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall CMDialogKey(Messages::TWMKey &Message);
HIDESBASE MESSAGE void __fastcall CMDockClient(Controls::TCMDockClient &Message);
MESSAGE void __fastcall CMDockNotification(Controls::TCMDockNotification &Message);
HIDESBASE MESSAGE void __fastcall CMUnDockClient(Controls::TCMUnDockClient &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
void __fastcall SetActiveFont(const Graphics::TFont* Value);
AnsiString __fastcall GetVersion();
void __fastcall SetVersion(const AnsiString Value);
int __fastcall GetVersionNr(void);
void __fastcall SetCloseGlyph(const Graphics::TBitmap* Value);
protected:
virtual bool __fastcall CanShowTab(int TabIndex);
DYNAMIC void __fastcall Change(void);
DYNAMIC void __fastcall DoAddDockClient(Controls::TControl* Client, const Types::TRect &ARect);
DYNAMIC void __fastcall DockOver(Controls::TDragDockObject* Source, int X, int Y, Controls::TDragState State, bool &Accept);
DYNAMIC void __fastcall DoRemoveDockClient(Controls::TControl* Client);
virtual int __fastcall GetImageIndex(int TabIndex);
TAdvTabSheet* __fastcall GetPageFromDockClient(Controls::TControl* Client);
DYNAMIC void __fastcall GetSiteInfo(Controls::TControl* Client, Types::TRect &InfluenceRect, const Types::TPoint &MousePos, bool &CanDock);
virtual void __fastcall Loaded(void);
DYNAMIC void __fastcall SetChildOrder(Classes::TComponent* Child, int Order);
virtual void __fastcall ShowControl(Controls::TControl* AControl);
virtual void __fastcall UpdateActivePage(void);
virtual void __fastcall WndProc(Messages::TMessage &Message);
void __fastcall TabChange(System::TObject* Sender);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
void __fastcall DrawAllTabs(Graphics::TCanvas* Canvas);
Types::TRect __fastcall TabRectEx(int i);
int __fastcall IndexOfTabAtEx(int X, int Y);
DYNAMIC bool __fastcall CanChange(void);
public:
DYNAMIC void __fastcall GetChildren(Classes::TGetChildProc Proc, Classes::TComponent* Root);
__fastcall virtual TAdvPageControl(Classes::TComponent* AOwner);
__fastcall virtual ~TAdvPageControl(void);
TAdvTabSheet* __fastcall FindNextPage(TAdvTabSheet* CurPage, bool GoForward, bool CheckTabVisible);
void __fastcall SelectNextPage(bool GoForward);
void __fastcall OpenAllClosedTabs(void);
bool __fastcall OpenClosedTab(AnsiString TabName);
__property int ActivePageIndex = {read=GetActivePageIndex, write=SetActivePageIndex, nodefault};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -