Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic System Architect (steve huntington)
Decrease font size
Increase font size
Topic Title: SA 10.4 - Create Custom Menu via MACRO
Topic Summary: How do I create custom menu items via a macro to execute macros?
Created On: 21-May-2007 14:33
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by SA Team, on Tuesday, May 22, 2007 3:29 PM

Answer:

Menu items can now be added to the menu system once and only once.

Older macro menu code should work fine, with the exception that the position of a menu item can only be affected the first time a menu item is added.

So by removing the menu item, you have stopped it ever appearing at that location.
If you want to see the item again, you can customize the menus and position the macro menu item back where it was. Alternatively, to completely reset your menus you can Right click on the toolbar and choose -
'Reset Toolbars'   - this will put your menu file back to its original state the next time you start SA.

The logic behind these changes :
If menus are to be customizable by the user, no menus should have a location forced on them. So once a user has moved a menu item, it should not re-appear in places they don't want it.
This means that almost all of our menu system is now customizable. Even menu items placed by SA can be moved and their new location will stick.

From a macro coding perspective the use of :-
Application.ShowMenu("MACROPRJ.MODULE.MACRONAME", TRUE / FALSE)
is now recommended for showing and hiding menu items.

So you would Insert them at macro startup, then show and hide from that point onwards.
Noting that the Insert will only perform a SHOW, if the item already exists in the menu system for that user.

Hope this helps
Ian

 21-May-2007 14:33
User is offline View Users Profile Print this message


Jennifer Ericks

Posts: 6
Joined: 2-Nov-2006

Does version 10.4 support VBA code to create custom menu items to execute macros?

In previous versions of SA we've created a auto-execute macro which creates our custom menu items which by users can use the menu to execute other custom reports / macros.

It seems that version 10.4 does not support this as I accidentally deleted a menu item and the auto-execute macro no longer re-establishes the menu items.

Any help would be appreciated.
Report this to a Moderator Report this to a Moderator
 22-May-2007 15:15
User is offline View Users Profile Print this message


SA Team

Posts: 148
Joined: 18-Nov-2005

Answer Answer

Menu items can now be added to the menu system once and only once.

Older macro menu code should work fine, with the exception that the position of a menu item can only be affected the first time a menu item is added.

So by removing the menu item, you have stopped it ever appearing at that location.
If you want to see the item again, you can customize the menus and position the macro menu item back where it was. Alternatively, to completely reset your menus you can Right click on the toolbar and choose -
'Reset Toolbars'   - this will put your menu file back to its original state the next time you start SA.

The logic behind these changes :
If menus are to be customizable by the user, no menus should have a location forced on them. So once a user has moved a menu item, it should not re-appear in places they don't want it.
This means that almost all of our menu system is now customizable. Even menu items placed by SA can be moved and their new location will stick.

From a macro coding perspective the use of :-
Application.ShowMenu("MACROPRJ.MODULE.MACRONAME", TRUE / FALSE)
is now recommended for showing and hiding menu items.

So you would Insert them at macro startup, then show and hide from that point onwards.
Noting that the Insert will only perform a SHOW, if the item already exists in the menu system for that user.

Hope this helps
Ian



-------------------------

Senior Software Developer
Telelogic UK Ltd.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic System Architect forum.
There are currently 1 users logged in.
The most users ever online was 16 on 30-Oct-2008 at 14:46.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.