<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use the GenericWindow co-class? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231360#M6024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I can't find what I want in the .NET docs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Java docs indicate that if you set the application reference of a Generic Window, that it needs a reference to another Automation Object.&amp;nbsp; So maybe you don't need the application window's handle after all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I created a simple button to launch a GenericWindow, I got an error on the show method, but I also got a Generic Window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add-in Code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
public class Button1 extends Button {

&amp;nbsp;&amp;nbsp;&amp;nbsp; /**
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Called when the button is clicked.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @exception java.io.IOException if there are interop problems.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @exception com.esri.arcgis.interop.AutomationException if the component throws an ArcObjects exception.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick() throws IOException, AutomationException {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GenericWindow genWindow = new GenericWindow();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; genWindow.setApplicationByRef(app);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; genWindow.setName("Window 1");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; genWindow.setTitle("Generic Window Test");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; genWindow.putPosition(100, 100, 500, 500);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; genWindow.show(true);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void init(IApplication app) throws IOException, AutomationException {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; super.init(app);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.app = app;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxDoc = (IMxDocument) app.getDocument();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = mxDoc.getActiveView().getFocusMap();
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; private IApplication app;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private IMxDocument mxDoc;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private IMap map;
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error message from log file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
INFO::Using the following arguments to create the JVM
-Djava.class.path=C:\Program Files (x86)\ArcGIS\Desktop10.0\\java\lib\arcobjects.jar
-Xms64m
-Xmx128m
-Xss512k
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8013
INFO::Successfully created an instance of : com/esri/arcgis/addinframework/AddInFactory
java.lang.reflect.InvocationTargetException

&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)

Caused by: AutomationException: 0x80004005 - Unspecified error

&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.arcgis.arcmapui.GenericWindow.show(Unknown Source)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at Button1.onClick(Button1.java:27)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.arcgis.addinframework.InternalButton.onClick(Unknown Source)

&amp;nbsp;&amp;nbsp;&amp;nbsp; ... 4 more

SEVERE::CAUSE
AutomationException: 0x80004005 - Unspecified error

&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.arcgis.arcmapui.GenericWindow.show(Unknown Source)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at Button1.onClick(Button1.java:27)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.arcgis.addinframework.InternalButton.onClick(Unknown Source)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GenericWindow Screenshot is attached.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 11:14:13 GMT</pubDate>
    <dc:creator>LeoDonahue</dc:creator>
    <dc:date>2021-12-11T11:14:13Z</dc:date>
    <item>
      <title>How to use the GenericWindow co-class?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231357#M6021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everybody:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am testing around the ArcObjects 10 ESRI.ArcGIS.*UI interfaces and see what kind of out-of-box dialog boxes and windows are available to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am guessing that the GenericWindow co-class should popup a window for me&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/GenericWindowClass_Class/000v0000001q000000/" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/GenericWindowClass_Class/000v0000001q000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; However, I haven't been able to find a way to use it. I tried the following code and debuged it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*********************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IGenericWindow x = new GenericWindowClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x.Application = _mApplication;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x.Show(true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} catch (Exception ex)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show(ex.Message);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;**********************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;an exception is throwned at "x.Show(true)": Error HRESULT E_FAIL has been returned from a call to a COM component.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also searched around the namespace including the Object Model diagram, but didn't find any *Factory class to generate an instance of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How shall I use this co-class? and any clue how I can figure the similar information?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 19:05:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231357#M6021</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2012-06-15T19:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the GenericWindow co-class?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231358#M6022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think x.Application should be set to the _mApplication windows handle, something like _mApplication.getHWnd() or whatever the syntax is for .NET.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 19:17:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231358#M6022</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2012-06-15T19:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the GenericWindow co-class?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231359#M6023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think x.Application should be set to the _mApplication windows handle, something like _mApplication.getHWnd() or whatever the syntax is for .NET.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Idonahue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I got an "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." error after changing that line of code to "x.Application = _mApplication.hWnd" and the execution attempt to execute this line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Anything else I shall try?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 19:44:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231359#M6023</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2012-06-15T19:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the GenericWindow co-class?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231360#M6024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I can't find what I want in the .NET docs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Java docs indicate that if you set the application reference of a Generic Window, that it needs a reference to another Automation Object.&amp;nbsp; So maybe you don't need the application window's handle after all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I created a simple button to launch a GenericWindow, I got an error on the show method, but I also got a Generic Window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add-in Code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
public class Button1 extends Button {

&amp;nbsp;&amp;nbsp;&amp;nbsp; /**
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Called when the button is clicked.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @exception java.io.IOException if there are interop problems.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @exception com.esri.arcgis.interop.AutomationException if the component throws an ArcObjects exception.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick() throws IOException, AutomationException {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GenericWindow genWindow = new GenericWindow();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; genWindow.setApplicationByRef(app);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; genWindow.setName("Window 1");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; genWindow.setTitle("Generic Window Test");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; genWindow.putPosition(100, 100, 500, 500);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; genWindow.show(true);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void init(IApplication app) throws IOException, AutomationException {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; super.init(app);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.app = app;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxDoc = (IMxDocument) app.getDocument();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = mxDoc.getActiveView().getFocusMap();
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; private IApplication app;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private IMxDocument mxDoc;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private IMap map;
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error message from log file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
INFO::Using the following arguments to create the JVM
-Djava.class.path=C:\Program Files (x86)\ArcGIS\Desktop10.0\\java\lib\arcobjects.jar
-Xms64m
-Xmx128m
-Xss512k
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8013
INFO::Successfully created an instance of : com/esri/arcgis/addinframework/AddInFactory
java.lang.reflect.InvocationTargetException

&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)

Caused by: AutomationException: 0x80004005 - Unspecified error

&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.arcgis.arcmapui.GenericWindow.show(Unknown Source)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at Button1.onClick(Button1.java:27)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.arcgis.addinframework.InternalButton.onClick(Unknown Source)

&amp;nbsp;&amp;nbsp;&amp;nbsp; ... 4 more

SEVERE::CAUSE
AutomationException: 0x80004005 - Unspecified error

&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.arcgis.arcmapui.GenericWindow.show(Unknown Source)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at Button1.onClick(Button1.java:27)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.arcgis.addinframework.InternalButton.onClick(Unknown Source)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GenericWindow Screenshot is attached.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:14:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231360#M6024</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2021-12-11T11:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the GenericWindow co-class?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231361#M6025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I took out the line to show the window and I still got the window and no error message.&amp;nbsp; What is the show(true) method for if you don't need it?&amp;nbsp; Don't know.&amp;nbsp; It obviously does not set the title like I asked it either...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will ask, why use this?&amp;nbsp; Why not create your own window using a JFrame or a .NET window, or why not even use a dockable window?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 22:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231361#M6025</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2012-06-15T22:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the GenericWindow co-class?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231362#M6026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;[ATTACH=CONFIG]15298[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Idonahue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I tried the following code in C#:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
IGenericWindow x = new GenericWindowClass();
x.Application = _mApplication;
x.PutPosition(100, 100, 200, 200);
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and then a window pops up. If I add a show(true) statement to the end, then I will get an "Error HRESULT E_FAIL has been returned from a call to a COM component" error. In the aspect .NET works the same as JAVA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The reason I ask this question is that I am exploring how I can use the existing UI components in ArcMap through ArcObjects. I am making some data editing tool (ArcMap extension), and want to use as many out-of-box functions as possible, and at the same time enhance it to the client's specific situation. The attached picture is one of the things I want to do: add some additional buttons to the Attribute Window of ArcMap editing tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; How shall I start with?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I took out the line to show the window and I still got the window and no error message.&amp;nbsp; What is the show(true) method for if you don't need it?&amp;nbsp; Don't know.&amp;nbsp; It obviously does not set the title like I asked it either...&lt;BR /&gt;&lt;BR /&gt;I will ask, why use this?&amp;nbsp; Why not create your own window using a JFrame or a .NET window, or why not even use a dockable window?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231362#M6026</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2021-12-11T11:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the GenericWindow co-class?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231363#M6027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Adding buttons to existing controls, such as the Edit Attributes Window?&amp;nbsp; I have not seen this done using Add-ins.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 20:40:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231363#M6027</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2012-06-18T20:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the GenericWindow co-class?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231364#M6028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Adding buttons to existing controls, such as the Edit Attributes Window?&amp;nbsp; I have not seen this done using Add-ins.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then what about putting existing ESRI controls together with other .NET control (such as a button)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 20:29:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231364#M6028</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2012-06-19T20:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the GenericWindow co-class?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231365#M6029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Then what about putting existing ESRI controls together with other .NET control (such as a button)?&lt;BR /&gt;Thank you!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that there is a way to customize the ArcMap Attribute Window (such as to add a button).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is an example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//0001000004s8000000"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//0001000004s8000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 21:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-the-genericwindow-co-class/m-p/231365#M6029</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2012-06-25T21:26:14Z</dc:date>
    </item>
  </channel>
</rss>

