![]() |
Telelogic System Architect (steve huntington) | ![]() |
Topic Title: How to capture an SA Event? Topic Summary: Created On: 15-Oct-2008 11:08 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
The VBA Extensibility Document only mentioned what Event can be captured.
Is there any document teach how an SA Event can be captured? For example, how to subscribe an object as the event handler? Any step by step example/ code sample showing how I can capture the SA Event? |
|
![]() |
|
![]() |
|
Here is a link to some good stuff on handling events. This is simply a VBS thing and you declare an event handler and wire it up. Pretty straightforward stuff.
http://podgoretsky.com/ftp/Doc...ic%20Script/ch18fi.htm The one question I now have is are all the event signatures provided or do we need to define them. When I get a minute I'll take a look unless someone knows up front. ------------------------- -- Cheers, Patrick Edited: 15-Oct-2008 at 15:38 by Patrick Mulligan |
|
![]() |
|
![]() |
|
Not well documented. You create a procedure within the module eventCLS
The format: Private Sub SAEvent_enventname follow with parameters as appropriate. Don't get carried away with them, you need all users to have the correct version of the macro file and have it enabled. Every macro triggered by an event will be a performance overhead. We ditched using events to create context specific menus and now have all our tailored menus visible all the time and instead test if the context is correct when the macro is run. |
|
![]() |
|
![]() |
|
Is the context like a servlet context, where you can find the user for example? I am assuming yes.
------------------------- -- Cheers, Patrick |
|
![]() |
|
![]() |
|
Jeffry,
Look at the classes in the library that I provided you, you have there some good examples. Natty. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.