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

📄 advfontcombo.hpp

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

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

#ifndef AdvfontcomboHPP
#define AdvfontcomboHPP

#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 <Stdctrls.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Math.hpp>	// Pascal unit
#include <Advstyleif.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit

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

namespace Advfontcombo
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAdvFontType { aftBitmap, aftTrueType, aftPostScript, aftPrinter, aftFixedPitch, aftProportional };
#pragma option pop

typedef Set<TAdvFontType, aftBitmap, aftProportional>  TAdvFontTypes;

class DELPHICLASS TWinCtrl;
class PASCALIMPLEMENTATION TWinCtrl : public Controls::TWinControl 
{
	typedef Controls::TWinControl inherited;
	
public:
	#pragma option push -w-inl
	/* TWinControl.Create */ inline __fastcall virtual TWinCtrl(Classes::TComponent* AOwner) : Controls::TWinControl(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TWinCtrl(HWND ParentWindow) : Controls::TWinControl(ParentWindow) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TWinControl.Destroy */ inline __fastcall virtual ~TWinCtrl(void) { }
	#pragma option pop
	
};


class DELPHICLASS TDropDownWindow;
class PASCALIMPLEMENTATION TDropDownWindow : public Controls::THintWindow 
{
	typedef Controls::THintWindow inherited;
	
private:
	Stdctrls::TListBox* FListControl;
	bool FHideOnDeActivate;
	MESSAGE void __fastcall WMNCButtonDown(Messages::TMessage &Message);
	MESSAGE void __fastcall WMActivate(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMNCHitTest(Messages::TWMNCHitTest &Message);
	
protected:
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	__property bool HideOnDeActivate = {read=FHideOnDeActivate, write=FHideOnDeActivate, nodefault};
	
public:
	__fastcall virtual TDropDownWindow(Classes::TComponent* AOwner);
	__fastcall virtual ~TDropDownWindow(void);
	
__published:
	__property BorderWidth  = {default=0};
	__property Stdctrls::TListBox* ListControl = {read=FListControl, write=FListControl};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TDropDownWindow(HWND ParentWindow) : Controls::THintWindow(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvComboBtn;
class DELPHICLASS TAdvCustomComboBox;
#pragma option push -b-
enum TAdvComboStyle { esOffice2003Blue, esOffice2003Silver, esOffice2003Olive, esOffice2003Classic, esOffice2007Luna, esOffice2007Obsidian, esWindowsXP, esWhidbey, esCustom, esOffice2007Silver };
#pragma option pop

#pragma option push -b-
enum TSelectionGradient { sgVertical, sgHorizontal, sgVerticalInOut, sgHorizontalInOut };
#pragma option pop

#pragma option push -b-
enum TComboStyle { csDropDown, csDropDownList };
#pragma option pop

class PASCALIMPLEMENTATION TAdvCustomComboBox : public Stdctrls::TCustomEdit 
{
	typedef Stdctrls::TCustomEdit inherited;
	
private:
	bool FAutoFocus;
	bool FMouseInControl;
	Classes::TNotifyEvent FOnMouseEnter;
	bool FButtonDown;
	bool FDroppedDown;
	Classes::TNotifyEvent FOnMouseLeave;
	TAdvComboBtn* FButton;
	bool FFlat;
	Graphics::TColor FBorderHotColor;
	Graphics::TColor FBorderColor;
	bool FAutoThemeAdapt;
	TAdvComboStyle FAppearanceStyle;
	Controls::TCursor FOldCursor;
	TDropDownWindow* FDropDownList;
	Stdctrls::TListBox* FDropDownListBox;
	Classes::TStringList* FItems;
	int FDropDownCount;
	Classes::TNotifyEvent FOnBeforeDropDown;
	int FItemIndex;
	Graphics::TColor FSelectionColor;
	int FFontHeight;
	int FItemHeight;
	bool FLookUp;
	bool FChanged;
	bool FMatchCase;
	bool FWorkMode;
	AnsiString FOldText;
	Graphics::TColor FSelectionColorTo;
	TSelectionGradient FSelectionGradient;
	bool FDisplayRecentSelection;
	Classes::TStringList* FRecentSelection;
	TComboStyle FStyle;
	bool FAutoItemSize;
	Graphics::TColor FSelectionTextColor;
	Classes::TNotifyEvent FOnSelect;
	MESSAGE void __fastcall CNCtlColorEdit(Messages::TWMCtlColor &Message);
	MESSAGE void __fastcall CNCtlColorStatic(Messages::TWMCtlColor &Message);
	MESSAGE void __fastcall CMCancelMode(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Msg);
	HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Msg);
	HIDESBASE MESSAGE void __fastcall WMChar(Messages::TWMKey &Msg);
	HIDESBASE MESSAGE void __fastcall WMLButtonUp(Messages::TWMMouse &Msg);
	HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Msg);
	HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Msg);
	HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
	HIDESBASE MESSAGE void __fastcall WMEraseBkGnd(Messages::TWMEraseBkgnd &Message);
	HIDESBASE MESSAGE void __fastcall WMMouseMove(Messages::TWMMouse &Msg);
	HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Msg);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
	MESSAGE void __fastcall CMWantSpecialKey(Messages::TWMKey &Msg);
	void __fastcall DrawButton(HDC DC)/* overload */;
	void __fastcall DrawButton(void)/* overload */;
	void __fastcall DrawBorders(HDC DC)/* overload */;
	void __fastcall DrawBorders(void)/* overload */;
	Types::TRect __fastcall GetButtonRect();
	int __fastcall GetMinHeight(void);
	int __fastcall GetListItemHeight(void);
	void __fastcall ResizeControl(void);
	void __fastcall ButtonOnChange(System::TObject* Sender);
	void __fastcall ButtonClick(void);
	void __fastcall ListBoxKeyPress(System::TObject* Sender, char &Key);
	void __fastcall ListBoxMouseUp(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	void __fastcall ListBoxMouseMove(System::TObject* Sender, Classes::TShiftState Shift, int X, int Y);
	void __fastcall ListBoxKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
	void __fastcall ListBoxOnEnter(System::TObject* Sender);
	void __fastcall ShowDropDown(void);
	void __fastcall HideDropDown(void);
	void __fastcall LookUpText(void);
	void __fastcall ThemeAdapt(void);
	virtual int __fastcall GetVersionNr(void);
	void __fastcall SetButton(const TAdvComboBtn* Value);
	void __fastcall SetFlat(const bool Value);
	void __fastcall SetBorderColor(const Graphics::TColor Value);
	void __fastcall SetBorderHotColor(const Graphics::TColor Value);
	void __fastcall SetAppearanceStyle(const TAdvComboStyle Value);
	void __fastcall SetItems(const Classes::TStringList* Value);
	void __fastcall SetItemIndex(const int Value);
	void __fastcall SetSelectionColor(const Graphics::TColor Value);
	void __fastcall SetFontHeight(const int Value);
	void __fastcall SetLookUp(const bool Value);
	int __fastcall GetItemIndex(void);
	void __fastcall SetSelectionColorTo(const Graphics::TColor Value);
	void __fastcall SetSelectionGradient(const TSelectionGradient Value);
	void __fastcall SetDisplayRecentSelection(const bool Value);
	int __fastcall GetItemHeight(void);
	void __fastcall SetItemHeight(const int Value);
	void __fastcall SetStyle(const TComboStyle Value);
	void __fastcall SetAutoItemSize(const bool Value);
	AnsiString __fastcall GetVersion();
	void __fastcall SetVersion(const AnsiString Value);
	
protected:
	void __fastcall SetEditRect(void);
	virtual void __fastcall Loaded(void);
	DYNAMIC void __fastcall DoEnter(void);
	virtual void __fastcall CreateWnd(void);
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	virtual void __fastcall WndProc(Messages::TMessage &Message);
	DYNAMIC void __fastcall KeyUp(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	void __fastcall First(void);
	void __fastcall Previous(void);
	void __fastcall Next(void);
	void __fastcall Last(void);
	void __fastcall PageJump(bool GoForward);
	virtual void __fastcall BeforeDropDown(void);
	virtual void __fastcall DropDownOnDrawItem(Controls::TWinControl* Control, int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
	virtual void __fastcall ValueChanged(void);
	virtual void __fastcall PopulateListBox(void);
	__property bool Flat = {read=FFlat, write=SetFlat, nodefault};
	__property bool AutoItemSize = {read=FAutoItemSize, write=SetAutoItemSize, default=1};
	__property int ItemHeight = {read=GetItemHeight, write=SetItemHeight, nodefault};
	__property int FontHeight = {read=FFontHeight, write=SetFontHeight, nodefault};
	__property TComboStyle Style = {read=FStyle, write=SetStyle, default=0};
	void __fastcall SetComponentStyle(Advstyleif::TTMSStyle AStyle);
	
public:
	__fastcall virtual TAdvCustomComboBox(Classes::TComponent* aOwner);
	__fastcall virtual ~TAdvCustomComboBox(void);

⌨️ 快捷键说明

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