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

📄 toolpanels.hpp

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

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

#ifndef ToolpanelsHPP
#define ToolpanelsHPP

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

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

namespace Toolpanels
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TPanelState { psClosed, psOpened, psDocked };
#pragma option pop

#pragma option push -b-
enum TGradientDirection { gdHorizontal, gdVertical };
#pragma option pop

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


#pragma option push -b-
enum TPanelPosition { ppLeft, ppRight, ppTop, ppBottom };
#pragma option pop

class DELPHICLASS TToolPanelForm;
class PASCALIMPLEMENTATION TToolPanelForm : public Forms::TForm 
{
	typedef Forms::TForm inherited;
	
private:
	HIDESBASE MESSAGE void __fastcall WMNCHitTest(Messages::TWMNCHitTest &Msg);
	
public:
	__fastcall virtual TToolPanelForm(Classes::TComponent* AOwner);
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
public:
	#pragma option push -w-inl
	/* TCustomForm.CreateNew */ inline __fastcall virtual TToolPanelForm(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(AOwner, Dummy) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TToolPanelForm(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TToolPanelForm(HWND ParentWindow) : Forms::TForm(ParentWindow) { }
	#pragma option pop
	
};


#pragma option push -b-
enum TAutoOpenCloseSpeed { aocSlow, aocMedium, aocFast, aocVerySlow, aocVeryFast };
#pragma option pop

#pragma option push -b-
enum TSlideSpeed { ssSlow, ssMedium, ssFast, ssInstant };
#pragma option pop

typedef void __fastcall (__closure *TTabEvent)(System::TObject* Sender, int Index, TAdvToolPanel* APanel);

class DELPHICLASS TPanelPersistence;
#pragma option push -b-
enum TPanelPersistLocation { pplINIFile, pplRegistry };
#pragma option pop

class PASCALIMPLEMENTATION TPanelPersistence : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	bool FAutoSave;
	bool FAutoLoad;
	AnsiString FINIFile;
	TPanelPersistLocation FLocation;
	AnsiString FRegistryKey;
	
__published:
	__property bool AutoLoad = {read=FAutoLoad, write=FAutoLoad, default=0};
	__property bool AutoSave = {read=FAutoSave, write=FAutoSave, default=0};
	__property AnsiString INIFile = {read=FINIFile, write=FINIFile};
	__property AnsiString RegistryUserKey = {read=FRegistryKey, write=FRegistryKey};
	__property TPanelPersistLocation Location = {read=FLocation, write=FLocation, default=0};
public:
	#pragma option push -w-inl
	/* TPersistent.Destroy */ inline __fastcall virtual ~TPanelPersistence(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TPanelPersistence(void) : Classes::TPersistent() { }
	#pragma option pop
	
};


typedef void __fastcall (__closure *TAllowTabEvent)(System::TObject* Sender, int Index, TAdvToolPanel* APanel, bool &Allow);

class DELPHICLASS TToolPanelGlyphs;
class PASCALIMPLEMENTATION TToolPanelGlyphs : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	Graphics::TBitmap* FCloseGlyphHot;
	Graphics::TBitmap* FLockGlyphDown;
	Graphics::TBitmap* FLockGlyphHot;
	Graphics::TBitmap* FLockGlyphNormal;
	Graphics::TBitmap* FCloseGlyphDown;
	Graphics::TBitmap* FCloseGlyphNormal;
	Classes::TNotifyEvent FOnChange;
	Graphics::TBitmap* FUnLockGlyphDown;
	Graphics::TBitmap* FUnLockGlyphHot;
	Graphics::TBitmap* FUnLockGlyphNormal;
	void __fastcall SetCloseGlyphNormal(const Graphics::TBitmap* Value);
	void __fastcall SetCloseGlyphDown(const Graphics::TBitmap* Value);
	void __fastcall SetCloseGlyphHot(const Graphics::TBitmap* Value);
	void __fastcall SetLockGlyphDown(const Graphics::TBitmap* Value);
	void __fastcall SetLockGlyphHot(const Graphics::TBitmap* Value);
	void __fastcall SetLockGlyphNormal(const Graphics::TBitmap* Value);
	void __fastcall SetUnLockGlyphDown(const Graphics::TBitmap* Value);
	void __fastcall SetUnLockGlyphHot(const Graphics::TBitmap* Value);
	void __fastcall SetUnLockGlyphNormal(const Graphics::TBitmap* Value);
	
protected:
	void __fastcall Changed(void);
	
public:
	__fastcall TToolPanelGlyphs(void);
	__fastcall virtual ~TToolPanelGlyphs(void);
	
__published:
	__property Graphics::TBitmap* CloseGlyphNormal = {read=FCloseGlyphNormal, write=SetCloseGlyphNormal};
	__property Graphics::TBitmap* CloseGlyphDown = {read=FCloseGlyphDown, write=SetCloseGlyphDown};
	__property Graphics::TBitmap* CloseGlyphHot = {read=FCloseGlyphHot, write=SetCloseGlyphHot};
	__property Graphics::TBitmap* LockGlyphNormal = {read=FLockGlyphNormal, write=SetLockGlyphNormal};
	__property Graphics::TBitmap* LockGlyphDown = {read=FLockGlyphDown, write=SetLockGlyphDown};
	__property Graphics::TBitmap* LockGlyphHot = {read=FLockGlyphHot, write=SetLockGlyphHot};
	__property Graphics::TBitmap* UnLockGlyphNormal = {read=FUnLockGlyphNormal, write=SetUnLockGlyphNormal};
	__property Graphics::TBitmap* UnLockGlyphDown = {read=FUnLockGlyphDown, write=SetUnLockGlyphDown};
	__property Graphics::TBitmap* UnLockGlyphHot = {read=FUnLockGlyphHot, write=SetUnLockGlyphHot};
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
};


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

class PASCALIMPLEMENTATION TAdvToolPanelTab : public Extctrls::TCustomPanel 
{
	typedef Extctrls::TCustomPanel inherited;
	
private:
	TToolPanels* FPanels;
	Controls::TImageList* FImages;
	bool FRollInBusy;
	bool FRollInOut;
	int FRollOutPanel;
	int FRollInCandidate;
	int FTimerID;
	int FTimerCount;
	int FTimerRollIn;
	bool FTimerEnable;
	TPanelPosition FPosition;
	TToolPanelForm* FPanelForm;
	Classes::TWndMethod FFormWndProc;
	int FDesignViewPanel;
	Graphics::TColor FTabColor;
	#pragma pack(push,1)
	Types::TPoint FLastMousePos;
	#pragma pack(pop)
	bool FAutoDock;
	TAutoOpenCloseSpeed FAutoOpenCloseSpeed;
	TSlideSpeed FSlideSpeed;
	int FPaintOffset;
	Graphics::TBitmap* FUpDown;
	Graphics::TColor FColorTo;
	Graphics::TColor FTabColorTo;
	Graphics::TColor FTabBorderColor;
	int FHoverPanel;
	int FMousePanel;
	Graphics::TColor FTabHoverColor;
	Graphics::TColor FTabHoverColorTo;
	int FTabWidth;
	Graphics::TBitmap* FTabGlyph;
	TTabEvent FOnTabLeave;
	TTabEvent FOnTabEnter;
	TTabEvent FOnTabRightClick;
	TTabEvent FOnTabLeftClick;
	TTabEvent FOnTabSlideIn;
	TTabEvent FOnTabSlideInDone;
	TTabEvent FOnTabSlideOut;
	TTabEvent FOnTabSlideOutDone;
	TPanelPersistence* FPersist;
	TTabEvent FOnTabHide;
	TAllowTabEvent FOnAllowTabHide;
	TToolPanelGlyphs* FPanelGlyphs;
	bool FAutoThemeAdapt;
	TToolPanelStyle FStyle;
	bool FMouseInControl;
	bool FAutoOpenOnMouseEnter;
	int __fastcall GetPanelFromTab(int x, int y);
	int __fastcall GetTabSize(void);
	MESSAGE void __fastcall WMTimer(Messages::TWMTimer &Message);
	HIDESBASE MESSAGE void __fastcall WMCommand(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMEraseBkGnd(Messages::TMessage &Message);
	void __fastcall SetPosition(const TPanelPosition Value);
	void __fastcall SubclassProc(Messages::TMessage &Msg);
	void __fastcall SetTabColor(const Graphics::TColor Value);
	void __fastcall SetAutoDock(const bool Value);
	void __fastcall SetColorTo(const Graphics::TColor Value);
	void __fastcall SetTabColorTo(const Graphics::TColor Value);
	void __fastcall SetTabBorderColor(const Graphics::TColor Value);
	void __fastcall SetTabWidth(const int Value);
	void __fastcall SetTabGlyph(const Graphics::TBitmap* Value);
	void __fastcall ThemeAdapt(void);
	void __fastcall SetStyle(const TToolPanelStyle Value);
	void __fastcall SetComponentStyle(Advstyleif::TTMSStyle AStyle);
	
protected:
	HIDESBASE MESSAGE void __fastcall CMDesignHitTest(Messages::TWMMouse &Msg);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
	virtual void __fastcall Paint(void);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation AOperation);
	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);
	void __fastcall LockChange(TAdvToolPanel* APanel);
	void __fastcall RollInOut(int Index);
	virtual void __fastcall WndProc(Messages::TMessage &Msg);
	DYNAMIC void __fastcall Resize(void);
	void __fastcall ResetTimer(void);
	void __fastcall EnableTimer(bool Enabled);
	void __fastcall INISaveState(void);
	void __fastcall REGSaveState(void);
	bool __fastcall INIRestoreState(void);
	bool __fastcall REGRestoreState(void);
	void __fastcall IRollIn(TAdvToolPanel* APanel);
	void __fastcall IRollOut(TAdvToolPanel* APanel);
	AnsiString __fastcall GetVersion();
	void __fastcall SetVersion(const AnsiString Value);
	int __fastcall GetVersionNr(void);
	
public:

⌨️ 快捷键说明

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