Visio 2003 Undo ScopeIds

A

Andy

Does anyone know if the scope ids are defined anywhere. I am catching
a selection change event, but need to determine if this selection was
created via an Area Select. I can find the scopeId is 1210 for Area
Select, but was hoping for a constant or enum to use rather than hard
coding a value.
 
C

Chris Roth [Visio MVP]

Hi Andy,

Usually you can look in the enumeration: VisUICmds for stuff like this.

For instance:

VisUICmd.visCmdDeselectAll = 1213

will jive with the Visio SDK's "Event Monitor Tool" reports when you
deselect all:

11814 >EnterScope Deselect All [1213;0;Deselect All;397222]
11815 | SelectionChanged window[2] Drawing1 Page-1 subtype is 128
[/hwnd=397222]
11816 <ExitScope Deselect All [1213;0;Deselect All;397222]

But I am not finding a constant defined for 1210, although it appears to
report as "1210" every time you net-select shapes.

--
Hope this helps,

Chris Roth
Visio MVP


Visio Guy: Smart Graphics for Visual People

Articles: http://www.visguy.com
Shapes: http://www.visguy.com/shapes
Dev: http://www.visguy.com/category/development/
Forum: http://www.viguy.com/vgforum
 
A

Andy

Yes thanks, I had used the event monitor to get the value. Just was
hpoing not to hard code it as sometimes these things seem to change
between different versions.

Hi Andy,

Usually you can look in the enumeration: VisUICmds for stuff like this.

For instance:

VisUICmd.visCmdDeselectAll = 1213

will jive with the Visio SDK's "Event Monitor Tool" reports when you
deselect all:

   11814 >EnterScope Deselect All [1213;0;Deselect All;397222]
   11815 | SelectionChanged window[2] Drawing1 Page-1 subtype is 128
[/hwnd=397222]
   11816 <ExitScope Deselect All [1213;0;Deselect All;397222]

But I am not finding a constant defined for 1210, although it appears to
report as "1210" every time you net-select shapes.

--
Hope this helps,

Chris Roth
Visio MVP

Visio Guy: Smart Graphics for Visual People

  Articles:http://www.visguy.com
  Shapes:  http://www.visguy.com/shapes
  Dev:      http://www.visguy.com/category/development/
  Forum:    http://www.viguy.com/vgforum
Does anyone know if the scope ids are defined anywhere. I am catching
a selection change event, but need to determine if this selection was
created via an Area Select. I can find the scopeId is 1210 for Area
Select, but was hoping for a constant or enum to use rather than hard
coding a value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top