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

📄 suicolorbox.hpp

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

// (DO NOT EDIT: machine generated header) 'Suicolorbox.pas' rev: 20.00

#ifndef SuicolorboxHPP
#define SuicolorboxHPP

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

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

namespace Suicolorbox
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TColorBoxStyles { cbStandardColors, cbExtendedColors, cbSystemColors, cbIncludeNone, cbIncludeDefault, cbCustomColor, cbPrettyNames };
#pragma option pop

typedef Set<TColorBoxStyles, cbStandardColors, cbPrettyNames>  TColorBoxStyle;

class DELPHICLASS TsuiCustomColorBox;
class PASCALIMPLEMENTATION TsuiCustomColorBox : public Suicombobox::TsuiCustomComboBox
{
	typedef Suicombobox::TsuiCustomComboBox inherited;
	
private:
	TColorBoxStyle FStyle;
	bool FNeedToPopulate;
	bool FListSelected;
	Graphics::TColor FDefaultColorColor;
	Graphics::TColor FNoneColorColor;
	Graphics::TColor FSelectedColor;
	Graphics::TColor __fastcall GetColor(int Index);
	System::UnicodeString __fastcall GetColorName(int Index);
	Graphics::TColor __fastcall GetSelected(void);
	void __fastcall SetSelected(const Graphics::TColor AColor);
	void __fastcall ColorCallBack(const System::UnicodeString AName);
	void __fastcall SetDefaultColorColor(const Graphics::TColor Value);
	void __fastcall SetNoneColorColor(const Graphics::TColor Value);
	
protected:
	DYNAMIC void __fastcall CloseUp(void);
	virtual void __fastcall CreateWnd(void);
	virtual void __fastcall DrawItem(int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
	DYNAMIC void __fastcall KeyDown(System::Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyPress(System::WideChar &Key);
	virtual bool __fastcall PickCustomColor(void);
	void __fastcall PopulateList(void);
	DYNAMIC void __fastcall Select(void);
	HIDESBASE void __fastcall SetStyle(TColorBoxStyle AStyle);
	
public:
	__fastcall virtual TsuiCustomColorBox(Classes::TComponent* AOwner);
	__property TColorBoxStyle Style = {read=FStyle, write=SetStyle, default=7};
	__property Graphics::TColor Colors[int Index] = {read=GetColor};
	__property System::UnicodeString ColorNames[int Index] = {read=GetColorName};
	__property Graphics::TColor Selected = {read=GetSelected, write=SetSelected, default=0};
	__property Graphics::TColor DefaultColorColor = {read=FDefaultColorColor, write=SetDefaultColorColor, default=0};
	__property Graphics::TColor NoneColorColor = {read=FNoneColorColor, write=SetNoneColorColor, default=0};
public:
	/* TCustomComboBox.Destroy */ inline __fastcall virtual ~TsuiCustomColorBox(void) { }
	
public:
	/* TWinControl.CreateParented */ inline __fastcall TsuiCustomColorBox(HWND ParentWindow) : Suicombobox::TsuiCustomComboBox(ParentWindow) { }
	
};


class DELPHICLASS TsuiColorBox;
class PASCALIMPLEMENTATION TsuiColorBox : public TsuiCustomColorBox
{
	typedef TsuiCustomColorBox inherited;
	
__published:
	__property AutoComplete = {default=1};
	__property AutoDropDown = {default=0};
	__property DefaultColorColor = {default=0};
	__property NoneColorColor = {default=0};
	__property Selected = {default=0};
	__property Style = {default=7};
	__property Anchors = {default=3};
	__property BevelEdges = {default=15};
	__property BevelInner = {index=0, default=2};
	__property BevelKind = {default=0};
	__property BevelOuter = {index=1, default=1};
	__property BiDiMode;
	__property Color = {default=-16777211};
	__property Constraints;
	__property DropDownCount = {default=8};
	__property Enabled = {default=1};
	__property Font;
	__property ItemHeight;
	__property ParentBiDiMode = {default=1};
	__property ParentColor = {default=0};
	__property ParentFont = {default=1};
	__property ParentShowHint = {default=1};
	__property PopupMenu;
	__property ShowHint;
	__property TabOrder = {default=-1};
	__property TabStop = {default=1};
	__property Visible = {default=1};
	__property OnChange;
	__property OnCloseUp;
	__property OnClick;
	__property OnContextPopup;
	__property OnDblClick;
	__property OnDragDrop;
	__property OnDragOver;
	__property OnDropDown;
	__property OnEndDock;
	__property OnEndDrag;
	__property OnEnter;
	__property OnExit;
	__property OnKeyDown;
	__property OnKeyPress;
	__property OnKeyUp;
	__property OnSelect;
	__property OnStartDock;
	__property OnStartDrag;
public:
	/* TsuiCustomColorBox.Create */ inline __fastcall virtual TsuiColorBox(Classes::TComponent* AOwner) : TsuiCustomColorBox(AOwner) { }
	
public:
	/* TCustomComboBox.Destroy */ inline __fastcall virtual ~TsuiColorBox(void) { }
	
public:
	/* TWinControl.CreateParented */ inline __fastcall TsuiColorBox(HWND ParentWindow) : TsuiCustomColorBox(ParentWindow) { }
	
};


//-- var, const, procedure ---------------------------------------------------
static const Graphics::TColor NoColorSelected = -16777216;

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

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

⌨️ 快捷键说明

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