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

📄 suiimagepanel.hpp

📁 新颖按钮控件
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'SUIImagePanel.pas' rev: 6.00

#ifndef SUIImagePanelHPP
#define SUIImagePanelHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <SUIThemes.hpp>	// Pascal unit
#include <SUIPublic.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <ExtCtrls.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Suiimagepanel
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TsuiDrawStyle { suiNormal, suiStretch, suiTile };
#pragma option pop

class DELPHICLASS TsuiCustomPanel;
class PASCALIMPLEMENTATION TsuiCustomPanel : public Extctrls::TCustomPanel 
{
	typedef Extctrls::TCustomPanel inherited;
	
private:
	Graphics::TPicture* m_Picture;
	bool m_Transparent;
	bool m_AutoSize;
	int m_CaptionPosX;
	int m_CaptionPosY;
	TsuiDrawStyle m_DrawStyle;
	#pragma pack(push, 1)
	Types::TRect m_LastDrawCaptionRect;
	#pragma pack(pop)
	
	void __fastcall ApplyAutoSize(void);
	void __fastcall ApplyTransparent(void);
	void __fastcall SetPicture(const Graphics::TPicture* Value);
	HIDESBASE void __fastcall SetAutoSize(const bool Value);
	void __fastcall SetCaptionPosX(const int Value);
	void __fastcall SetCaptionPosY(const int Value);
	void __fastcall SetDrawStyle(const TsuiDrawStyle Value);
	HIDESBASE MESSAGE void __fastcall CMTEXTCHANGED(Messages::TMessage &Msg);
	HIDESBASE MESSAGE void __fastcall WMERASEBKGND(Messages::TMessage &Msg);
	
protected:
	virtual void __fastcall Paint(void);
	virtual void __fastcall ClearPanel(void);
	virtual void __fastcall RepaintText(const Types::TRect &Rect);
	virtual void __fastcall PictureChanged(System::TObject* Sender);
	virtual void __fastcall SetTransparent(const bool Value);
	DYNAMIC void __fastcall Resize(void);
	__property Graphics::TPicture* Picture = {read=m_Picture, write=SetPicture};
	__property bool Transparent = {read=m_Transparent, write=SetTransparent, default=0};
	__property bool AutoSize = {read=m_AutoSize, write=SetAutoSize, nodefault};
	__property int CaptionPosX = {read=m_CaptionPosX, write=SetCaptionPosX, nodefault};
	__property int CaptionPosY = {read=m_CaptionPosY, write=SetCaptionPosY, nodefault};
	__property TsuiDrawStyle DrawStyle = {read=m_DrawStyle, write=SetDrawStyle, nodefault};
	
public:
	__fastcall virtual TsuiCustomPanel(Classes::TComponent* AOwner);
	__fastcall virtual ~TsuiCustomPanel(void);
	void __fastcall UpdateUIStyle(Suithemes::TsuiUIStyle UIStyle);
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TsuiCustomPanel(HWND ParentWindow) : Extctrls::TCustomPanel(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TsuiImagePanel;
class PASCALIMPLEMENTATION TsuiImagePanel : public TsuiCustomPanel 
{
	typedef TsuiCustomPanel inherited;
	
__published:
	__property BiDiMode ;
	__property Anchors  = {default=3};
	__property Picture ;
	__property Transparent  = {default=0};
	__property AutoSize ;
	__property Alignment  = {default=2};
	__property Align  = {default=0};
	__property Font ;
	__property Caption ;
	__property Color  = {default=-2147483633};
	__property DrawStyle ;
	__property Visible  = {default=1};
	__property OnCanResize ;
	__property OnClick ;
	__property OnConstrainedResize ;
	__property OnDockDrop ;
	__property OnDockOver ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDock ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnGetSiteInfo ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnResize ;
	__property OnStartDock ;
	__property OnStartDrag ;
	__property OnUnDock ;
public:
	#pragma option push -w-inl
	/* TsuiCustomPanel.Create */ inline __fastcall virtual TsuiImagePanel(Classes::TComponent* AOwner) : TsuiCustomPanel(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TsuiCustomPanel.Destroy */ inline __fastcall virtual ~TsuiImagePanel(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TsuiImagePanel(HWND ParentWindow) : TsuiCustomPanel(ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Suiimagepanel */
using namespace Suiimagepanel;
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// SUIImagePanel

⌨️ 快捷键说明

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