advsmoothlistbox.hpp

来自「TMSPack基本上涵盖了Delphi所有的基础控件」· HPP 代码 · 共 849 行 · 第 1/3 页

HPP
849
字号
// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

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

#ifndef AdvsmoothlistboxHPP
#define AdvsmoothlistboxHPP

#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 <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Comobj.hpp>	// Pascal unit
#include <Activex.hpp>	// Pascal unit
#include <Advsmoothgdip.hpp>	// Pascal unit
#include <Advstyleif.hpp>	// Pascal unit
#include <Imglist.hpp>	// Pascal unit
#include <Advsmooththeme.hpp>	// Pascal unit
#include <Gdippicturecontainer.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Math.hpp>	// Pascal unit
#include <Gdipfill.hpp>	// Pascal unit

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

namespace Advsmoothlistbox
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAdvSmoothListBoxLocation { plTopLeft, plTopCenter, plTopRight, plCenterLeft, plCenterCenter, plCenterRight, plBottomLeft, plBottomCenter, plBottomRight, plCustom };
#pragma option pop

#pragma option push -b-
enum TAdvSmoothListBoxShowDetailClick { sdOnClick, sdOnDetailImageClick, sdOnDblClick, sdOnDetailImageDblClick };
#pragma option pop

#pragma option push -b-
enum TAdvSmoothListBoxShowDetailKey { dkSpace, dkNone, dkF2, dkReturn };
#pragma option pop

class DELPHICLASS TAdvSmoothListBoxItemAppearance;
class DELPHICLASS TAdvSmoothListBox;
class DELPHICLASS TAdvSmoothListBoxItems;
class DELPHICLASS TAdvSmoothListBoxItem;
#pragma option push -b-
enum TAdvSmoothListBoxGraphicType { gtCheckBox, gtRadio, gtButton, gtImage, gtDetailImage, gtCommonImage, gtCommonDetailImage };
#pragma option pop

#pragma option push -b-
enum TAdvSmoothListBoxGraphicShow { gsAlways, gsSelected, gsEnabled, gsNever };
#pragma option pop

class PASCALIMPLEMENTATION TAdvSmoothListBoxItem : public Classes::TCollectionItem 
{
	typedef Classes::TCollectionItem inherited;
	
private:
	#pragma pack(push,1)
	Types::TRect fgrRight;
	#pragma pack(pop)
	#pragma pack(push,1)
	Types::TRect fgrLeft;
	#pragma pack(pop)
	#pragma pack(push,1)
	Types::TRect fcaptionr;
	#pragma pack(pop)
	#pragma pack(push,1)
	Types::TRect finfor;
	#pragma pack(pop)
	AnsiString fn;
	#pragma pack(push,1)
	Types::TRect Fhtmlr;
	#pragma pack(pop)
	AnsiString FCaption;
	bool FEnabled;
	TAdvSmoothListBoxGraphicType FGraphicLeftType;
	TAdvSmoothListBoxGraphicShow FGraphicLeftShow;
	Classes::TAlignment FCaptionAlignment;
	TAdvSmoothListBoxGraphicType FGraphicRightType;
	AnsiString FNotes;
	Advsmoothgdip::TAdvGDIPPicture* FGraphicLeft;
	TAdvSmoothListBoxGraphicShow FGraphicRightShow;
	Advsmoothgdip::TAdvGDIPPicture* FGraphicRight;
	AnsiString FInfo;
	Graphics::TFont* FCaptionFont;
	Graphics::TFont* FInfoFont;
	Controls::TControl* FControl;
	bool FSplitter;
	int FNotesTop;
	int FNotesLeft;
	Graphics::TColor FNoteshadowColor;
	TAdvSmoothListBoxLocation FNotesLocation;
	Graphics::TColor FNotesURLColor;
	int FNotesShadowOffset;
	System::TObject* FObject;
	int FTag;
	bool FChecked;
	int FMargin;
	int FGraphicLeftMargin;
	int FGraphicRightMargin;
	Graphics::TFont* FNotesFont;
	void __fastcall SetCaption(const AnsiString Value);
	void __fastcall SetEnabled(const bool Value);
	void __fastcall SetCaptionAlignment(const Classes::TAlignment Value);
	void __fastcall SetGraphicLeft(const Advsmoothgdip::TAdvGDIPPicture* Value);
	void __fastcall SetGraphicLeftShow(const TAdvSmoothListBoxGraphicShow Value);
	void __fastcall SetGraphicLeftType(const TAdvSmoothListBoxGraphicType Value);
	void __fastcall SetGraphicRight(const Advsmoothgdip::TAdvGDIPPicture* Value);
	void __fastcall SetGraphicRightShow(const TAdvSmoothListBoxGraphicShow Value);
	void __fastcall SetGraphicRightType(const TAdvSmoothListBoxGraphicType Value);
	void __fastcall SetInfo(const AnsiString Value);
	void __fastcall SetNotes(const AnsiString Value);
	void __fastcall SetCaptionFont(const Graphics::TFont* Value);
	void __fastcall SetInfoFont(const Graphics::TFont* Value);
	void __fastcall SetControl(const Controls::TControl* Value);
	void __fastcall SetSplitter(const bool Value);
	void __fastcall SetNotesLeft(const int Value);
	void __fastcall SetNotesLocation(const TAdvSmoothListBoxLocation Value);
	void __fastcall SetNotesShadowColor(const Graphics::TColor Value);
	void __fastcall SetNotesShadowOffset(const int Value);
	void __fastcall SetNotesTop(const int Value);
	void __fastcall SetNotesURLColor(const Graphics::TColor Value);
	void __fastcall SetChecked(const bool Value);
	void __fastcall SetMargin(const int Value);
	void __fastcall SetGraphicLeftMargin(const int Value);
	void __fastcall SetGraphicRightMargin(const int Value);
	void __fastcall SetNotesFont(const Graphics::TFont* Value);
	
protected:
	HIDESBASE void __fastcall Changed(void);
	void __fastcall PictureChanged(System::TObject* Sender);
	void __fastcall FontChanged(System::TObject* Sender);
	void __fastcall Draw(const Types::TRect &R, int DisplayIndex);
	virtual AnsiString __fastcall GetDisplayName();
	
public:
	__fastcall virtual TAdvSmoothListBoxItem(Classes::TCollection* Collection);
	__fastcall virtual ~TAdvSmoothListBoxItem(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	void __fastcall AssignVisuals(Classes::TPersistent* Source);
	void __fastcall SaveItemValues(AnsiString Caption, AnsiString Info, AnsiString Notes);
	AnsiString __fastcall GetAnchorAt(int X, int Y);
	__property System::TObject* ItemObject = {read=FObject, write=FObject};
	
__published:
	__property AnsiString Caption = {read=FCaption, write=SetCaption};
	__property bool Checked = {read=FChecked, write=SetChecked, default=0};
	__property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};
	__property Classes::TAlignment CaptionAlignment = {read=FCaptionAlignment, write=SetCaptionAlignment, default=0};
	__property AnsiString Notes = {read=FNotes, write=SetNotes};
	__property Graphics::TColor NotesURLColor = {read=FNotesURLColor, write=SetNotesURLColor, default=16711680};
	__property Graphics::TColor NotesShadowColor = {read=FNoteshadowColor, write=SetNotesShadowColor, default=8421504};
	__property int NotesShadowOffset = {read=FNotesShadowOffset, write=SetNotesShadowOffset, default=5};
	__property TAdvSmoothListBoxLocation NotesLocation = {read=FNotesLocation, write=SetNotesLocation, default=4};
	__property int NotesLeft = {read=FNotesLeft, write=SetNotesLeft, default=0};
	__property int NotesTop = {read=FNotesTop, write=SetNotesTop, default=0};
	__property AnsiString Info = {read=FInfo, write=SetInfo};
	__property int GraphicLeftMargin = {read=FGraphicLeftMargin, write=SetGraphicLeftMargin, default=3};
	__property int GraphicRightMargin = {read=FGraphicRightMargin, write=SetGraphicRightMargin, default=3};
	__property TAdvSmoothListBoxGraphicType GraphicLeftType = {read=FGraphicLeftType, write=SetGraphicLeftType, default=3};
	__property TAdvSmoothListBoxGraphicType GraphicRightType = {read=FGraphicRightType, write=SetGraphicRightType, default=3};
	__property Advsmoothgdip::TAdvGDIPPicture* GraphicLeft = {read=FGraphicLeft, write=SetGraphicLeft};
	__property Advsmoothgdip::TAdvGDIPPicture* GraphicRight = {read=FGraphicRight, write=SetGraphicRight};
	__property TAdvSmoothListBoxGraphicShow GraphicLeftShow = {read=FGraphicLeftShow, write=SetGraphicLeftShow, default=0};
	__property TAdvSmoothListBoxGraphicShow GraphicRightShow = {read=FGraphicRightShow, write=SetGraphicRightShow, default=0};
	__property Graphics::TFont* CaptionFont = {read=FCaptionFont, write=SetCaptionFont};
	__property Graphics::TFont* InfoFont = {read=FInfoFont, write=SetInfoFont};
	__property Graphics::TFont* NotesFont = {read=FNotesFont, write=SetNotesFont};
	__property Controls::TControl* DetailControl = {read=FControl, write=SetControl};
	__property int Tag = {read=FTag, write=FTag, nodefault};
	__property bool Splitter = {read=FSplitter, write=SetSplitter, nodefault};
	__property int CaptionMargin = {read=FMargin, write=SetMargin, default=3};
};


class PASCALIMPLEMENTATION TAdvSmoothListBoxItems : public Classes::TCollection 
{
	typedef Classes::TCollection inherited;
	
public:
	TAdvSmoothListBoxItem* operator[](int Index) { return Items[Index]; }
	
private:
	int FUpdateCount;
	TAdvSmoothListBox* FOwner;
	Classes::TNotifyEvent FOnChange;
	TAdvSmoothListBoxItem* FSelectedItem;
	HIDESBASE TAdvSmoothListBoxItem* __fastcall GetItem(int Index);
	HIDESBASE void __fastcall SetItem(int Index, const TAdvSmoothListBoxItem* Value);
	void __fastcall SetSelectedItem(const TAdvSmoothListBoxItem* Value);
	
protected:
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	virtual int __fastcall Compare(TAdvSmoothListBoxItem* Item1, TAdvSmoothListBoxItem* Item2);
	void __fastcall QuickSort(int L, int R);
	DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
	
public:
	virtual void __fastcall BeginUpdate(void);
	virtual void __fastcall EndUpdate(void);
	__fastcall TAdvSmoothListBoxItems(TAdvSmoothListBox* AOwner);
	__property TAdvSmoothListBoxItem* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
	HIDESBASE TAdvSmoothListBoxItem* __fastcall Add(void);
	HIDESBASE TAdvSmoothListBoxItem* __fastcall Insert(int Index);
	HIDESBASE void __fastcall Delete(int Index);
	void __fastcall Sort(void);
	__property TAdvSmoothListBoxItem* SelectedItem = {read=FSelectedItem, write=SetSelectedItem};
public:
	#pragma option push -w-inl
	/* TCollection.Destroy */ inline __fastcall virtual ~TAdvSmoothListBoxItems(void) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvSmoothListBoxDisplayList;
class DELPHICLASS TAdvSmoothListBoxDisplayListItem;
class PASCALIMPLEMENTATION TAdvSmoothListBoxDisplayList : public Classes::TList 
{
	typedef Classes::TList inherited;
	
public:
	virtual void __fastcall Clear(void);
	void __fastcall DeleteItem(int index);
	TAdvSmoothListBoxDisplayListItem* __fastcall AddItem(void);
	TAdvSmoothListBoxDisplayListItem* __fastcall GetItem(int index);
public:
	#pragma option push -w-inl
	/* TList.Destroy */ inline __fastcall virtual ~TAdvSmoothListBoxDisplayList(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TAdvSmoothListBoxDisplayList(void) : Classes::TList() { }
	#pragma option pop
	
};


class DELPHICLASS TAdvSmoothListBoxLookUpBar;
#pragma option push -b-
enum TAdvSmoothListBoxLookUpBarPosition { pLeft, pRight };
#pragma option pop

class PASCALIMPLEMENTATION TAdvSmoothListBoxLookUpBar : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	bool FChar[36];
	TAdvSmoothListBox* Fowner;
	Graphics::TFont* FDisabledFont;
	Graphics::TColor FColor;
	Graphics::TColor FColorTo;
	Graphics::TFont* FFont;
	bool FVisible;
	bool FNumeric;
	Classes::TNotifyEvent FOnChange;
	TAdvSmoothListBoxLookUpBarPosition FPosition;
	Byte FOpacity;
	Byte FOpacityTo;
	Advsmoothgdip::TAdvGradientType FGradientType;
	Advsmoothgdip::HatchStyle FHatchStyle;
	bool FOnTop;
	void __fastcall SetColor(const Graphics::TColor Value);
	void __fastcall SetColorTo(const Graphics::TColor Value);
	void __fastcall SetDisabledFont(const Graphics::TFont* Value);
	void __fastcall SetFont(const Graphics::TFont* Value);
	void __fastcall SetNumeric(const bool Value);
	void __fastcall SetPosition(const TAdvSmoothListBoxLookUpBarPosition Value);
	void __fastcall SetVisible(const bool Value);
	void __fastcall SetOpacity(const Byte Value);

⌨️ 快捷键说明

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