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: How to capture an SA Event?
Topic Summary:
Created On: 15-Oct-2008 11:08
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.
 15-Oct-2008 11:08
User is offline View Users Profile Print this message


Jeffrey Mak

Posts: 16
Joined: 28-Aug-2008

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?
Report this to a Moderator Report this to a Moderator
 15-Oct-2008 15:32
User is offline View Users Profile Print this message


Patrick Mulligan

Posts: 3
Joined: 14-Oct-2008

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
Report this to a Moderator Report this to a Moderator
 15-Oct-2008 15:38
User is offline View Users Profile Print this message


Peter Crabb-Wyke

Posts: 73
Joined: 3-May-2007

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.
Report this to a Moderator Report this to a Moderator
 15-Oct-2008 15:41
User is offline View Users Profile Print this message


Patrick Mulligan

Posts: 3
Joined: 14-Oct-2008

Is the context like a servlet context, where you can find the user for example? I am assuming yes.

-------------------------
-- Cheers, Patrick
Report this to a Moderator Report this to a Moderator
 28-Oct-2008 09:47
User is offline View Users Profile Print this message


Natty Gur

Posts: 14
Joined: 14-Jun-2007

Jeffry,

Look at the classes in the library that I provided you, you have there some good examples.

Natty.
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.