Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Custom ToolBar with custom commands and menus

$
0
0
Hi,

I need to create a custom toolbar programmatically and add custom commands / menus to it. The whole toolbar needs to be persistent and be handed over to other people.

In the last weeks I was fuzzing around with .NET and IToolBardef, BaseCommand, ICommandItem and what not but I just couldn't add the custom commands to the toolbar, just standard ESRI-commands would work.

Can you please tell me, if I can use Python Scripting for this and is it possible to start Python scripts from xaml-Dialogs? I know there are a couple of Python tutorials around but before I invest a lot of time again I'd like to know if Python scripting is basically the right approach to fulfill my tasks.

Thanks a lot in advance for your help!

Edit: Sorry, I forgot to mention that I use VS 2010 with .NET3.5 for ArcGIS 10.0 and higher.

Kianar

Viewing all articles
Browse latest Browse all 2485

Trending Articles