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

📄 advpanel.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) 'Advpanel.pas' rev: 11.00

#ifndef AdvpanelHPP
#define AdvpanelHPP

#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 <Advstyleif.hpp>	// Pascal unit
#include <Advimage.hpp>	// Pascal unit
#include <Apxpvs.hpp>	// Pascal unit
#include <Inifiles.hpp>	// Pascal unit
#include <Registry.hpp>	// Pascal unit
#include <Picturecontainer.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit

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

namespace Advpanel
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TBackGroundPosition { bpTopLeft, bpTopRight, bpBottomLeft, bpBottomRight, bpTiled, bpStretched, bpCenter };
#pragma option pop

#pragma option push -b-
enum TTextVAlignment { tvaTop, tvaCenter, tvaBottom };
#pragma option pop

typedef void __fastcall (__closure *TAnchorEvent)(System::TObject* Sender, AnsiString Anchor);

typedef void __fastcall (__closure *TPaintEvent)(System::TObject* Sender, Graphics::TCanvas* ACanvas, const Types::TRect &ARect);

typedef void __fastcall (__closure *TAnchorHintEvent)(System::TObject* Sender, AnsiString &Anchor);

#pragma option push -b-
enum TPanelPositionLocation { clRegistry, clInifile };
#pragma option pop

class DELPHICLASS TPanelPosition;
class PASCALIMPLEMENTATION TPanelPosition : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	bool FSave;
	AnsiString FKey;
	AnsiString FSection;
	TPanelPositionLocation FLocation;
	Classes::TComponent* FOwner;
	
public:
	__fastcall TPanelPosition(Classes::TComponent* AOwner);
	__fastcall virtual ~TPanelPosition(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	
__published:
	__property bool Save = {read=FSave, write=FSave, default=0};
	__property AnsiString Key = {read=FKey, write=FKey};
	__property AnsiString Section = {read=FSection, write=FSection};
	__property TPanelPositionLocation Location = {read=FLocation, write=FLocation, default=0};
};


#pragma option push -b-
enum TShadeType { stNormal, stNoise, stDiagShade, stHShade, stVShade, stHBump, stVBump, stSoftBump, stHardBump, stLMetal, stRMetal, stIRadial, stORadial, stHShadeInv, stVShadeInv, stXPCaption, stBitmap, stBitmapRStretch, stBitmapLStretch };
#pragma option pop

#pragma option push -b-
enum TCaptionShape { csRectangle, csRounded, csSemiRounded };
#pragma option pop

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

#pragma option push -b-
enum TCaptionButtonPosition { cbpRight, cbpLeft };
#pragma option pop

#pragma option push -b-
enum TCaptionPosition { cpTop, cpLeft };
#pragma option pop

class DELPHICLASS TPanelCaption;
class PASCALIMPLEMENTATION TPanelCaption : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	int FHeight;
	AnsiString FText;
	Graphics::TColor FColor;
	Graphics::TFont* FFont;
	bool FVisible;
	bool FCloseButton;
	bool FMinMaxButton;
	Graphics::TColor FMinMaxButtonColor;
	Graphics::TColor FCloseButtonColor;
	Graphics::TBitmap* FMinGlyph;
	Graphics::TBitmap* FCloseMinGlyph;
	Graphics::TBitmap* FCloseMaxGlyph;
	Graphics::TBitmap* FMaxGlyph;
	Graphics::TColor FCloseColor;
	int FShadeLight;
	Byte FShadeGrain;
	TShadeType FShadeType;
	TCaptionShape FShape;
	bool FFlat;
	Graphics::TBitmap* FBackground;
	int FIndent;
	int FTop;
	TCaptionButtonPosition FbuttonPosition;
	Graphics::TColor FColorTo;
	Classes::TNotifyEvent FOnChange;
	Classes::TNotifyEvent FOnShadeChange;
	Classes::TNotifyEvent FOnStateChange;
	TCaptionPosition FPosition;
	bool FMinMaxCaption;
	Graphics::TColor FCloseButtonHoverColor;
	Graphics::TColor FMinMaxButtonHoverColor;
	Classes::TNotifyEvent FOnPositionChange;
	TGradientDirection FGradientDirection;
	void __fastcall SetColor(const Graphics::TColor Value);
	void __fastcall SetFont(const Graphics::TFont* Value);
	void __fastcall SetHeight(const int Value);
	void __fastcall SetText(const AnsiString Value);
	void __fastcall SetVisible(const bool Value);
	void __fastcall SetCloseButton(const bool Value);
	void __fastcall SetMinMaxButton(const bool Value);
	void __fastcall SetCloseButtonColor(const Graphics::TColor Value);
	void __fastcall SetMinMaxButtonColor(const Graphics::TColor Value);
	void __fastcall FontChanged(System::TObject* Sender);
	void __fastcall SetCloseColor(const Graphics::TColor Value);
	void __fastcall SetMaxGlyph(const Graphics::TBitmap* Value);
	void __fastcall SetMinGlyph(const Graphics::TBitmap* Value);
	void __fastcall SetCloseMaxGlyph(const Graphics::TBitmap* Value);
	void __fastcall SetCloseMinGlyph(const Graphics::TBitmap* Value);
	void __fastcall SetShadeLight(const int Value);
	void __fastcall SetShadeGrain(const Byte Value);
	void __fastcall SetShadeType(const TShadeType Value);
	void __fastcall SetCaptionShape(const TCaptionShape Value);
	void __fastcall SetFlat(const bool Value);
	void __fastcall SetBackground(const Graphics::TBitmap* Value);
	void __fastcall SetIndent(const int Value);
	void __fastcall SetTopIndent(const int Value);
	void __fastcall SetColorTo(const Graphics::TColor Value);
	void __fastcall Changed(void);
	void __fastcall StateChanged(void);
	void __fastcall ShadeChanged(void);
	void __fastcall SetPosition(const TCaptionPosition Value);
	void __fastcall SetMinMaxCaption(const bool Value);
	void __fastcall SetGradientDirection(const TGradientDirection Value);
	
public:
	__fastcall TPanelCaption(void);
	__fastcall virtual ~TPanelCaption(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	
__published:
	__property Graphics::TBitmap* Background = {read=FBackground, write=SetBackground};
	__property TCaptionButtonPosition ButtonPosition = {read=FbuttonPosition, write=FbuttonPosition, default=0};
	__property Graphics::TColor Color = {read=FColor, write=SetColor, default=536870911};
	__property Graphics::TColor ColorTo = {read=FColorTo, write=SetColorTo, default=-16777203};
	__property Graphics::TColor CloseColor = {read=FCloseColor, write=SetCloseColor, default=-16777201};
	__property bool CloseButton = {read=FCloseButton, write=SetCloseButton, default=0};
	__property Graphics::TColor CloseButtonColor = {read=FCloseButtonColor, write=SetCloseButtonColor, default=16777215};
	__property Graphics::TColor CloseButtonHoverColor = {read=FCloseButtonHoverColor, write=FCloseButtonHoverColor, default=536870911};
	__property Graphics::TBitmap* CloseMinGlyph = {read=FCloseMinGlyph, write=SetCloseMinGlyph};
	__property Graphics::TBitmap* CloseMaxGlyph = {read=FCloseMaxGlyph, write=SetCloseMaxGlyph};
	__property bool Flat = {read=FFlat, write=SetFlat, default=0};
	__property Graphics::TFont* Font = {read=FFont, write=SetFont};
	__property TGradientDirection GradientDirection = {read=FGradientDirection, write=SetGradientDirection, default=1};
	__property int Height = {read=FHeight, write=SetHeight, default=20};
	__property int Indent = {read=FIndent, write=SetIndent, default=0};
	__property Graphics::TBitmap* MaxGlyph = {read=FMaxGlyph, write=SetMaxGlyph};
	__property Graphics::TBitmap* MinGlyph = {read=FMinGlyph, write=SetMinGlyph};
	__property bool MinMaxButton = {read=FMinMaxButton, write=SetMinMaxButton, default=0};
	__property Graphics::TColor MinMaxButtonColor = {read=FMinMaxButtonColor, write=SetMinMaxButtonColor, default=16777215};
	__property Graphics::TColor MinMaxButtonHoverColor = {read=FMinMaxButtonHoverColor, write=FMinMaxButtonHoverColor, default=536870911};
	__property bool MinMaxCaption = {read=FMinMaxCaption, write=SetMinMaxCaption, default=0};
	__property TCaptionPosition Position = {read=FPosition, write=SetPosition, default=0};
	__property int ShadeLight = {read=FShadeLight, write=SetShadeLight, default=200};
	__property Byte ShadeGrain = {read=FShadeGrain, write=SetShadeGrain, default=32};
	__property TShadeType ShadeType = {read=FShadeType, write=SetShadeType, default=0};
	__property TCaptionShape Shape = {read=FShape, write=SetCaptionShape, default=0};
	__property AnsiString Text = {read=FText, write=SetText};
	__property int TopIndent = {read=FTop, write=SetTopIndent, default=0};
	__property bool Visible = {read=FVisible, write=SetVisible, default=0};
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	__property Classes::TNotifyEvent OnStateChange = {read=FOnStateChange, write=FOnStateChange};
	__property Classes::TNotifyEvent OnShadeChange = {read=FOnShadeChange, write=FOnShadeChange};
	__property Classes::TNotifyEvent OnPositionChange = {read=FOnPositionChange, write=FOnPositionChange};
};


class DELPHICLASS TPanelStatusBar;
class PASCALIMPLEMENTATION TPanelStatusBar : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	int FImageIndex;
	AnsiString FText;
	Graphics::TColor FColor;
	Graphics::TColor FColorTo;
	TGradientDirection FGradientDirection;
	bool FVisible;
	int FHeight;
	Classes::TNotifyEvent FOnChange;
	bool FBevelInner;
	Graphics::TFont* FFont;
	Forms::TFormBorderStyle FBorderStyle;
	Graphics::TColor FBorderColor;
	void __fastcall SetColor(const Graphics::TColor Value);
	void __fastcall SetColorTo(const Graphics::TColor Value);
	void __fastcall SetGradientDirection(const TGradientDirection Value);
	void __fastcall SetImageIndex(const int Value);
	void __fastcall SetText(const AnsiString Value);
	void __fastcall SetHeight(const int Value);
	void __fastcall SetVisible(const bool Value);
	void __fastcall SetBevelInner(const bool Value);
	void __fastcall FontChanged(System::TObject* Sender);
	void __fastcall SetFont(const Graphics::TFont* Value);
	void __fastcall SetBorderColor(const Graphics::TColor Value);
	void __fastcall SetBorderStyle(const Forms::TBorderStyle Value);
	
protected:
	void __fastcall Changed(void);
	
public:
	__fastcall TPanelStatusBar(void);
	__fastcall virtual ~TPanelStatusBar(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	
__published:
	__property bool BevelInner = {read=FBevelInner, write=SetBevelInner, default=0};
	__property Graphics::TColor BorderColor = {read=FBorderColor, write=SetBorderColor, default=0};
	__property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=0};
	__property int ImageIndex = {read=FImageIndex, write=SetImageIndex, default=-1};
	__property Graphics::TFont* Font = {read=FFont, write=SetFont};
	__property AnsiString Text = {read=FText, write=SetText};
	__property Graphics::TColor Color = {read=FColor, write=SetColor, default=-16777201};
	__property Graphics::TColor ColorTo = {read=FColorTo, write=SetColorTo, default=536870911};
	__property TGradientDirection GradientDirection = {read=FGradientDirection, write=SetGradientDirection, default=1};
	__property int Height = {read=FHeight, write=SetHeight, default=18};
	__property bool Visible = {read=FVisible, write=SetVisible, default=0};
};


class DELPHICLASS TAutoSize;
class DELPHICLASS TCustomAdvPanel;
class DELPHICLASS TAdvPanelStyler;
class DELPHICLASS TAdvPanelSettings;
class PASCALIMPLEMENTATION TAdvPanelSettings : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	bool FFixedHeight;
	bool FCanMove;
	bool FFixedWidth;
	bool FHover;
	bool FAutoHideChildren;
	bool FAnchorHint;
	bool FFixedLeft;
	bool FCanSize;
	bool FShowHint;
	bool FFixedTop;
	bool FCollaps;
	bool FShowMoveCursor;
	int FCollapsDelay;
	int FBevelWidth;
	int FCollapsSteps;
	int FHeight;
	int FShadowOffset;
	AnsiString FText;
	AnsiString FHint;
	Controls::TBevelCut FBevelOuter;
	Controls::TBevelCut FBevelInner;
	Graphics::TColor FHoverColor;
	Graphics::TColor FCollapsColor;
	Graphics::TColor FBorderColor;
	Graphics::TColor FHoverFontColor;
	Graphics::TColor FShadowColor;
	Graphics::TColor FColor;
	Graphics::TColor FColorTo;
	Graphics::TColor FColorMirror;
	Graphics::TColor FColorMirrorTo;
	Graphics::TColor FURLColor;
	Graphics::TFont* FFont;
	TPanelCaption* FCaption;
	TPanelPosition* FPosition;
	TTextVAlignment FTextVAlign;
	Forms::TFormBorderStyle FBorderStyle;
	Controls::TCursor FCursor;
	bool FBorderShadow;
	int FIndent;
	int FTopIndent;
	Classes::TNotifyEvent FOnChange;
	int FWidth;
	int FUpdateCount;
	int FBorderWidth;
	TPanelStatusBar* FStatusBar;
	void __fastcall SetBorderColor(const Graphics::TColor Value);
	void __fastcall SetCaption(const TPanelCaption* Value);
	void __fastcall SetCollaps(const bool Value);
	void __fastcall SetFont(const Graphics::TFont* Value);
	void __fastcall SetBorderShadow(const bool Value);
	void __fastcall CaptionChanged(System::TObject* Sender);
	void __fastcall Changed(void);

⌨️ 快捷键说明

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