<?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 UI radiobutton edit in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279064#M8053</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello,&lt;BR /&gt;
how I can edit in UI radiobutton, I want create choice with radiobutton, for exemple:&lt;BR /&gt;
&lt;BR /&gt;
UI_RADIOBUTTON "exemple", 0, `Cyrcle`, 250, 20, 170, 20&lt;BR /&gt;
UI_RADIOBUTTON "exemple", 1, `Cube`, 250, 40, 170, 20&lt;BR /&gt;
UI_RADIOBUTTON "exemple", 2, `Pyramid`, 250, 60, 170, 20&lt;BR /&gt;
&lt;BR /&gt;
UI Radiobutton work only 0 and 1, how I can add 3. atribut?&lt;BR /&gt;
Or exist any similar way?&lt;BR /&gt;
&lt;BR /&gt;
Please help me&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 22 Apr 2016 07:53:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-22T07:53:43Z</dc:date>
    <item>
      <title>UI radiobutton edit</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279064#M8053</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello,&lt;BR /&gt;
how I can edit in UI radiobutton, I want create choice with radiobutton, for exemple:&lt;BR /&gt;
&lt;BR /&gt;
UI_RADIOBUTTON "exemple", 0, `Cyrcle`, 250, 20, 170, 20&lt;BR /&gt;
UI_RADIOBUTTON "exemple", 1, `Cube`, 250, 40, 170, 20&lt;BR /&gt;
UI_RADIOBUTTON "exemple", 2, `Pyramid`, 250, 60, 170, 20&lt;BR /&gt;
&lt;BR /&gt;
UI Radiobutton work only 0 and 1, how I can add 3. atribut?&lt;BR /&gt;
Or exist any similar way?&lt;BR /&gt;
&lt;BR /&gt;
Please help me&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Apr 2016 07:53:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279064#M8053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-22T07:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: UI radiobutton edit</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279065#M8054</link>
      <description>The radio button is only an on/off switch (i.e. 0 or 1)&lt;BR /&gt;
If you want a choice of multiple values then you will need to use the UI_INFIELD.&lt;BR /&gt;
&lt;BR /&gt;
UI_INFIELD "name", x, y, width, height&lt;BR /&gt;
&lt;BR /&gt;
Where "name" is the parameter that contains the VALUE list of your shapes.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 22 Apr 2016 08:20:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279065#M8054</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2016-04-22T08:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: UI radiobutton edit</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279066#M8055</link>
      <description>But with infield I must use checkbox (In parameters Boolein. constant)&lt;BR /&gt;
And if i want choice only one values, I must uncheck all other boxes.&lt;BR /&gt;
Because I want use something like that.&lt;BR /&gt;
&lt;BR /&gt;
Or what do you think with INFIELD?&lt;BR /&gt;
Can you looked that on this my example?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;"Barry Kelly" wrote:&lt;BR /&gt;The radio button is only an on/off switch (i.e. 0 or 1)&lt;BR /&gt;
If you want a choice of multiple values then you will need to use the UI_INFIELD.&lt;BR /&gt;
&lt;BR /&gt;
UI_INFIELD "name", x, y, width, height&lt;BR /&gt;
&lt;BR /&gt;
Where "name" is the parameter that contains the VALUE list of your shapes.&lt;BR /&gt;
&lt;BR /&gt;
Barry.&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 22 Apr 2016 09:46:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279066#M8055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-22T09:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: UI radiobutton edit</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279067#M8056</link>
      <description>If you want a choice of say "sphere", "cube" or "Pyramid" then create a text parameter fore "shape"&lt;BR /&gt;
&lt;BR /&gt;
Then in the parameter list create a VALUE list ...&lt;BR /&gt;
&lt;BR /&gt;
VALUES "shape" "sphere", "cube", "Pyramid"&lt;BR /&gt;
&lt;BR /&gt;
Then I interface script ...&lt;BR /&gt;
&lt;BR /&gt;
UI_INFIELD "shape", 20, 20, 100, 15&lt;BR /&gt;
&lt;BR /&gt;
This way you can only ever have one shape chosen.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Otherwise if you are trying to use a radio button or check box you will need to add a routine that says if "sphere" is on then turn all the others off rather than turning them all off manually.&lt;BR /&gt;
&lt;BR /&gt;
Barry.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/37076i5904E344EE420E35/image-size/large?v=v2&amp;amp;px=999" border="0" alt="UI_Infield.jpg" title="UI_Infield.jpg" /&gt;</description>
      <pubDate>Sat, 23 Apr 2016 03:54:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279067#M8056</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2016-04-23T03:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: UI radiobutton edit</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279068#M8057</link>
      <description>You can also do a grouping of bolean parameters with individual Infield and Outfield callouts - something like this (The uiX, uiY, uiLablelX1...etc. are just positioning variables):&lt;BR /&gt;

 &lt;PRE&gt;	UI_OUTFIELD 'Continuous:',         uiX,  uiY, uiLabelX1, uiLabelY3, 1 : uiX = uiX + uiLabelX1 + uiGapX
	UI_INFIELD{3}  "bcont",            uiX,  uiY, uiButton1, uiLabelY3    : uiX = uiXs : uiY = uiY + uiLabelY3 + uiGapY

	UI_OUTFIELD 'Blocking:',           uiX,  uiY, uiLabelX1, uiLabelY3, 1 : uiX = uiX + uiLabelX1 + uiGapX
	UI_INFIELD{3}  "bblock",           uiX,  uiY, uiButton1, uiLabelY3    : uiX = uiXs : uiY = uiY + uiLabelY3 + uiGapY

	UI_OUTFIELD 'Finish:',             uiX,  uiY, uiLabelX1, uiLabelY3, 1 : uiX = uiX + uiLabelX1 + uiGapX
	UI_INFIELD{3}  "bfinish",          uiX,  uiY, uiButton1, uiLabelY3    : uiX = uiXs
&lt;/PRE&gt;

Then in the master script you will want to add something like this:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!! ===========================================================
!!               Radio Button Parameters
!! ===========================================================
	bSetParams = 0
	
	IF GLOB_MODPAR_NAME = "bcont" THEN
		bcont   = 1
		bblock  = 0
		bfinish = 0

		bSetParams = 1
	ENDIF
	
	IF GLOB_MODPAR_NAME = "bblock" THEN
		bcont   = 0
		bblock  = 1
		bfinish = 0

		bSetParams = 1
	ENDIF
	
	IF GLOB_MODPAR_NAME = "bfinish" THEN
		bcont   = 0
		bblock  = 0
		bfinish = 1

		bSetParams = 1
	ENDIF
	
	IF bSetParams THEN
		PARAMETERS	bcont   = bcont,
					bblock  = bblock,
					bfinish = bfinish
	ENDIF
&lt;/PRE&gt;

To contol your variables so that only one parameter can be selected at any time. This essentially creates a three way radio button that will look something like what you see in the attached image.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/37077i3812C0DB02FD80AA/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Screen Shot 2016-04-23 at 5.27.57 PM.png" title="Screen Shot 2016-04-23 at 5.27.57 PM.png" /&gt;</description>
      <pubDate>Sun, 24 Apr 2016 00:32:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279068#M8057</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2016-04-24T00:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: UI radiobutton edit</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279069#M8058</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Radio buttons should work as nGhost suggested. Maybe&lt;BR /&gt;
adding a value script does the trick?&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!--value script
values "radiobutton" 0,1,2,3

!--UI-script
UI_RADIOBUTTON "radiobutton", 0, "Zero", 10, 140, 200, 20
UI_RADIOBUTTON "radiobutton", 1, "One", 10, 160, 200, 20
UI_RADIOBUTTON "radiobutton", 2, "Two", 10, 180, 200, 20
UI_RADIOBUTTON "radiobutton", 3, "Three", 10, 200, 200, 20
&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Apr 2016 17:57:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279069#M8058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-25T17:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: UI radiobutton edit</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279070#M8059</link>
      <description>Here is the object</description>
      <pubDate>Mon, 25 Apr 2016 19:56:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279070#M8059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-25T19:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: UI radiobutton edit</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279071#M8060</link>
      <description>Thank you so much Juha Vesen.&lt;BR /&gt;
This is it !! &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;</description>
      <pubDate>Tue, 26 Apr 2016 18:33:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-radiobutton-edit/m-p/279071#M8060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-26T18:33:30Z</dc:date>
    </item>
  </channel>
</rss>

