Пожалуйста, кое-что взял из примеров выложеных на esri.com
unit kk;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
{$WARN SYMBOL_PLATFORM OFF}
interface
uses
ComObj, ActiveX, K_TLB, StdVcl, esriCore_TLB,Graphics,Dialogs;
type
TKK = class(TAutoObject, ICommand)
private
m_pApp : IApplication; //ArcMap application
protected
CommandBitmap : TBitmap; // Glyph for CommandButton
function Get_Bitmap(out Bitmap: OLE_HANDLE): HResult; stdcall;
function Get_Caption(out Caption: WideString): HResult; stdcall;
function Get_Category(out categoryName: WideString): HResult; stdcall;
function Get_Checked(out Checked: WordBool): HResult; stdcall;
function Get_Enabled(out Enabled: WordBool): HResult; stdcall;
function Get_HelpContextID(out helpID: Integer): HResult; stdcall;
function Get_HelpFile(out HelpFile: WideString): HResult; stdcall;
function Get_Message(out Message: WideString): HResult; stdcall;
function Get_Name(out Name: WideString): HResult; stdcall;
function Get_Tooltip(out Tooltip: WideString): HResult; stdcall;
function OnClick: HResult; stdcall;
function OnCreate(const hook: IDispatch): HResult; stdcall;
end;
implementation
uses ComServ;
function TKK.Ge