I want to add a new Menu at particular position. I.e. before "Help"
CommandManager::CreateCommandGroup() function takes position{long} as an
argument.
e.g.
hres =
iCmdMgr->CreateCommandGroup(1,title,tooltiple,hint,position,&icmdGroup);
I tried to get the position of 'Help' menu by following 2 approaches
// Approach 1
1. Get Command Group for HELP menu - Couldn't succeed here
2. Get Menu position for the command group
// Approach 2
1. Get All command groups from Command manager. - I get Command
Group count as 0. I think the CommandManager::NumberOfGroups() function
returns 0
2. Iterate through them and find the 'Help' menu group by name
3. Get the position
Can any body help here ?
Or is there another approach for this ?
Thanks.
regards,
Vinay
I think my approaches were wrong.
Command manager and command groups are only applicable for custom add-in
menus added by user.
But still remains the main question.
How to get a position of a particular menu ( Menu group) in SolidWorks so
that we can add/position a new custom menu before or after it ?
e.g. how to position a new custom command group before 'Help' menu ?
Thanks.
Vinay
--------------------------------------------------
From: "Vinay CAD 1 GMail" <vjirga...@gmail.com>
Sent: Monday, July 20, 2009 3:46 PM
To: "SolidWorks API" <SolidWo...@googlegroups.com>
Subject: Adding a menu at particular position