Author Topic: Managing Shape Data GUI  (Read 880 times)

0 Members and 1 Guest are viewing this topic.

vojo

  • Hero Member
  • *****
  • Posts: 1523
Managing Shape Data GUI
« on: January 17, 2019, 01:32:01 AM »
Visio 2013

Ok...so I have a group of shapes. Every time I change the format of one of the child shapes, the shape data prompt fires for the parent shape.  How can enable/disable??
Specifically, I want shape data at parent level to show ONLY when shape data button on menu bar is selected
(not any old "spontaneous" presentation due to some child shape format change)




wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3829
  • Ideas Visio-lized into solutions
Re: Managing Shape Data GUI
« Reply #1 on: January 17, 2019, 02:52:12 AM »
Hey Vojo,
Can you upload a simple example?
Visio 2019 Pro

vojo

  • Hero Member
  • *****
  • Posts: 1523
Re: Managing Shape Data GUI
« Reply #2 on: January 17, 2019, 09:30:15 AM »
details included

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3829
  • Ideas Visio-lized into solutions
Re: Managing Shape Data GUI
« Reply #3 on: January 17, 2019, 02:51:34 PM »
Haven't found a solution, but, the cause is the DOCMD(1312) reacts to the active shape, not to the shape containing the command.  In your scenario, the Master level shape is selected, so it's the active shape.  You push into the appropriate subshape and call DOCMD(1312) from there.  Unfortunately, the subshape is not the active shape.

DOCMD didn't accept format sheet.xyz!DOCMD(1312).  So, it's not pass-able.  Yuk.

Somehow, you need to select / activate the subshape first.

Visio 2019 Pro

vojo

  • Hero Member
  • *****
  • Posts: 1523
Re: Managing Shape Data GUI
« Reply #4 on: January 17, 2019, 03:26:58 PM »
don't worry about the DOCMD ...issue there is that you have to select shape since DOCMD (as well as visio in general) are only for the shape selected...hence why I am heading down this path

So if you look at a panel shapesheet, you will see a geometry3 in front and back panels that bring a tab,
so that you can select it. (back panel hides behind other shapes..so need a way to select).
The actions rows at the parent level, enables the a give tab...user can then select which one since you have to select the child of interest to get the shape data for that selected child.
(it appears the parent action row to change shape edit behavior does not seem to create this issue).

The problem is when the action is picked at the parent, the enabling a given tab of given child launches parent shape data GUI (which is not wanted).   It sort seems that there is a related effect of actions trigger shape data screens.

FYI...I am working of do all this in shape data (context sensitive presentation of decision choices). 
So this effort to make action row work might be mute.

vojo

  • Hero Member
  • *****
  • Posts: 1523
Re: Managing Shape Data GUI
« Reply #5 on: January 17, 2019, 03:34:38 PM »
now all thru shapedata...no actions approach.

Functionally works...got to clean up

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3829
  • Ideas Visio-lized into solutions
Re: Managing Shape Data GUI
« Reply #6 on: January 17, 2019, 05:14:16 PM »
Ah!!  I see the purpose of the little tab.  It actually does select the shape.  So, In the main menu, instead of firing the DOCMD, eliminate that function.  Just keep the ability to keep the desired edit target.  Then,  add actions to each subshape to call the DOCMD.  So, after tab is clicked.  Subshape gets selected.  Right click menu allows you to select the ShapeData.  There's your menu.

You had all the hard work in place.  Just need to change location of the DOCMD of the subshapes.
Visio 2019 Pro

vojo

  • Hero Member
  • *****
  • Posts: 1523
Re: Managing Shape Data GUI
« Reply #7 on: January 17, 2019, 11:10:18 PM »
You are completely right

Thx for the help