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

📄 propertyeditor.~h

📁 delphi做的类似与属性编辑器一样的控件
💻 ~H
字号:
//---------------------------------------------------------------------------

#ifndef PropertyEditorH
#define PropertyEditorH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>

#include <ImgList.hpp>
#include "ThemeMgr.hpp"
#include "VirtualTrees.hpp"
#include "Editors.h"
#include <ComCtrls.hpp>

#define min(a, b)  (((a) < (b)) ? (a) : (b))
//---------------------------------------------------------------------------
const WM_STARTEDITING = WM_USER + 778;
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TVirtualStringTree *VST3;
        TImageList *TreeImages;
        TButton *Button1;
        TButton *Button2;
        TThemeManager *ThemeManager1;
        TStatusBar *StatusBar;
        void __fastcall VST3Change(TBaseVirtualTree *Sender,
          PVirtualNode Node);
        void __fastcall VST3CreateEditor(TBaseVirtualTree *Sender,
          PVirtualNode Node, TColumnIndex Column, IVTEditLink *EditLink);
        void __fastcall VST3Editing(TBaseVirtualTree *Sender,
          PVirtualNode Node, TColumnIndex Column, bool &Allowed);
        void __fastcall VST3GetHint(TBaseVirtualTree *Sender,
          PVirtualNode Node, TColumnIndex Column,
          TVTTooltipLineBreakStyle &LineBreakStyle, WideString &HintText);
        void __fastcall VST3GetImageIndex(TBaseVirtualTree *Sender,
          PVirtualNode Node, TVTImageKind Kind, TColumnIndex Column,
          bool &Ghosted, int &ImageIndex);
        void __fastcall VST3GetText(TBaseVirtualTree *Sender,
          PVirtualNode Node, TColumnIndex Column, TVSTTextType TextType,
          WideString &CellText);
        void __fastcall VST3IncrementalSearch(TBaseVirtualTree *Sender,
          PVirtualNode Node, const WideString SearchText, int &Result);
        void __fastcall VST3InitChildren(TBaseVirtualTree *Sender,
          PVirtualNode Node, DWORD &ChildCount);
        void __fastcall VST3InitNode(TBaseVirtualTree *Sender,
          PVirtualNode ParentNode, PVirtualNode Node,
          TVirtualNodeInitStates &InitialStates);
        void __fastcall VST3PaintText(TBaseVirtualTree *Sender,
          const TCanvas *TargetCanvas, PVirtualNode Node,
          TColumnIndex Column, TVSTTextType TextType);
        void __fastcall VST3StateChange(TBaseVirtualTree *Sender,
          TVirtualTreeStates &Enter, TVirtualTreeStates &Leave);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall VST3GetNodeDataSize(TBaseVirtualTree *Sender,
          int &NodeDataSize);
private:	// User declarations
        WZZ_Editors_namespace::TPropertyEditLink* PropertyLink;
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
        void __fastcall WMStartEditing(TMessage & Msg);
protected:
        BEGIN_MESSAGE_MAP
                VCL_MESSAGE_HANDLER(WM_STARTEDITING, TMessage, WMStartEditing)
        END_MESSAGE_MAP(TForm)
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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