Select to view content in your preferred language

Passing Dockable window Buttons and parameters to a Customized tool

1172
2
05-03-2010 07:08 AM
asafati
Emerging Contributor
Hello,
I'm trying to pass one of my dockable window objects (for example the "ListView" ) to a customized tool that i am developing...

The tool is supposed to update the list view...

In my project directory i have the dockable window associated files and the tool class (that implements base tool)

How can i pass the "ListView" from the dockable window to the tool?

I'm trying to do so by calling the name of the dockable window and then access the ListView (by a dot)
but, it says that i must use the instance of the dockable window?

There is no main (using Dll's), so i don't know excatly how to use the instance of of the dockable window and its buttons...


Please help me!

Thank's!
Asaf.
0 Kudos
2 Replies
KirkKuykendall
Deactivated User
Try returning the listview via IDockableWindowDef.UserData.  In your custom tool, you should be able to access the listview by casting IDockableWindow.UserData.
0 Kudos
asafati
Emerging Contributor
Thank's,

I just did it...

And it works...

I've found a very good example here, that helped me work with my problem...

http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/e439cf8c-778b-4fdb-b4c4-fab51a546ac6.htm


Thank's,
kirkktx!
0 Kudos