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

📄 menuedit.hpp

📁 Object Inspector for Delphi (3-7,2005) and C++ Builder (5,6)
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'MenuEdit.pas' rev: 6.00

#ifndef MenuEditHPP
#define MenuEditHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <PropEdit.hpp>	// Pascal unit
#include <PropList.hpp>	// Pascal unit
#include <TypInfo.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <CompInsp.hpp>	// Pascal unit
#include <InspCtrl.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <ExtCtrls.hpp>	// Pascal unit
#include <ComCtrls.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Menuedit
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TMenuPropertyEditor;
class PASCALIMPLEMENTATION TMenuPropertyEditor : public Propedit::TPropertyEditor 
{
	typedef Propedit::TPropertyEditor inherited;
	
private:
	Menus::TMenuItem* __fastcall GetMenuItems(void);
	
public:
	virtual bool __fastcall Execute(void);
	__property Menus::TMenuItem* MenuItems = {read=GetMenuItems};
public:
	#pragma option push -w-inl
	/* TPropertyEditor.Create */ inline __fastcall virtual TMenuPropertyEditor(Proplist::TProperty* AProp) : Propedit::TPropertyEditor(AProp) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TMenuPropertyEditor(void) { }
	#pragma option pop
	
};


#pragma option push -b-
enum TTargetPosition { tpNone, tpTop, tpItem, tpBottom };
#pragma option pop

class DELPHICLASS TfrmMenuEditor;
class PASCALIMPLEMENTATION TfrmMenuEditor : public Forms::TForm 
{
	typedef Forms::TForm inherited;
	
__published:
	Extctrls::TSplitter* splMain;
	Comctrls::TTreeView* trvItems;
	Extctrls::TPanel* pnlButtons;
	Stdctrls::TButton* btnNewItem;
	Stdctrls::TButton* btnNewSubitem;
	Stdctrls::TButton* btnDeleteItem;
	Extctrls::TPanel* pnlSysButtons;
	Stdctrls::TButton* btnOK;
	Stdctrls::TButton* btnCancel;
	Comctrls::TTabControl* tbcInspector;
	Compinsp::TComponentInspector* cinItemProperties;
	void __fastcall btnAddItemClick(System::TObject* Sender);
	void __fastcall trvItemsDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState State, bool &Accept);
	void __fastcall trvItemsDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
	void __fastcall FormActivate(System::TObject* Sender);
	void __fastcall trvItemsChange(System::TObject* Sender, Comctrls::TTreeNode* Node);
	void __fastcall trvItemsStartDrag(System::TObject* Sender, Controls::TDragObject* &DragObject);
	void __fastcall FormDestroy(System::TObject* Sender);
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall btnDeleteItemClick(System::TObject* Sender);
	void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
	void __fastcall cinItemPropertiesGetValuesList(System::TObject* Sender, int TheIndex, const Classes::TStrings* Strings);
	void __fastcall tbcInspectorChange(System::TObject* Sender);
	void __fastcall cinItemPropertiesSetValue(System::TObject* Sender, int TheIndex, AnsiString &Value, bool &EnableDefault);
	void __fastcall cinItemPropertiesExit(System::TObject* Sender);
	
private:
	Graphics::TCanvas* ListViewCanvas;
	TMenuPropertyEditor* FEditor;
	Classes::TComponent* FItemsOwner;
	TTargetPosition TargetPosition;
	Comctrls::TTreeNode* DragNode;
	void __fastcall MenuToNode(void);
	void __fastcall NodeToMenu(void);
	void __fastcall DrawTargetIndicator(void);
	HIDESBASE MESSAGE void __fastcall WMGetMinMaxInfo(Messages::TMessage &Msg);
public:
	#pragma option push -w-inl
	/* TCustomForm.Create */ inline __fastcall virtual TfrmMenuEditor(Classes::TComponent* AOwner) : Forms::TForm(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.CreateNew */ inline __fastcall virtual TfrmMenuEditor(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(AOwner, Dummy) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TfrmMenuEditor(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TfrmMenuEditor(HWND ParentWindow) : Forms::TForm(ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Menuedit */
using namespace Menuedit;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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

⌨️ 快捷键说明

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