Nevermind. I figured it out.<br><br>I can use something similar to this:<br>[code]<br>            &lt;StringVectorProperty <br>                name=&quot;PhaseNameInfo&quot;<br>                command=&quot;GetPhaseList&quot;<br>
                information_only=&quot;1&quot;&gt;<br>                &lt;StringArrayHelper /&gt;<br>            &lt;/StringVectorProperty&gt;<br>            &lt;StringVectorProperty <br>                name=&quot;PhaseName&quot;<br>
                command=&quot;SetPhase&quot;<br>                number_of_elements=&quot;1&quot;&gt;<br>                &lt;StringListDomain name=&quot;operation&quot;&gt;<br>                    &lt;RequiredProperties&gt;<br>
                        &lt;Property name=&quot;PhaseNameInfo&quot; <br>                            function=&quot;ArraySelection&quot;/&gt;<br>                    &lt;/RequiredProperties&gt;<br>                &lt;/StringListDomain&gt;<br>
            &lt;/StringVectorProperty&gt;<br>[/code]<br><br>and have two functions:<br>[code]<br>    void SetPhase(const char* phase);<br>    vtkStringArray* GetPhaseList();<br>[/code]<br><br>This seems to work.<br><div class="gmail_quote">
On Wed, Mar 9, 2011 at 4:24 PM, Brian Panneton <span dir="ltr">&lt;<a href="mailto:brian.panneton@gmail.com">brian.panneton@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I can&#39;t seem to figure out how to make a drop down list with strings from a reader. I have created a drop down list with integers, and I have read that it was possible, but I can&#39;t figure out what I need to implement. If any one has any good examples (XML and C++) that would be great.<br>

<br>If I have this:<br>[code]<br>            &lt;StringVectorProperty name=&quot;CellArrayInfo&quot;<br>                information_only=&quot;1&quot;&gt;<br>                &lt;ArraySelectionInformationHelper attribute_name=&quot;Cell&quot;/&gt;<br>

            &lt;/StringVectorProperty&gt;<br>            &lt;StringVectorProperty name=&quot;CellArrayStatus&quot;<br>                command=&quot;SetCellArrayStatus&quot;<br>                number_of_elements=&quot;0&quot; <br>

                repeat_command=&quot;1&quot; number_of_elements_per_command=&quot;2&quot;<br>                element_types=&quot;2 0&quot;<br>                information_property=&quot;CellArrayInfo&quot;<br>                label=&quot;Cell Arrays&quot;&gt;<br>

                &lt;ArraySelectionDomain name=&quot;array_list&quot;&gt;<br>                    &lt;RequiredProperties&gt;<br>                        &lt;Property name=&quot;CellArrayInfo&quot; <br>                            function=&quot;ArrayList&quot;/&gt;<br>

                    &lt;/RequiredProperties&gt;<br>                &lt;/ArraySelectionDomain&gt;<br>            &lt;/StringVectorProperty&gt;<br>[/code]<br><br>I read that I could change:<br>[code]<br>                number_of_elements=&quot;0&quot; <br>


                repeat_command=&quot;1&quot; number_of_elements_per_command=&quot;2&quot;<br>[/code]               <br><br>to<br>[code]<br>                number_of_elements=&quot;1&quot; <br>[/code]<br><br>but that does not work.<br>

<br>I also tried using the EnumerationDomain with IntVectorProperty. This will only give me a dropdown with integers.<br><br>Note: I&#39;m not looking for this:<br>[code]<br>&lt;EnumerationDomain name=&quot;enum&quot;&gt;<br>

          &lt;Entry text=&quot;Stuff&quot; value=&quot;0&quot; /&gt;<br>           ....<br>[/code]<br><br>If I am not able to do a dropdown with a string, is there a way to only allow one item to be selected in my first sample of xml?<br>

<br>Thanks,<br><font color="#888888">Brian<br>
</font></blockquote></div><br>