<?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: Need a UI_INFIELD{4} (method 4) Example? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Need-a-UI-INFIELD-4-method-4-Example/m-p/635237#M7063</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/134897"&gt;@Sofiane LPAF&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming "abcde" is an integer type parameter...&lt;/P&gt;
&lt;P&gt;In the Parameter script :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;values "abcde" 1, 2, 3, 4&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Interface script :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;ui_dialog "Options", 520, 300

cell_width 	= 124
cell_height = 93
choices		= 4

ui_infield{4} "abcde", 5, 5, cell_width*choices+10, cell_height+10,	! coordinates, dimensions
				4, "xy3.png",										! method, picture
				choices, 4,											! pictures, rows
				cell_width, cell_height, cell_width, cell_height,	! cell, pic dimensions
				1, "", 1,
				2, "", 2,
				3, "", 3,
				4, "", 4&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached, updated versions of your picture with some transparency so there the button behavior is still visible. xy2.png has 0 white background while xy3 keeps the white background within the contours.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xy3.png" style="width: 124px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77958iDCE0EA539B8669A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="xy3.png" alt="xy3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xy2.png" style="width: 124px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77959iE4A89702A6EC99E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="xy2.png" alt="xy2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ui_with_xy3.png" style="width: 600px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77960iA063664F5EADA8FE/image-dimensions/600x487?v=v2" width="600" height="487" role="button" title="ui_with_xy3.png" alt="ui_with_xy3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ui_with_xy2.png" style="width: 599px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77961i8B6944FBBD2ECFFF/image-dimensions/599x486?v=v2" width="599" height="486" role="button" title="ui_with_xy2.png" alt="ui_with_xy2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Oct 2024 04:03:01 GMT</pubDate>
    <dc:creator>MF BIM</dc:creator>
    <dc:date>2024-10-12T04:03:01Z</dc:date>
    <item>
      <title>Need a UI_INFIELD{4} (method 4) Example?</title>
      <link>https://community.graphisoft.com/t5/GDL/Need-a-UI-INFIELD-4-method-4-Example/m-p/635175#M7059</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;Can you please give me an example of a short script of the UI_INFIELD{4} command to create 3 or 4 "Push icon radio control" (method 4) using matching images&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2024-10-10 104838.png" style="width: 124px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77938i7B36F2A864F38C0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2024-10-10 104838.png" alt="Capture d’écran 2024-10-10 104838.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 14:22:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Need-a-UI-INFIELD-4-method-4-Example/m-p/635175#M7059</guid>
      <dc:creator>Sofiane LPAF</dc:creator>
      <dc:date>2024-10-10T14:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need a UI_INFIELD{4} (method 4) Example?</title>
      <link>https://community.graphisoft.com/t5/GDL/Need-a-UI-INFIELD-4-method-4-Example/m-p/635237#M7063</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/134897"&gt;@Sofiane LPAF&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming "abcde" is an integer type parameter...&lt;/P&gt;
&lt;P&gt;In the Parameter script :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;values "abcde" 1, 2, 3, 4&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Interface script :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;ui_dialog "Options", 520, 300

cell_width 	= 124
cell_height = 93
choices		= 4

ui_infield{4} "abcde", 5, 5, cell_width*choices+10, cell_height+10,	! coordinates, dimensions
				4, "xy3.png",										! method, picture
				choices, 4,											! pictures, rows
				cell_width, cell_height, cell_width, cell_height,	! cell, pic dimensions
				1, "", 1,
				2, "", 2,
				3, "", 3,
				4, "", 4&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached, updated versions of your picture with some transparency so there the button behavior is still visible. xy2.png has 0 white background while xy3 keeps the white background within the contours.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xy3.png" style="width: 124px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77958iDCE0EA539B8669A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="xy3.png" alt="xy3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xy2.png" style="width: 124px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77959iE4A89702A6EC99E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="xy2.png" alt="xy2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ui_with_xy3.png" style="width: 600px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77960iA063664F5EADA8FE/image-dimensions/600x487?v=v2" width="600" height="487" role="button" title="ui_with_xy3.png" alt="ui_with_xy3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ui_with_xy2.png" style="width: 599px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77961i8B6944FBBD2ECFFF/image-dimensions/599x486?v=v2" width="599" height="486" role="button" title="ui_with_xy2.png" alt="ui_with_xy2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 04:03:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Need-a-UI-INFIELD-4-method-4-Example/m-p/635237#M7063</guid>
      <dc:creator>MF BIM</dc:creator>
      <dc:date>2024-10-12T04:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need a UI_INFIELD{4} (method 4) Example?</title>
      <link>https://community.graphisoft.com/t5/GDL/Need-a-UI-INFIELD-4-method-4-Example/m-p/635271#M7064</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I thank you very much for your help, clear and precise, it works very well. Thank you once again for your time, see you next time!!!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SofianeLPAF_0-1728582384834.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77969iA0C3F254193092F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SofianeLPAF_0-1728582384834.png" alt="SofianeLPAF_0-1728582384834.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 17:46:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Need-a-UI-INFIELD-4-method-4-Example/m-p/635271#M7064</guid>
      <dc:creator>Sofiane LPAF</dc:creator>
      <dc:date>2024-10-10T17:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need a UI_INFIELD{4} (method 4) Example?</title>
      <link>https://community.graphisoft.com/t5/GDL/Need-a-UI-INFIELD-4-method-4-Example/m-p/635335#M7067</link>
      <description>&lt;P&gt;Good to know it worked ! If you can, please mark my previous post as solution so people see your question as solved if they look for the same answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also advise to resize the pictures beforehand so they look cleaner in the UI. If the resizing is done with GDL in Archicad, the .pngs will look blurry.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 07:56:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Need-a-UI-INFIELD-4-method-4-Example/m-p/635335#M7067</guid>
      <dc:creator>MF BIM</dc:creator>
      <dc:date>2024-10-11T07:56:41Z</dc:date>
    </item>
  </channel>
</rss>

