<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dabo.leafe.com/index.php?action=history&amp;feed=atom&amp;title=DRadioList</id>
	<title>DRadioList - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dabo.leafe.com/index.php?action=history&amp;feed=atom&amp;title=DRadioList"/>
	<link rel="alternate" type="text/html" href="https://wiki.dabo.leafe.com/index.php?title=DRadioList&amp;action=history"/>
	<updated>2026-11-22T01:12:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://wiki.dabo.leafe.com/index.php?title=DRadioList&amp;diff=4094&amp;oldid=prev</id>
		<title>Ed: Created page with &quot;&#039;&#039;&#039;dRadioList&#039;&#039;&#039; creates a group of radio buttons, allowing mutually-exclusive choices. Similar to dDropdownList, you can use this control to present the user with multipl...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dabo.leafe.com/index.php?title=DRadioList&amp;diff=4094&amp;oldid=prev"/>
		<updated>2020-05-12T19:39:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;dRadioList&amp;#039;&amp;#039;&amp;#039; creates a group of radio buttons, allowing mutually-exclusive choices. Similar to &lt;a href=&quot;/index.php?title=DDropdownList&quot; title=&quot;DDropdownList&quot;&gt;dDropdownList&lt;/a&gt;, you can use this control to present the user with multipl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;dRadioList&amp;#039;&amp;#039;&amp;#039; creates a group of radio buttons, allowing mutually-exclusive choices. Similar to [[dDropdownList]], you can use this control to present the user with multiple choices from which they may select one and only one choice. Where the [[dDropdownList]] is suitable for lists of one to a couple hundred choices, a &amp;#039;&amp;#039;&amp;#039;dRadioList&amp;#039;&amp;#039;&amp;#039; is really only suitable for lists of one to a dozen at most.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Some of the more useful properties for dRadioList:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Caption&amp;#039;&amp;#039;&amp;#039; - (str): The text displayed at the top of the list.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Choices&amp;#039;&amp;#039;&amp;#039; - (list of strings): Specifies the choices available to the radio list. The order of the items in the list determines their order in the control.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Keys&amp;#039;&amp;#039;&amp;#039; - (list): Key values that correspond to the &amp;lt;code&amp;gt;Choices&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;KeyValue&amp;#039;&amp;#039;&amp;#039; - (varies): Element of the &amp;lt;code&amp;gt;Keys&amp;lt;/code&amp;gt; list that corresponds to the selected item.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PositionValue&amp;#039;&amp;#039;&amp;#039; - (int): Index of the selected item.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;StringValue&amp;#039;&amp;#039;&amp;#039; - (str): Text of the selected item.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ValueMode&amp;#039;&amp;#039;&amp;#039; (str): Can be one of &amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Position&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;Key&amp;lt;/code&amp;gt;. Determines the result returned by accessing the &amp;lt;code&amp;gt;Value&amp;lt;/code&amp;gt; property: either &amp;lt;code&amp;gt;StringValue&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PositionValue&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;KeyValue&amp;lt;/code&amp;gt;. You can always refer to any of those different value types, but when you know which value your program will be needing, you can set &amp;lt;code&amp;gt;ValueMode&amp;lt;/code&amp;gt;, and afterwards just have the normal &amp;lt;code&amp;gt;Value&amp;lt;/code&amp;gt; binding work correctly.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ShowBox&amp;#039;&amp;#039;&amp;#039; - (bool): Determines whether the surrounding box is drawn.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Orientation&amp;#039;&amp;#039;&amp;#039; - (str): Controls the arrangement of the items. Either &amp;lt;code&amp;gt;&amp;quot;Vertical&amp;quot;&amp;lt;/code&amp;gt; (default) or &amp;lt;code&amp;gt;&amp;quot;Horizontal&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ButtonSpacing&amp;#039;&amp;#039;&amp;#039; - (int): Controls the spacing between the items in the control.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ButtonClass&amp;#039;&amp;#039;&amp;#039; - (dRadioButton): Class used for the radio buttons. Normally the standard &amp;lt;code&amp;gt;_dRadioButton&amp;lt;/code&amp;gt; class is used, but if you have specific needs, you can subclass &amp;lt;code&amp;gt;_dRadioButton&amp;lt;/code&amp;gt; and create your own behaviors.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SizerClass&amp;#039;&amp;#039;&amp;#039; - (dSizer): Class to use to layout the control. Normally the default of [[dBorderSizer]] is what you need.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Some of the more useful methods for dRadioList:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;enable(item, val)&amp;#039;&amp;#039;&amp;#039; - (None): Enables/disables the specified item. The item is dependent on the current &amp;lt;code&amp;gt;ValueMode&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;enableKey(item, val)&amp;#039;&amp;#039;&amp;#039; - (None): Enables/disables the item whose key corresponds to the passed value.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;enablePosition(item, val)&amp;#039;&amp;#039;&amp;#039; - (None): Enables/disables the item whose position corresponds to the passed value.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;enableString(item, val)&amp;#039;&amp;#039;&amp;#039; - (None): Enables/disables the item whose &amp;lt;code&amp;gt;Caption&amp;lt;/code&amp;gt; corresponds to the passed value.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;show(item, val)&amp;#039;&amp;#039;&amp;#039; - (None): Shows/hides the specified item. The item is dependent on the current &amp;lt;code&amp;gt;ValueMode&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;showKey(item, val)&amp;#039;&amp;#039;&amp;#039; - (None): Shows/hides the item whose key corresponds to the passed value.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;showPosition(item, val)&amp;#039;&amp;#039;&amp;#039; - (None): Shows/hides the item whose position corresponds to the passed value.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;showString(item, val)&amp;#039;&amp;#039;&amp;#039; - (None): Shows/hides the item whose &amp;lt;code&amp;gt;Caption&amp;lt;/code&amp;gt; corresponds to the passed value.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
See the [https://web.archive.org/web/20110909131047/http://paul.dabodev.com/doc/api/dabodoc/ Dabo Class Documentation] for an exhaustive documentation of this control&amp;#039;s Properties, Events and Methods. (Note that this documentation is no longer live, but it&amp;#039;s still available via the Internet Archive).&lt;/div&gt;</summary>
		<author><name>Ed</name></author>
	</entry>
</feed>