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

📄 suifontcombobox.hpp

📁 SUIPack v6.40.Full.Source for Delphi 5 - 2009 (实际上 2010 上也能编译通过)
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Suifontcombobox.pas' rev: 10.00

#ifndef SuifontcomboboxHPP
#define SuifontcomboboxHPP

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

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

namespace Suifontcombobox
{
//-- type declarations -------------------------------------------------------
typedef Stdctrls::TComboBoxStyle TFontDrawComboStyle;

class DELPHICLASS TsuiFontDrawComboBox;
class PASCALIMPLEMENTATION TsuiFontDrawComboBox : public Suicombobox::TsuiCustomComboBox 
{
	typedef Suicombobox::TsuiCustomComboBox inherited;
	
private:
	Stdctrls::TComboBoxStyle FStyle;
	bool FItemHeightChanging;
	void __fastcall SetComboStyle(TFontDrawComboStyle Value);
	HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMRecreateWnd(Messages::TMessage &Message);
	
protected:
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	virtual void __fastcall CreateWnd(void);
	void __fastcall ResetItemHeight(void);
	virtual int __fastcall MinItemHeight(void);
	__property TFontDrawComboStyle Style = {read=FStyle, write=SetComboStyle, default=2};
	
public:
	__fastcall virtual TsuiFontDrawComboBox(Classes::TComponent* AOwner);
public:
	#pragma option push -w-inl
	/* TCustomComboBox.Destroy */ inline __fastcall virtual ~TsuiFontDrawComboBox(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TsuiFontDrawComboBox(HWND ParentWindow) : Suicombobox::TsuiCustomComboBox(ParentWindow) { }
	#pragma option pop
	
};


#pragma option push -b-
enum TFontDevice { fdScreen, fdPrinter, fdBoth };
#pragma option pop

#pragma option push -b-
enum TFontListOption { foAnsiOnly, foTrueTypeOnly, foFixedPitchOnly, foNoOEMFonts, foOEMFontsOnly, foScalableOnly, foNoSymbolFonts };
#pragma option pop

typedef Set<TFontListOption, foAnsiOnly, foNoSymbolFonts>  TFontListOptions;

class DELPHICLASS TsuiFontComboBox;
class PASCALIMPLEMENTATION TsuiFontComboBox : public TsuiFontDrawComboBox 
{
	typedef TsuiFontDrawComboBox inherited;
	
private:
	Graphics::TBitmap* FTrueTypeBMP;
	Graphics::TBitmap* FDeviceBMP;
	Classes::TNotifyEvent FOnChange;
	TFontDevice FDevice;
	bool FUpdate;
	bool FUseFonts;
	TFontListOptions FOptions;
	void __fastcall SetFontName(const AnsiString NewFontName);
	AnsiString __fastcall GetFontName();
	void __fastcall SetDevice(TFontDevice Value);
	void __fastcall SetOptions(TFontListOptions Value);
	void __fastcall SetUseFonts(bool Value);
	void __fastcall Reset(void);
	HIDESBASE MESSAGE void __fastcall WMFontChange(Messages::TMessage &Message);
	
protected:
	virtual void __fastcall PopulateList(void);
	DYNAMIC void __fastcall Change(void);
	DYNAMIC void __fastcall Click(void);
	DYNAMIC void __fastcall DoChange(void);
	virtual void __fastcall CreateWnd(void);
	virtual void __fastcall DrawItem(int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
	virtual int __fastcall MinItemHeight(void);
	
public:
	__fastcall virtual TsuiFontComboBox(Classes::TComponent* AOwner);
	__fastcall virtual ~TsuiFontComboBox(void);
	__property Text ;
	
__published:
	__property TFontDevice Device = {read=FDevice, write=SetDevice, default=0};
	__property AnsiString FontName = {read=GetFontName, write=SetFontName};
	__property TFontListOptions Options = {read=FOptions, write=SetOptions, default=0};
	__property bool UseFonts = {read=FUseFonts, write=SetUseFonts, default=0};
	__property ItemHeight ;
	__property Color  = {default=-16777211};
	__property Ctl3D ;
	__property DragMode  = {default=0};
	__property DragCursor  = {default=-12};
	__property Enabled  = {default=1};
	__property Font ;
	__property Anchors  = {default=3};
	__property BiDiMode ;
	__property Constraints ;
	__property DragKind  = {default=0};
	__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=2};
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property Visible  = {default=1};
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnDropDown ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnStartDrag ;
	__property OnContextPopup ;
	__property OnEndDock ;
	__property OnStartDock ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TsuiFontComboBox(HWND ParentWindow) : TsuiFontDrawComboBox(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TsuiFontSizeComboBox;
class PASCALIMPLEMENTATION TsuiFontSizeComboBox : public Suicombobox::TsuiCustomComboBox 
{
	typedef Suicombobox::TsuiCustomComboBox inherited;
	
private:
	int PixelsPerInch;
	AnsiString FFontName;
	void __fastcall SetFontName(const AnsiString Value);
	void __fastcall Build(void);
	int __fastcall GetFontSize(void);
	void __fastcall SetFontSize(const int Value);
	
public:
	__fastcall virtual TsuiFontSizeComboBox(Classes::TComponent* AOwner);
	
__published:
	__property AnsiString FontName = {read=FFontName, write=SetFontName};
	__property int FontSize = {read=GetFontSize, write=SetFontSize, nodefault};
	__property Color  = {default=-16777211};
	__property Ctl3D ;
	__property DragMode  = {default=0};
	__property DragCursor  = {default=-12};
	__property Enabled  = {default=1};
	__property Font ;
	__property Anchors  = {default=3};
	__property BiDiMode ;
	__property Constraints ;
	__property DragKind  = {default=0};
	__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 Text ;
	__property Visible  = {default=1};
	__property OnChange ;
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnDropDown ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnStartDrag ;
	__property OnContextPopup ;
	__property OnEndDock ;
	__property OnStartDock ;
public:
	#pragma option push -w-inl
	/* TCustomComboBox.Destroy */ inline __fastcall virtual ~TsuiFontSizeComboBox(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TsuiFontSizeComboBox(HWND ParentWindow) : Suicombobox::TsuiCustomComboBox(ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE System::ResourceString _SResNotFound;
#define Suifontcombobox_SResNotFound System::LoadResourceString(&Suifontcombobox::_SResNotFound)

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

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

⌨️ 快捷键说明

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