<?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: ListBoxes, RadioButtons, Checkboxes in ParameterInfo in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/listboxes-radiobuttons-checkboxes-in-parameterinfo/m-p/492419#M13254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to list a shapefile's attribute table using a combobox in a custom tool IGPFunction2 implementation by using the following snippet inside the ParameterInfo property. I wanted a checklist or listbox but can't find how to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IArray parameters = new ArrayClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Parameter 1: field_param (List fields in combobox)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IGPParameterEdit3 field_param = new GPParameterClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.Name = "field_param";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.DisplayName = "Select Field (with unique values)";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.DataType = new FieldTypeClass() as IGPDataType;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.Value = new FieldClass() as IGPValue;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.AddDependency("input_features"); //input_features DataType should be GPFeatureLayerTypeClass()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.Direction = esriGPParameterDirection.esriGPParameterDirectionInput;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.ParameteryType = esriGPParameterType.esriGPParameterTypeRequired;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameters.Add(field_param);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the tool is double-clicked in ArcToolBox, the field_param lists all fields of the input_features (shapefile or feature class).&amp;nbsp; Note the AddDependency property.&amp;nbsp; The fields change depending on the input_features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone knows how to convert the above into checkboxes (instead of combobox)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2012 16:56:55 GMT</pubDate>
    <dc:creator>MarilynGambone</dc:creator>
    <dc:date>2012-04-02T16:56:55Z</dc:date>
    <item>
      <title>ListBoxes, RadioButtons, Checkboxes in ParameterInfo</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/listboxes-radiobuttons-checkboxes-in-parameterinfo/m-p/492417#M13252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do I specify a listbox, radiobutton, or checkbox in ParameterInfo?&amp;nbsp; I can't really use IGPCodedValueDomain in lieu of listbox because there are hundreds of items. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 14:44:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/listboxes-radiobuttons-checkboxes-in-parameterinfo/m-p/492417#M13252</guid>
      <dc:creator>MarilynGambone</dc:creator>
      <dc:date>2012-03-20T14:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: ListBoxes, RadioButtons, Checkboxes in ParameterInfo</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/listboxes-radiobuttons-checkboxes-in-parameterinfo/m-p/492418#M13253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, then... if it's not possible to use a listbox to display features of a shapefile, is it possible to show a windows form instead of the ParameterInfo window when user clicks a custom tool in ArcToolBox?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 15:30:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/listboxes-radiobuttons-checkboxes-in-parameterinfo/m-p/492418#M13253</guid>
      <dc:creator>MarilynGambone</dc:creator>
      <dc:date>2012-03-21T15:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: ListBoxes, RadioButtons, Checkboxes in ParameterInfo</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/listboxes-radiobuttons-checkboxes-in-parameterinfo/m-p/492419#M13254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to list a shapefile's attribute table using a combobox in a custom tool IGPFunction2 implementation by using the following snippet inside the ParameterInfo property. I wanted a checklist or listbox but can't find how to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IArray parameters = new ArrayClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Parameter 1: field_param (List fields in combobox)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IGPParameterEdit3 field_param = new GPParameterClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.Name = "field_param";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.DisplayName = "Select Field (with unique values)";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.DataType = new FieldTypeClass() as IGPDataType;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.Value = new FieldClass() as IGPValue;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.AddDependency("input_features"); //input_features DataType should be GPFeatureLayerTypeClass()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.Direction = esriGPParameterDirection.esriGPParameterDirectionInput;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field_param.ParameteryType = esriGPParameterType.esriGPParameterTypeRequired;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameters.Add(field_param);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the tool is double-clicked in ArcToolBox, the field_param lists all fields of the input_features (shapefile or feature class).&amp;nbsp; Note the AddDependency property.&amp;nbsp; The fields change depending on the input_features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone knows how to convert the above into checkboxes (instead of combobox)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 16:56:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/listboxes-radiobuttons-checkboxes-in-parameterinfo/m-p/492419#M13254</guid>
      <dc:creator>MarilynGambone</dc:creator>
      <dc:date>2012-04-02T16:56:55Z</dc:date>
    </item>
  </channel>
</rss>

