Is it possible to duplicate and rename a control region, in order to have two of the same?
We have separate tabs on our toolbar for Drawing and Measurement/Plotting Coordinates. Both tabs have an Edit button that is supposed to open the EditControlRegion. However, the measurement EditControlRegion opens on the Drawing tab instead of the Measurement tab.

This is how it looks:
Measurment Tab

Drawing Tab

I’ve read that you can’t have two tools use the same control region on the same toolbar, so I’m wondering if I can duplicate and rename the EditControlRegion to MeasureEditControlRegion in Desktop.json, or elsewhere and have the second edit button point to that? This section of the JSON file looks promising, but I’m not sure if I’m on the right track or not. Any help would be appreciated.
"stateName": "EditingMarkupState",
"widgetId": "TabbedToolbarTransientBase",
"region": "EditControlRegion",
"items": [
{
"id": "EditingSnappingToggle",
"type": "toggleButton",
"iconUri": "Resources/Images/Icons/Toolbar/snapping-24.png",
"toggleStateName": "SnappingState",
"toggleOn": {
"name": "@language-toolbar-snapping-enable",
"command": "ActivateSnapping",
"tooltip": "@language-toolbar-snapping-alt-enable"
},
"toggleOff": {
"name": "@language-toolbar-snapping-disable",
"command": "DeactivateSnapping",
"tooltip": "@language-toolbar-snapping-alt-disable"
}
},
{
"id": "EditingSnappingLayersButton",
"type": "button",
"iconUri": "Resources/Images/Icons/Toolbar/layers-snapping-24.png",
"command": "ActivateSelectLayersForSnapping",
"commandParameter": null,
"hideOnDisable": false,
"name": "@language-toolbar-snapping-select-layers",
"tooltip": "@language-toolbar-snapping-select-layers-tooltip"
},
{
"id": "ChangeMarkupStyle",
"type": "toggleButton",
"iconUri": "Resources/Images/Icons/Toolbar/styles-24.png",
"toggleStateName": "MarkupStyleToggleState",
"toggleOn": {
"name": "@language-toolbar-markup-change-markup-style",
"tooltip": "@language-toolbar-markup-change-markup-style-tooltip",
"command": "CreateMarkupStyleView"
},
"toggleOff": {
"name": "@language-toolbar-markup-change-markup-style",
"tooltip": "@language-toolbar-markup-change-markup-style-tooltip",
"command": "HideMarkupStyleView"
}
}
]
},
{
"stateName": "EditingMeasurementMarkupState",
"widgetId": "MeasurementToolTransientToolbar",
"region": "EditControlRegion"
0
-
Pennie,
Were you able to figure this out?
Thanks,
Bobby Jo0 -
Hi Pennie and Bobby Jo,
We do have this behaviour filed as a known issue, GVH-15793. I've tried along the same lines that you mentioned- duplicating the control region or other associated parts- but as far as I can there isn't a json edit that we can use as a workaround here.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer