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

📄 paramtreeview.hpp

📁 一个非常棒的控件.做商业软件特别适用.里面的控件涉及面非常的广,有兴趣的话可以下来用用就知道了.
💻 HPP
📖 第 1 页 / 共 2 页
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

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

#ifndef ParamtreeviewHPP
#define ParamtreeviewHPP

#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 <Classes.hpp>	// Pascal unit
#include <Comctrls.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Spin.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Parhtml.hpp>	// Pascal unit
#include <Picturecontainer.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Imglist.hpp>	// Pascal unit

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

namespace Paramtreeview
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TParamTreeViewClickEvent)(System::TObject* Sender, Comctrls::TTreeNode* ANode, AnsiString href, AnsiString &value);

typedef void __fastcall (__closure *TParamTreeViewPopupEvent)(System::TObject* Sender, Comctrls::TTreeNode* ANode, AnsiString href, Classes::TStringList* values, bool &DoPopup);

typedef void __fastcall (__closure *TParamTreeViewSelectEvent)(System::TObject* Sender, Comctrls::TTreeNode* ANode, AnsiString href, AnsiString value);

typedef void __fastcall (__closure *TParamTreeViewChangedEvent)(System::TObject* Sender, Comctrls::TTreeNode* ANode, AnsiString href, AnsiString oldvalue, AnsiString newvalue);

typedef void __fastcall (__closure *TParamTreeViewHintEvent)(System::TObject* Sender, Comctrls::TTreeNode* ANode, AnsiString href, AnsiString &hintvalue, bool &showhint);

typedef void __fastcall (__closure *TParamCustomEditEvent)(System::TObject* Sender, Comctrls::TTreeNode* Node, AnsiString href, AnsiString value, AnsiString props, const Types::TRect &EditRect);

typedef void __fastcall (__closure *TParamTreeviewCustomShowEvent)(System::TObject* Sender, Comctrls::TTreeNode* ANode, AnsiString href, AnsiString &value, const Types::TRect &ARect);

typedef void __fastcall (__closure *TParamTreeViewEditEvent)(System::TObject* Sender, Comctrls::TTreeNode* ANode, AnsiString href, AnsiString &value);

class DELPHICLASS TParamTreeview;
class PASCALIMPLEMENTATION TParamTreeview : public Comctrls::TCustomTreeView 
{
	typedef Comctrls::TCustomTreeView inherited;
	
private:
	AnsiString FVersion;
	int FIndent;
	int FOldCursor;
	int FOldScrollPos;
	Graphics::TColor FParamColor;
	Graphics::TColor FSelectionColor;
	Graphics::TColor FSelectionFontColor;
	int FItemHeight;
	Controls::TImageList* FImages;
	Menus::TPopupMenu* FParamPopup;
	Parhtml::TPopupListBox* FParamList;
	Parhtml::TPopupDatePicker* FParamDatePicker;
	Parhtml::TPopupSpinEdit* FParamSpinEdit;
	Parhtml::TPopupEdit* FParamEdit;
	Parhtml::TPopupMaskEdit* FParamMaskEdit;
	AnsiString FOldParam;
	TParamTreeViewChangedEvent FOnParamChanged;
	TParamTreeViewClickEvent FOnParamClick;
	TParamTreeViewHintEvent FOnParamHint;
	TParamTreeViewPopupEvent FOnParamPopup;
	TParamTreeViewPopupEvent FOnParamList;
	TParamTreeViewSelectEvent FOnParamSelect;
	TParamTreeViewSelectEvent FOnParamEnter;
	TParamTreeViewSelectEvent FOnParamExit;
	bool FParamListSorted;
	bool FShowSelection;
	TParamTreeViewClickEvent FOnParamPrepare;
	bool FParamHint;
	Graphics::TColor FShadowColor;
	int FShadowOffset;
	int FUpdateCount;
	bool FWordWrap;
	bool FMouseDown;
	Picturecontainer::TPictureContainer* FContainer;
	AnsiString FCurrCtrlID;
	#pragma pack(push,1)
	Types::TRect FCurrCtrlRect;
	#pragma pack(pop)
	#pragma pack(push,1)
	Types::TRect FCurrCtrlDown;
	#pragma pack(pop)
	Comctrls::TTreeNode* FHoverNode;
	int FHoverHyperLink;
	#pragma pack(push,1)
	Types::TRect FCurrHoverRect;
	#pragma pack(pop)
	Picturecontainer::THTMLPictureCache* FImageCache;
	bool FHover;
	Graphics::TColor FHoverColor;
	Graphics::TColor FHoverFontColor;
	bool FEditAutoSize;
	int FLineSpacing;
	TParamTreeViewEditEvent FOnParamEditStart;
	TParamTreeViewEditEvent FOnParamEditDone;
	AnsiString FEmptyParam;
	AnsiString FOldAnchor;
	int FOldIndex;
	int FFocusLink;
	int FNumHyperLinks;
	AnsiString FEditValue;
	#pragma pack(push,1)
	Types::TPoint FEditPos;
	#pragma pack(pop)
	bool FIsEditing;
	TParamTreeViewEditEvent FOnParamQuery;
	TParamCustomEditEvent FOnParamCustomEdit;
	bool FAdvanceOnReturn;
	bool FStopMouseProcessing;
	bool FShowFocusBorder;
	HIDESBASE MESSAGE void __fastcall CMHintShow(Messages::TMessage &Msg);
	HIDESBASE MESSAGE void __fastcall CMDesignHitTest(Messages::TWMMouse &message);
	MESSAGE void __fastcall CMWantSpecialKey(Messages::TWMKey &Msg);
	HIDESBASE MESSAGE void __fastcall CNNotify(Messages::TWMNotify &message);
	HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &message);
	HIDESBASE MESSAGE void __fastcall WMLButtonUp(Messages::TWMMouse &message);
	HIDESBASE MESSAGE void __fastcall WMMouseMove(Messages::TWMMouse &message);
	HIDESBASE MESSAGE void __fastcall WMHScroll(Messages::TMessage &message);
	HIDESBASE MESSAGE void __fastcall WMSize(Messages::TMessage &message);
	int __fastcall GetItemHeight(void);
	void __fastcall SetItemHeight(const int Value);
	void __fastcall SetSelectionColor(const Graphics::TColor Value);
	void __fastcall SetSelectionFontColor(const Graphics::TColor Value);
	void __fastcall SetParamColor(const Graphics::TColor Value);
	HIDESBASE void __fastcall SetImages(const Controls::TImageList* Value);
	void __fastcall SetShowSelection(const bool Value);
	AnsiString __fastcall GetNodeParameter(Comctrls::TTreeNode* Node, AnsiString HRef);
	void __fastcall SetNodeParameter(Comctrls::TTreeNode* Node, AnsiString HRef, const AnsiString Value);
	AnsiString __fastcall IsParam(int x, int y, bool GetFocusRect, Comctrls::TTreeNode* &Node, Types::TRect &hr, Types::TRect &cr, AnsiString &CID, AnsiString &CT, AnsiString &CV);
	AnsiString __fastcall HTMLPrep(AnsiString s);
	AnsiString __fastcall InvHTMLPrep(AnsiString s);
	void __fastcall SetShadowColor(const Graphics::TColor Value);
	void __fastcall SetShadowOffset(const int Value);
	void __fastcall SetWordWrap(const bool Value);
	void __fastcall SetLineSpacing(const int Value);
	int __fastcall GetParamItemRefCount(int Item);
	int __fastcall GetParamNodeRefCount(Comctrls::TTreeNode* Node);
	AnsiString __fastcall GetParamItemRefs(int Item, int Index);
	int __fastcall GetParamRefCount(void);
	AnsiString __fastcall GetParamRefs(int Index);
	void __fastcall StartParamEdit(AnsiString param, Comctrls::TTreeNode* Node, const Types::TRect &hr);
	void __fastcall StartParamDir(AnsiString param, AnsiString curdir, const Types::TRect &hr);
	Types::TRect __fastcall GetParamRect(AnsiString href);
	int __fastcall GetParamNodeIndex(Comctrls::TTreeNode* Node, AnsiString href);
	Comctrls::TTreeNode* __fastcall GetParamRefNode(AnsiString href);
	AnsiString __fastcall GetParameter(AnsiString href);
	void __fastcall SetParameter(AnsiString href, const AnsiString Value);
	void __fastcall SetHover(const bool Value);

⌨️ 快捷键说明

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