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

📄 advfontcombo.hpp

📁 TMS component pack v4.2 for delphi
💻 HPP
📖 第 1 页 / 共 2 页
字号:
	int __fastcall CharFromPos(const Types::TPoint &pt);
	DYNAMIC void __fastcall Change(void);
	__property Classes::TStringList* Items = {read=FItems, write=SetItems};
	__property int ItemIndex = {read=GetItemIndex, write=SetItemIndex, nodefault};
	__property Classes::TStringList* RecentSelection = {read=FRecentSelection};
	__property TAdvComboStyle AppearanceStyle = {read=FAppearanceStyle, write=SetAppearanceStyle, nodefault};
	
__published:
	__property bool AutoFocus = {read=FAutoFocus, write=FAutoFocus, default=0};
	__property bool AutoThemeAdapt = {read=FAutoThemeAdapt, write=FAutoThemeAdapt, default=0};
	__property TAdvComboBtn* Button = {read=FButton, write=SetButton};
	__property bool DisplayRecentSelection = {read=FDisplayRecentSelection, write=SetDisplayRecentSelection, default=1};
	__property int DropDownCount = {read=FDropDownCount, write=FDropDownCount, nodefault};
	__property Graphics::TColor BorderColor = {read=FBorderColor, write=SetBorderColor, nodefault};
	__property Graphics::TColor BorderHotColor = {read=FBorderHotColor, write=SetBorderHotColor, nodefault};
	__property bool LookUp = {read=FLookUp, write=SetLookUp, default=1};
	__property Graphics::TColor SelectionColor = {read=FSelectionColor, write=SetSelectionColor, nodefault};
	__property Graphics::TColor SelectionColorTo = {read=FSelectionColorTo, write=SetSelectionColorTo, default=536870911};
	__property Graphics::TColor SelectionTextColor = {read=FSelectionTextColor, write=FSelectionTextColor, default=-16777202};
	__property TSelectionGradient SelectionGradient = {read=FSelectionGradient, write=SetSelectionGradient, default=2};
	__property Text ;
	__property AnsiString Version = {read=GetVersion, write=SetVersion};
	__property OnChange ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property Classes::TNotifyEvent OnMouseEnter = {read=FOnMouseEnter, write=FOnMouseEnter};
	__property Classes::TNotifyEvent OnMouseLeave = {read=FOnMouseLeave, write=FOnMouseLeave};
	__property Classes::TNotifyEvent OnBeforeDropDown = {read=FOnBeforeDropDown, write=FOnBeforeDropDown};
	__property Classes::TNotifyEvent OnSelect = {read=FOnSelect, write=FOnSelect};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvCustomComboBox(HWND ParentWindow) : Stdctrls::TCustomEdit(ParentWindow) { }
	#pragma option pop
	
private:
	void *__ITMSStyle;	/* Advstyleif::ITMSStyle */
	
public:
	operator ITMSStyle*(void) { return (ITMSStyle*)&__ITMSStyle; }
	
};


class PASCALIMPLEMENTATION TAdvComboBtn : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	Classes::TNotifyEvent FOnChange;
	int FWidth;
	Graphics::TBitmap* FGlyph;
	Graphics::TBitmap* FGlyphDown;
	Graphics::TBitmap* FGlyphHot;
	Graphics::TColor FColorHot;
	Graphics::TColor FColorTo;
	Graphics::TColor FColorDownTo;
	Graphics::TColor FColorDown;
	Graphics::TColor FColorHotTo;
	Graphics::TColor FColor;
	Graphics::TColor FDownArrowColor;
	Graphics::TColor FHotArrowColor;
	Graphics::TColor FArrowColor;
	TAdvCustomComboBox* FCombo;
	bool FDownArrow;
	void __fastcall SetWidth(const int Value);
	void __fastcall Change(void);
	void __fastcall SetColor(const Graphics::TColor Value);
	void __fastcall SetColorTo(const Graphics::TColor Value);
	void __fastcall SetColorDown(const Graphics::TColor Value);
	void __fastcall SetColorDownTo(const Graphics::TColor Value);
	void __fastcall SetGlyphDown(const Graphics::TBitmap* Value);
	void __fastcall SetGlyph(const Graphics::TBitmap* Value);
	void __fastcall SetColorHot(const Graphics::TColor Value);
	void __fastcall SetColorHotTo(const Graphics::TColor Value);
	void __fastcall SetGlyphHot(const Graphics::TBitmap* Value);
	void __fastcall SetArrowColor(const Graphics::TColor Value);
	void __fastcall SetDownArrowColor(const Graphics::TColor Value);
	void __fastcall SetHotArrowColor(const Graphics::TColor Value);
	
protected:
	__property Graphics::TColor ArrowColor = {read=FArrowColor, write=SetArrowColor, nodefault};
	__property Graphics::TColor HotArrowColor = {read=FHotArrowColor, write=SetHotArrowColor, nodefault};
	__property Graphics::TColor DownArrowColor = {read=FDownArrowColor, write=SetDownArrowColor, nodefault};
	__property bool DownArrow = {read=FDownArrow, write=FDownArrow, nodefault};
	__property TAdvCustomComboBox* Combo = {read=FCombo, write=FCombo};
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	
public:
	__fastcall TAdvComboBtn(void);
	__fastcall virtual ~TAdvComboBtn(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	
__published:
	__property Graphics::TColor Color = {read=FColor, write=SetColor, nodefault};
	__property Graphics::TColor ColorTo = {read=FColorTo, write=SetColorTo, nodefault};
	__property Graphics::TColor ColorHot = {read=FColorHot, write=SetColorHot, nodefault};
	__property Graphics::TColor ColorHotTo = {read=FColorHotTo, write=SetColorHotTo, nodefault};
	__property Graphics::TColor ColorDown = {read=FColorDown, write=SetColorDown, nodefault};
	__property Graphics::TColor ColorDownTo = {read=FColorDownTo, write=SetColorDownTo, nodefault};
	__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 int Width = {read=FWidth, write=SetWidth, nodefault};
};


class DELPHICLASS TAdvOfficeComboBox;
class PASCALIMPLEMENTATION TAdvOfficeComboBox : public TAdvCustomComboBox 
{
	typedef TAdvCustomComboBox inherited;
	
public:
	__fastcall virtual TAdvOfficeComboBox(Classes::TComponent* aOwner);
	
__published:
	__property Items ;
	__property ItemIndex ;
	__property ItemHeight ;
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property Text ;
	__property Font ;
	__property ShowHint ;
	__property Style  = {default=0};
public:
	#pragma option push -w-inl
	/* TAdvCustomComboBox.Destroy */ inline __fastcall virtual ~TAdvOfficeComboBox(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvOfficeComboBox(HWND ParentWindow) : TAdvCustomComboBox(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvFontSelector;
class PASCALIMPLEMENTATION TAdvFontSelector : public TAdvCustomComboBox 
{
	typedef TAdvCustomComboBox inherited;
	
private:
	Graphics::TBitmap* FFontGlyphTT;
	Graphics::TBitmap* FFontGlyphPS;
	Graphics::TBitmap* FFontGlyphPRN;
	Graphics::TBitmap* FFontGlyphBMP;
	bool FShowFontStyle;
	bool FShowFontGlyph;
	TAdvFontTypes FAllowedFontTypes;
	void __fastcall SetFontGlyphTT(const Graphics::TBitmap* Value);
	void __fastcall SetFontGlyphPS(const Graphics::TBitmap* Value);
	void __fastcall SetFontGlyphPRN(const Graphics::TBitmap* Value);
	void __fastcall SetFontGlyphBMP(const Graphics::TBitmap* Value);
	HIDESBASE MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
	TAdvFontTypes __fastcall GetFontType(const AnsiString Fontname);
	
protected:
	virtual void __fastcall Loaded(void);
	virtual void __fastcall BeforeDropDown(void);
	virtual void __fastcall DropDownOnDrawItem(Controls::TWinControl* Control, int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
	
public:
	__fastcall virtual TAdvFontSelector(Classes::TComponent* aOwner);
	__fastcall virtual ~TAdvFontSelector(void);
	void __fastcall LoadFontNames(void);
	
__published:
	__property TAdvFontTypes AllowedFontTypes = {read=FAllowedFontTypes, write=FAllowedFontTypes, nodefault};
	__property Graphics::TBitmap* FontGlyphTT = {read=FFontGlyphTT, write=SetFontGlyphTT};
	__property Graphics::TBitmap* FontGlyphPS = {read=FFontGlyphPS, write=SetFontGlyphPS};
	__property Graphics::TBitmap* FontGlyphPRN = {read=FFontGlyphPRN, write=SetFontGlyphPRN};
	__property Graphics::TBitmap* FontGlyphBMP = {read=FFontGlyphBMP, write=SetFontGlyphBMP};
	__property bool ShowFontStyle = {read=FShowFontStyle, write=FShowFontStyle, default=1};
	__property bool ShowFontGlyph = {read=FShowFontGlyph, write=FShowFontGlyph, default=1};
	__property FontHeight ;
	__property Color  = {default=-16777211};
	__property Enabled  = {default=1};
	__property Font ;
	__property Anchors  = {default=3};
	__property BiDiMode ;
	__property Constraints ;
	__property ParentBiDiMode  = {default=1};
	__property ImeMode  = {default=3};
	__property ImeName ;
	__property ParentColor  = {default=0};
	__property ParentCtl3D  = {default=1};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PopupMenu ;
	__property ShowHint ;
	__property Style  = {default=0};
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property Visible  = {default=1};
	__property OnClick ;
	__property OnEnter ;
	__property OnExit ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnStartDrag ;
	__property OnEndDock ;
	__property OnStartDock ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvFontSelector(HWND ParentWindow) : TAdvCustomComboBox(ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
static const Shortint LISTITEMHEIGHT = 0xe;
static const Shortint MAJ_VER = 0x1;
static const Shortint MIN_VER = 0x3;
static const Shortint REL_VER = 0x2;
static const Shortint BLD_VER = 0x0;
extern PACKAGE void __fastcall DrawGradient(Graphics::TCanvas* Canvas, Graphics::TColor FromColor, Graphics::TColor ToColor, int Steps, const Types::TRect &R, bool Direction);

}	/* namespace Advfontcombo */
using namespace Advfontcombo;
#pragma pack(pop)
#pragma option pop

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

⌨️ 快捷键说明

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