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

📄 advtoolbar.hpp

📁 Delphi的Office 2007风格界面控件
💻 HPP
📖 第 1 页 / 共 5 页
字号:
	__property int ImageX = {read=FImageX, write=SetImageX, default=0};
	__property int ImageY = {read=FImageY, write=SetImageY, default=0};
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
public:
	#pragma option push -w-inl
	/* TPersistent.Destroy */ inline __fastcall virtual ~TAdvToolBarButtonDrawPosition(void) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvCustomToolBarButton;
class PASCALIMPLEMENTATION TAdvCustomToolBarButton : public TAdvCustomToolBarControl 
{
	typedef TAdvCustomToolBarControl inherited;
	
private:
	int FGroupIndex;
	Graphics::TBitmap* FGlyph;
	bool FDown;
	bool FAllowAllUp;
	int FSpacing;
	bool FTransparent;
	int FOffSet;
	bool FFlat;
	bool FMouseInControl;
	bool FHot;
	bool FMenuSel;
	Graphics::TBitmap* FGlyphDisabled;
	Graphics::TBitmap* FGlyphHot;
	Graphics::TBitmap* FGlyphDown;
	Graphics::TBitmap* FGlyphChecked;
	Graphics::TBitmap* FGlyphShade;
	bool FShaded;
	Classes::TNotifyEvent FOnMouseLeave;
	Classes::TNotifyEvent FOnMouseEnter;
	TAdvToolButtonStyle FStyle;
	bool FDropDownButton;
	bool FAutoThemeAdapt;
	Classes::TNotifyEvent FOnDropDown;
	Advmenus::TAdvPopupMenu* FDropDownMenu;
	bool FRounded;
	bool FParentStyler;
	TAdvButtonState FState;
	TGlyphPosition FGlyphPosition;
	bool FMouseDownInControl;
	int FDropDownSectWidth;
	bool FGrouped;
	Menus::TMenuItem* FMenuItem;
	int FImageIndex;
	bool FShadedForGlyph;
	bool FDragging;
	TButtonAppearance* FAppearance;
	bool FShowCaption;
	bool FPropHot;
	Graphics::TPicture* FPicture;
	Graphics::TPicture* FPictureDisabled;
	Extctrls::TTimer* FUnHotTimer;
	TAdvToolBarButtonDrawPosition* FDrawPosition;
	bool FInitialDown;
	int FInternalTag;
	Advhintinfo::TAdvHintInfo* FOfficeHint;
	bool FDropDownSplit;
	bool FForceImageIndex;
	bool FAutoSize;
	void __fastcall UnHotTimerOnTime(System::TObject* Sender);
	void __fastcall GlyphChanged(System::TObject* Sender);
	void __fastcall UpdateExclusive(void);
	void __fastcall SetSpacing(int Value);
	void __fastcall UpdateTracking(void);
	void __fastcall DoDropDown(void);
	void __fastcall PopupBtnDown(void);
	void __fastcall ButtonDown(void);
	HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
	HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
	MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
	HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
	MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
	MESSAGE void __fastcall CMSysColorChange(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
	MESSAGE void __fastcall CMButtonPressed(Messages::TMessage &Message);
	void __fastcall SetGlyph(Graphics::TBitmap* Value);
	void __fastcall SetGlyphDisabled(const Graphics::TBitmap* Value);
	void __fastcall SetGlyphDown(const Graphics::TBitmap* Value);
	void __fastcall SetGlyphHot(const Graphics::TBitmap* Value);
	void __fastcall GenerateShade(void);
	void __fastcall SetShaded(const bool Value);
	void __fastcall SetFlat(bool Value);
	void __fastcall SetDown(bool Value);
	void __fastcall SetAllowAllUp(bool Value);
	void __fastcall SetGroupIndex(int Value);
	void __fastcall SetStyle(const TAdvToolButtonStyle Value);
	void __fastcall SetDropDownButton(const bool Value);
	void __fastcall SetGlyphPosition(const TGlyphPosition Value);
	void __fastcall SetParentStyler(const bool Value);
	void __fastcall SetState(const TAdvButtonState Value);
	void __fastcall SetTransparent(const bool Value);
	void __fastcall SetRounded(const bool Value);
	void __fastcall SetGlyphChecked(const Graphics::TBitmap* Value);
	int __fastcall GetIndex(void);
	void __fastcall SetGrouped(const bool Value);
	void __fastcall SetMenuItem(const Menus::TMenuItem* Value);
	void __fastcall SetImageIndex(const int Value);
	void __fastcall SetAppearance(const TButtonAppearance* Value);
	void __fastcall SetShowCaption(const bool Value);
	bool __fastcall GetAutoSize(void);
	AnsiString __fastcall GetVersion();
	void __fastcall SetVersion(const AnsiString Value);
	bool __fastcall GetHot(void);
	void __fastcall SetHot(const bool Value);
	void __fastcall SetPicture(const Graphics::TPicture* Value);
	void __fastcall SetPictureDisabled(const Graphics::TPicture* Value);
	void __fastcall SetDrawPosition(const TAdvToolBarButtonDrawPosition* Value);
	void __fastcall PositionChanged(System::TObject* Sender);
	void __fastcall SetOfficeHint(const Advhintinfo::TAdvHintInfo* Value);
	void __fastcall SetForceImageIndex(const bool Value);
	
protected:
	bool FToolBarCreated;
	virtual void __fastcall SetParent(Controls::TWinControl* AParent);
	virtual void __fastcall Loaded(void);
	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);
	DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int 
		Y);
	virtual void __fastcall DrawGlyphAndCaption(Graphics::TCanvas* ACanvas, const Windows::TRect &R, Graphics::TColor 
		TxtClr, Graphics::TBitmap* aGlyph);
	virtual void __fastcall DrawButton(Graphics::TCanvas* ACanvas);
	virtual void __fastcall Paint(void);
	__property bool MouseInControl = {read=FMouseInControl, nodefault};
	virtual void __fastcall WndProc(Messages::TMessage &Message);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation AOperation
		);
	HIDESBASE void __fastcall SetAutoSize(bool Value);
	DYNAMIC void __fastcall AdjustSize(void);
	void __fastcall OnAppearanceChange(System::TObject* Sender);
	void __fastcall ThemeAdapt(void);
	void __fastcall SetAutoThemeAdapt(const bool Value);
	void __fastcall InvalidateMe(void);
	void __fastcall OnDropDownHide(void);
	virtual bool __fastcall IsMenuButton(void);
	__property TAdvButtonState State = {read=FState, write=SetState, nodefault};
	__property bool ForceImageIndex = {read=FForceImageIndex, write=SetForceImageIndex, nodefault};
	__property Action ;
	__property bool AllowAllUp = {read=FAllowAllUp, write=SetAllowAllUp, default=0};
	__property Anchors ;
	__property bool AutoSize = {read=GetAutoSize, write=SetAutoSize, default=1};
	__property bool AutoThemeAdapt = {read=FAutoThemeAdapt, write=SetAutoThemeAdapt, nodefault};
	__property BiDiMode ;
	__property TButtonAppearance* Appearance = {read=FAppearance, write=SetAppearance};
	__property TGlyphPosition GlyphPosition = {read=FGlyphPosition, write=SetGlyphPosition, default=0};
		
	__property Constraints ;
	__property TAdvToolBarButtonDrawPosition* DrawPosition = {read=FDrawPosition, write=SetDrawPosition
		};
	__property bool Grouped = {read=FGrouped, write=SetGrouped, default=0};
	__property int GroupIndex = {read=FGroupIndex, write=SetGroupIndex, default=0};
	__property bool Down = {read=FDown, write=SetDown, default=0};
	__property bool DropDownSplit = {read=FDropDownSplit, write=FDropDownSplit, default=1};
	__property bool DropDownButton = {read=FDropDownButton, write=SetDropDownButton, default=0};
	__property Advmenus::TAdvPopupMenu* DropDownMenu = {read=FDropDownMenu, write=FDropDownMenu};
	__property Caption ;
	__property Enabled ;
	__property bool Flat = {read=FFlat, write=SetFlat, default=1};
	__property Font ;
	__property Graphics::TBitmap* Glyph = {read=FGlyph, write=SetGlyph};
	__property Graphics::TBitmap* GlyphHot = {read=FGlyphHot, write=SetGlyphHot};
	__property Graphics::TBitmap* GlyphDown = {read=FGlyphDown, write=SetGlyphDown};
	__property Graphics::TBitmap* GlyphDisabled = {read=FGlyphDisabled, write=SetGlyphDisabled};
	__property Graphics::TBitmap* GlyphChecked = {read=FGlyphChecked, write=SetGlyphChecked};
	__property bool Hot = {read=GetHot, write=SetHot, default=0};
	__property int ImageIndex = {read=FImageIndex, write=SetImageIndex, default=-1};
	__property Menus::TMenuItem* MenuItem = {read=FMenuItem, write=SetMenuItem};
	__property Graphics::TPicture* Picture = {read=FPicture, write=SetPicture};
	__property Graphics::TPicture* PictureDisabled = {read=FPictureDisabled, write=SetPictureDisabled};
		
	__property ParentFont ;
	__property ParentShowHint ;
	__property ParentBiDiMode ;
	__property PopupMenu ;
	__property bool ParentStyler = {read=FParentStyler, write=SetParentStyler, default=1};
	__property bool Rounded = {read=FRounded, write=SetRounded, default=0};
	__property bool Shaded = {read=FShaded, write=SetShaded, default=1};
	__property bool ShowCaption = {read=FShowCaption, write=SetShowCaption, default=0};
	__property ShowHint ;
	__property Advhintinfo::TAdvHintInfo* OfficeHint = {read=FOfficeHint, write=SetOfficeHint};
	__property int Spacing = {read=FSpacing, write=SetSpacing, default=4};
	__property TAdvToolButtonStyle Style = {read=FStyle, write=SetStyle, default=0};
	__property bool Transparent = {read=FTransparent, write=SetTransparent, nodefault};
	__property AnsiString Version = {read=GetVersion, write=SetVersion};
	__property Visible ;
	__property OnClick ;
	__property OnDblClick ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property Classes::TNotifyEvent OnMouseEnter = {read=FOnMouseEnter, write=FOnMouseEnter};
	__property Classes::TNotifyEvent OnMouseLeave = {read=FOnMouseLeave, write=FOnMouseLeave};
	__property Classes::TNotifyEvent OnDropDown = {read=FOnDropDown, write=FOnDropDown};
	
public:
	__fastcall virtual TAdvCustomToolBarButton(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvCustomToolBarButton(void);
	DYNAMIC void __fastcall Click(void);
	DYNAMIC bool __fastcall CheckMenuDropdown(void);
	virtual void __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);
	__property int Index = {read=GetIndex, nodefault};
	virtual int __fastcall GetVersionNr(void);
};


class DELPHICLASS TAdvToolBarButton;
class PASCALIMPLEMENTATION TAdvToolBarButton : public TAdvCustomToolBarButton 
{
	typedef TAdvCustomToolBarButton inherited;
	
__published:
	__property Action ;
	__property AllowAllUp ;
	__property AutoSize ;
	__property Appearance ;
	__property GlyphPosition ;
	__property Constraints ;
	__property GroupIndex ;
	__property Down ;
	__property DropDownButton ;
	__property DropDownMenu ;
	__property DropDownSplit ;
	__property Caption ;
	__property Enabled ;
	__property DrawPosition ;
	__property Font ;
	__property Glyph ;
	__property GlyphHot ;
	__property GlyphDown ;
	__property GlyphDisabled ;
	__property GlyphChecked ;
	__property ImageIndex ;
	__property Picture ;
	__property PictureDisabled ;
	__property ParentFont ;
	__property ParentShowHint ;
	__property ParentBiDiMode ;
	__property PopupMenu ;
	__property ParentStyler ;
	__property Position ;
	__property Shaded ;
	__property ShowCaption ;
	__property ShowHint ;
	__property OfficeHint ;
	__property Style ;
	__property Version ;
	__property Visible ;
	__property OnClick ;
	__property OnDblClick ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnMouseEnter ;
	__property OnMouseLeave ;
	__property OnDropDown ;
public:
	#pragma option push -w-inl
	/* TAdvCustomToolBarButton.Create */ inline __fastcall virtual TAdvToolBarButton(Classes::TComponent* 
		AOwner) : TAdvCustomToolBarButton(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TAdvCustomToolBarButton.Destroy */ inline __fastcall virtual ~TAdvToolBarButton(void) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvToolBarMenuButton;
class PASCALIMPLEMENTATION TAdvToolBarMenuButton : public TAdvCustomToolBarButton 
{
	typedef TAdvCustomToolBarButton inherited;
	
protected:
	virtual bool __fastcall IsMenuButton(void);
	virtual void __fastcall DrawButton(Graphics::TCanvas* aCanvas);
	
public:
	__fastcall virtual TAdvToolBarMenuButton(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvToolBarMenuButton(void);
	__property Hot ;
	
__published:
	__property Action ;
	__property Appearance ;
	__property GlyphPosition ;
	__property Constraints ;
	__property DropDownButton ;
	__property DropDownMenu ;
	__property DropDownSplit ;
	__property Caption ;
	__property Enabled ;
	__property Font ;
	__property Glyp

⌨️ 快捷键说明

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