Jump to content
Developer Wiki and Function Reference Links ×

Add Command Menu plugin


mashura

Recommended Posts

Please help with connecting plugin library module to call from workspace

(menu command for simply).

I compile a TesterModule in SDKVW1600(131671)_Win and get 2 files:

1. Resource QTime compiled file TesterModule.qtr, what consist only

STR#

and TEXT definitions, with out a MITM resources!!!

2. Dynamic Library module TesterModule.vlb, what have a initialize structure for

calling

VWExtensionMenu( cbp, gMenuDef, NULL ) with gMenuDef definition by default.

static SMenuDef gMenuDef = {

/*Needs*/ 0x00,

/*NeedsNot*/ 0x00,

/*Title*/ {12000, 1},

/*Category*/ {12000, 2},

/*HelpText*/ {12000},

/*VersionCreated*/ 16,

/*VersoinModified*/ 0,

/*VersoinRetired*/ 0

};

After that I copy them to plug-ins folder and run VectorWorks 2010.

A constructor :

CExtMenu::CExtMenu(CallBackPtr cbp)

: VWExtensionMenu( cbp, gMenuDef, NULL )

// : VWExtensionMenu( cbp, gMenuDef, gMenuChunksDef )

{

gSDK->AlertInform( "Tester Mdeule CExtMenu Constructor" );

}

called and show messagebox during loading application?

But in menus list in Workspace Editor I don?t see them:

(/*Title*/ {12000, 1},) -> ?Tester Menu?) for after

dragging in to workspace menu. (((

thanks for all.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...