⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 advnavbar.hpp

📁 TMS component pack v4.2 for delphi
💻 HPP
📖 第 1 页 / 共 2 页
字号:
// CodeGear C++ Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Advnavbar.pas' rev: 11.00

#ifndef AdvnavbarHPP
#define AdvnavbarHPP

#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 <Classes.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Math.hpp>	// Pascal unit
#include <Advstyleif.hpp>	// Pascal unit
#include <Types.hpp>	// Pascal unit
#include <Imglist.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Advnavbar
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TGradientDirection { gdVertical, gdHorizontal };
#pragma option pop

#pragma option push -b-
enum TBottomIconAlign { biLeft, biRight };
#pragma option pop

#pragma option push -b-
enum TDefaultTabPosition { tpTop, tpBottom };
#pragma option pop

class DELPHICLASS TAdvNavBarPanelSection;
class DELPHICLASS TAdvNavBarPanel;
class PASCALIMPLEMENTATION TAdvNavBarPanelSection : public Classes::TCollectionItem 
{
	typedef Classes::TCollectionItem inherited;
	
private:
	int FHeight;
	AnsiString FCaption;
	int FTag;
	Controls::TWinControl* FControl;
	void __fastcall SetCaption(const AnsiString Value);
	void __fastcall SetHeight(const int Value);
	void __fastcall SetControl(const Controls::TWinControl* Value);
	void __fastcall UpdateControlBounds(void);
	TAdvNavBarPanel* __fastcall GetOwnerPanel(void);
	
public:
	__fastcall virtual TAdvNavBarPanelSection(Classes::TCollection* Collection);
	__fastcall virtual ~TAdvNavBarPanelSection(void);
	
__published:
	__property AnsiString Caption = {read=FCaption, write=SetCaption};
	__property Controls::TWinControl* Control = {read=FControl, write=SetControl};
	__property int Height = {read=FHeight, write=SetHeight, default=48};
	__property int Tag = {read=FTag, write=FTag, default=0};
};


class DELPHICLASS TAdvNavBarPanelSections;
class PASCALIMPLEMENTATION TAdvNavBarPanelSections : public Classes::TCollection 
{
	typedef Classes::TCollection inherited;
	
public:
	TAdvNavBarPanelSection* operator[](int Index) { return Items[Index]; }
	
private:
	TAdvNavBarPanel* FOwner;
	HIDESBASE TAdvNavBarPanelSection* __fastcall GetItem(int Index);
	HIDESBASE void __fastcall SetItem(int Index, const TAdvNavBarPanelSection* Value);
	
protected:
	DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
	
public:
	__fastcall TAdvNavBarPanelSections(TAdvNavBarPanel* AOwner);
	HIDESBASE TAdvNavBarPanelSection* __fastcall Add(void);
	HIDESBASE TAdvNavBarPanelSection* __fastcall Insert(int Index);
	__property TAdvNavBarPanelSection* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
public:
	#pragma option push -w-inl
	/* TCollection.Destroy */ inline __fastcall virtual ~TAdvNavBarPanelSections(void) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvNavBar;
class DELPHICLASS TExchangeScroller;
class PASCALIMPLEMENTATION TExchangeScroller : 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 TExchangeScroller(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 ~TExchangeScroller(void) { }
	#pragma option pop
	
};


#pragma option push -b-
enum TAdvNavBarStyle { esOffice2003Blue, esOffice2003Silver, esOffice2003Olive, esOffice2003Classic, esOffice2007Luna, esOffice2007Obsidian, esWindowsXP, esWhidbey, esCustom, esOffice2007Silver };
#pragma option pop

typedef void __fastcall (__closure *TOnPanelActivate)(System::TObject* Sender, int OldActivePanel, int NewActivePanel, bool &Allow);

typedef void __fastcall (__closure *TSplitterMove)(System::TObject* Sender, int OldSplitterPosition, int NewSplitterPosition);

class PASCALIMPLEMENTATION TAdvNavBar : public Controls::TCustomControl 
{
	typedef Controls::TCustomControl inherited;
	
private:
	Classes::TList* FAdvNavBarPanel;
	Classes::TList* FDupAdvNavBarPanel;
	Classes::TList* FTempAdvNavBarPanel;
	int FSeparatorLine;
	int FCaptionTabHeight;
	Graphics::TColor FActiveColor;
	Graphics::TColor FActiveColorTo;
	Graphics::TColor FDefaultTabColor;
	Graphics::TColor FDefaultTabColorTo;
	Graphics::TColor FDefaultTextColor;
	int FActiveTabIndex;
	int FHoverTabIndex;
	int FDownTabIndex;
	Graphics::TColor FSplitterColor;
	Graphics::TColor FSplitterColorTo;
	Controls::TCursor FOldCursor;
	bool FMouseCaptured;
	bool FCheckForSplitterMove;
	int FDisplayCaptionTabsCount;
	Graphics::TColor FHoverTabColor;
	Graphics::TColor FHoverTabColorTo;
	Graphics::TColor FDownTabColorTo;
	Graphics::TColor FDownTabColor;
	Imglist::TCustomImageList* FImages;
	int FMinClientHeight;
	TGradientDirection FDefaultGradientDirection;
	int FFixedBtnMargin;
	TBottomIconAlign FBottomIconAlign;
	int FSplitterPosition;
	int FTempSplitterPos;
	bool FPropertiesLoaded;
	TExchangeScroller* FScroller;
	bool FScrollerHoverLeftBtn;
	bool FScrollerDownLeftBtn;
	bool FScrollerHoverRightBtn;
	bool FScrollerDownRightBtn;
	bool FPopupIndicatorHover;
	bool FPopupIndicatorDown;
	TAdvNavBarPanel* FActivePanel;
	bool FPropertiesCreated;
	Classes::TNotifyEvent FOnChange;
	Graphics::TColor FCaptionColor;
	Graphics::TColor FCaptionColorTo;
	Graphics::TFont* FCaptionFont;
	Graphics::TColor FBorderColor;
	TAdvNavBarStyle FStyle;
	Graphics::TColor FSectionColorTo;
	Graphics::TColor FSectionColor;
	TOnPanelActivate FOnTPanelActivate;
	TSplitterMove FOnSplitterMove;
	bool FPopupIndicator;
	Classes::TNotifyEvent FOnPopupMenuClick;
	AnsiString FOriginalHint;
	bool FSplitterInternalCall;
	bool FAutoThemeAdapt;
	TDefaultTabPosition FDefaultTabPosition;
	bool FInternalCall;
	Graphics::TColor FDownTextColor;
	Graphics::TColor FHoverTextColor;
	Imglist::TCustomImageList* FSmallImages;
	int FOldSplitterPosForSizeChange;
	bool FMouseDown;
	int FUpdateCount;
	bool FCollapsed;
	int FPreCollapsedWidth;
	bool FIsCollapsing;
	AnsiString FCollapsedCaption;
	bool FAllowCollaps;
	bool FHoverCollapsedCaption;
	bool FDownCollapsedCaption;
	bool FCollapsDown;
	int FCollapsedWidth;
	Graphics::TColor FHoverTabMirrorColor;
	Graphics::TColor FHoverTabMirrorColorTo;
	Graphics::TColor FDownTabMirrorColor;
	Graphics::TColor FDownTabMirrorColorTo;
	Graphics::TColor FActiveMirrorColor;
	Graphics::TColor FActiveMirrorColorTo;
	Graphics::TColor FDefaultTabMirrorColor;
	Graphics::TColor FDefaultTabMirrorColorTo;
	Graphics::TColor FCollapsedDownColor;
	Graphics::TColor FCollapsedDownColorTo;
	Graphics::TColor FCollapsedHoverColor;
	Graphics::TColor FCollapsedHoverColorTo;
	Classes::TNotifyEvent FOnCollapsedClick;
	Classes::TNotifyEvent FOnCollapsChange;
	int FCaptionHintIndex;
	bool FShowSplitter;
	bool FHoverCollapsBtn;
	bool FDoEraseBkg;
	void __fastcall SetCaptionTabHeight(int Value);
	void __fastcall ShowAdvNavBarPanel(int PanelIndex);
	void __fastcall SetAllAdvNavBarPanelPosition(void);
	void __fastcall DrawAllCaptionTabs(void);
	void __fastcall DrawCaptionTab(int Index);
	void __fastcall DrawFixedTab(void);
	void __fastcall DrawCaption(void);
	void __fastcall DrawAllFixedTabButtons(void);
	void __fastcall DrawFixedTabButton(int Index);
	void __fastcall DrawScrollButtons(void);
	void __fastcall DrawScrollBtnLeft(const Types::TRect &R, bool Hot, bool Down, bool ForceDraw = false);
	void __fastcall DrawScrollBtnRight(const Types::TRect &R, bool Hot, bool Down, bool ForceDraw = false);
	void __fastcall DrawCollapsButton(bool Hot, bool Down, bool Collaps);
	bool __fastcall PtInCollapsButton(int X, int Y);
	void __fastcall DrawPopupIndicator(void);
	void __fastcall RefreshCaptionTabOrButton(int index);
	void __fastcall DrawSplitter(void);
	void __fastcall SetActiveColor(const Graphics::TColor Value);
	void __fastcall SetActiveColorTo(const Graphics::TColor Value);
	void __fastcall SetDefaultTabColor(const Graphics::TColor Value);
	void __fastcall SetDefaultTabColorTo(const Graphics::TColor Value);
	void __fastcall SetDefaultTextColor(const Graphics::TColor Value);
	void __fastcall SetActiveTabIndex(const int Value);
	int __fastcall GetActiveTabIndex(void);
	Types::TRect __fastcall GetSplitterRect();
	Types::TRect __fastcall GetCaptionRect();
	bool __fastcall PtOnSplitter(const Types::TPoint &P);
	void __fastcall UpdateScroller(void);
	bool __fastcall MoveSplitterTo(int Y);
	int __fastcall MoveSplitterInTabs(int TabCount);
	Types::TRect __fastcall GetFixedTabRect();
	Types::TRect __fastcall FixedTabButtonRect(int index);
	int __fastcall FixedBtnMinIndex(void);
	int __fastcall FixedBtnMaxIndex(void);
	int __fastcall GetFixedTabButtonCount(void);
	int __fastcall GetFixedTabButtonMaxCount(void);
	bool __fastcall PtOnScrollLeftBtn(int X, int Y);
	bool __fastcall PtOnScrollRightBtn(int X, int Y);
	bool __fastcall PtOnPopupIndicator(int X, int Y);
	void __fastcall ShowScrollButtons(void);
	void __fastcall HideScrollButtons(void);
	void __fastcall ScrollLeftBtnClick(void);
	void __fastcall ScrollRightBtnClick(void);
	void __fastcall SetHoverTabColor(const Graphics::TColor Value);
	void __fastcall SetHoverTabColorTo(const Graphics::TColor Value);
	void __fastcall SetDownTabColor(const Graphics::TColor Value);
	void __fastcall SetDownTabColorTo(const Graphics::TColor Value);
	void __fastcall SetImages(const Imglist::TCustomImageList* Value);
	void __fastcall SetMinClientHeight(const int Value);
	void __fastcall SetDefaultGradientDirection(const TGradientDirection Value);
	void __fastcall SetBottomIconAlign(const TBottomIconAlign Value);
	void __fastcall SetSplitterPosition(const int Value);
	void __fastcall SetActivePanel(const TAdvNavBarPanel* Value);
	void __fastcall SetCaptionColor(const Graphics::TColor Value);
	void __fastcall SetCaptionColorTo(const Graphics::TColor Value);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -