MKI_CONTEXT_MENU (Basic Classes) New in Version 2023.2

www.CAD6.com

C++ Syntax

class MKI_CONTEXT_MENU

{

  public:

 

  MKI_POINT m_cPoint;

 

  __int32 m_nCount,

          m_anCommandID[MKI_PLUGIN_CONTEXT_MAX];

  LPWSTR  m_aszMenuText[MKI_PLUGIN_CONTEXT_MAX];

 

  MKI_CONTEXT_MENU( void );

 

  void

  Init( void );

};

 

This structure contains a list of context menu command descriptions to be filled by the plug-in.

 

Element Description

m_cPoint

[MKI_POINT] Coordinates in internal millimeters of the point that was right-clicked by the user to call the context menu. Can be used to determine which sub-element of the extended object shall be handled. This value must not be modified!

m_nCount

[__int32] Number of content menu entries in this structure, at most MKI_PLUGIN_CONTEXT_MAX.

m_anCommandID

[__int32[]] List of command IDs that identify the respective command. You can choose these IDs freely as they will only be reported back to this plug-in by a MKI_NOTIFY_EXT_APPLY_CONTEXT call (see MKI_CONTEXT_COMMAND).

m_szItemName

[LPWSTR[]] List of menu item texts for the respective commands.

All context menu entries should start with a shortcut key separated from the command name by two spaces, e.g. "&1  Command One". These shortcuts should be the digits '1' through '0' to not create conflicts with the shortcuts used by the main application (which may change without notice).

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH