How do undo, redo, and select all work?

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
harem
Posts: 13
Joined: Tue Jun 04, 2019 4:17 pm

How do undo, redo, and select all work?

Post by harem » Thu Jun 20, 2019 10:47 pm

How do undo, redo, and select all commands on the radial menu work?

I find that these are automatically working in my application even though I didn't set them up. They don't cause controller events but just click events on the menu items. How is it identifying and activating them and which other commands do that too?

jwick
Moderator
Moderator
Posts: 2539
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: How do undo, redo, and select all work?

Post by jwick » Fri Jun 21, 2019 12:33 am

They send keyboard events to the system. As such, they can be keyboard layout specific.
Many of these are defaults we created that make sense for our typical customers.
As you probably guessed, it is all based on what cfg file is in use.

harem
Posts: 13
Joined: Tue Jun 04, 2019 4:17 pm

Re: How do undo, redo, and select all work?

Post by harem » Fri Jun 21, 2019 9:26 pm

OK, but where's the default config that gets inherited from? The one in %APPDATA% contains

<InheritsFrom>STR_DEFAULT_S80_V3DCMD</InheritsFrom>

But there's nothing in

%PROGRAMDATA%\3Dconnexion\3DxWare\Cfg

How can I see the contents of STR_DEFAULT_S80_V3DCMD which presumably has the keyboard shortcuts?

I can't have layout specific keyboard events because my application uses the same letters (CTRL+Z for undo, etc) regardless of layout.

jwick
Moderator
Moderator
Posts: 2539
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: How do undo, redo, and select all work?

Post by jwick » Mon Jun 24, 2019 12:22 am

If specific assignments are not made in an app-specific cfg file, they get inherited from somewhere else down the chain of cfgs.
The default cfgs we ship are in %programfiles%\3Dconnexion\3DxWare\3DxWinCore64\Cfg.

The complete CfgChain for your app will currently be: %appdata%/3Dconnexion/3DxWare/Cfg/<your app name.xml> --->
<3DxWinCore64>/AppDefCfg_S80_V3DCMDs.xml ---->
<3DxWinCore64>/Base.xml.

The Radial Menu that contains the redo, undo commands is in Base, ID = Base_MenuRM1. This is included by default.

This starts to get into the area where I can't predict what you want to do, so I give you the ability to do whatever you want to do. If you want to remove that menu completely, you can do one thing. If you want to create another menu that is specific to your app, you can do another. I suggest you leave that menu alone and create and use another.

There is an editing mode to the GUI that helps you do some of these things. We can help you with that over the api support email.

harem
Posts: 13
Joined: Tue Jun 04, 2019 4:17 pm

Re: How do undo, redo, and select all work?

Post by harem » Thu Jun 27, 2019 4:35 pm

Thanks jwick. I want to remove those menu options altogether, even from the properties button configuration window so nobody can try to assign them to a button or a menu, since they won't work correctly. I also want to add my own versions of them that use the correct shortcut keys for my application. I should have no trouble adding my own versions using application commands but not sure how to remove the defaults. Can I somehow do it without installing a custom cfg file for my application?

jwick
Moderator
Moderator
Posts: 2539
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: How do undo, redo, and select all work?

Post by jwick » Fri Jun 28, 2019 12:17 am

I've tried to give you the flexibility to do anything you want. You can do modifications on anything you see now because we use the same mechanisms that I have made available for you. It's a very open and flexible architecture.

But the mechanism for much of it is the XML file. This is how your desired settings get shared amongst all the components of our software that contribute to what you see.

I can help you with this. But it is probably easier through the API email address.

Post Reply