Visio Guy

Visio Discussions => Programming & Code => Topic started by: asardinas on November 20, 2012, 08:40:09 PM

Title: Controlling the display of the Shape Data window from VBA procedure
Post by: asardinas on November 20, 2012, 08:40:09 PM
New to Visio..

I would like to control the display of the shape data window from a double click

I was trying to drive a VBA procedure from the EventDblClick from the shape sheet but I can not get the shape data window to appear

Any help would be appreciated
Title: Re: Controlling the display of the Shape Data window from VBA procedure
Post by: Jumpy on November 21, 2012, 07:54:56 AM
The ShapeDataWindow or the ShapeDataDialog? For the last place =DOCMD(1312) in DblClickCell.
Title: Re: Controlling the display of the Shape Data window from VBA procedure
Post by: asardinas on November 21, 2012, 02:53:40 PM
I can use the DoCmd(1312) to bring up the  ShapeDataDialog but the behavior is different from the The ShapeDataWindow. The hide/view actions do not work from the ShapeDataDialog but do when the ShapeDataWindow is used
Title: Re: Controlling the display of the Shape Data window from VBA procedure
Post by: charlykuntz on November 22, 2012, 09:02:02 AM
For the shape data window it's :

Application.DoCmd(1658)

As an alternative you can interate through the Application.Window.Windows collection, look for the shape data window and toggle its visibility.
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 50 (show)
Files included: 25 - 925KB. (show)
Memory used: 770KB.
Tokens: post-login.
Cache hits: 7: 0.00101s for 22,301 bytes (show)
Cache misses: 1: (show)
Queries used: 9.

[Show Queries]