<?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: User Interface Script - Custom colored field? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/User-Interface-Script-Custom-colored-field/m-p/647517#M7368</link>
    <description>&lt;P&gt;As far as I know, it is not possible with a UI-Command to create a colored field.&lt;BR /&gt;In these cases I always use the UI_PICT command and place colored pictures as you did.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2025 13:22:57 GMT</pubDate>
    <dc:creator>Jochen Suehlo</dc:creator>
    <dc:date>2025-01-27T13:22:57Z</dc:date>
    <item>
      <title>User Interface Script - Custom colored field?</title>
      <link>https://community.graphisoft.com/t5/GDL/User-Interface-Script-Custom-colored-field/m-p/647492#M7364</link>
      <description>&lt;P&gt;Hi there, is it possible to do a colored square (with R, G, B) or so in the "UI Script" ?&lt;/P&gt;
&lt;P&gt;I found only that you can put a picture from the bib, or de Pre-picture from your object in the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the GDL reference guide, there it is;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;UI_COLORPICKER "redParamName", "greenParamName", "blueParamName", x0, y0 [, width [, height]]&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;But I don't unterstand that to do......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, the reference guide is not bad, but some script example, I don't see "preview example = result".....&lt;/P&gt;
&lt;P&gt;&amp;gt; all for UI_ scripts.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 09:23:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/User-Interface-Script-Custom-colored-field/m-p/647492#M7364</guid>
      <dc:creator>Andreas81ch</dc:creator>
      <dc:date>2025-01-27T09:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: User Interface Script - Custom colored field?</title>
      <link>https://community.graphisoft.com/t5/GDL/User-Interface-Script-Custom-colored-field/m-p/647503#M7366</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/79285"&gt;@Andreas81ch&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand your request properly, &lt;STRONG&gt;&lt;FONT face="terminal,monaco"&gt;UI_COLORPICKER&lt;/FONT&gt;&lt;/STRONG&gt; does exactly that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your Parameters List, you should have 3 parameters of Real type :&lt;/P&gt;
&lt;P&gt;- "Red" (or any name you want)&lt;/P&gt;
&lt;P&gt;- "Green" (or any name you want)&lt;/P&gt;
&lt;P&gt;- "Blue" (or any name you want)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Parameter script (it's not necessary but it's better)&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 "Red"   range[0, 1]
values "Green" range[0, 1]
values "Blue"  range[0, 1]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&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;xStart	= 5
yStart	= 5
width	= 40
height	= 40

UI_COLORPICKER "Red", "Green", "Blue", xStart, yStart, width, height&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On mac, this should give you this result (a clickable square of 40x40 px placed at 5, 5 in the UI). Second picture is what you get when you click on the square.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture d’écran 2025-01-27 à 11.10.43.png" style="width: 539px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/82368i09C8910D43616957/image-dimensions/539x436?v=v2" width="539" height="436" role="button" title="Capture d’écran 2025-01-27 à 11.10.43.png" alt="Capture d’écran 2025-01-27 à 11.10.43.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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-left" image-alt="Capture d’écran 2025-01-27 à 11.10.46.png" style="width: 539px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/82369i612170899722165A/image-dimensions/539x436?v=v2" width="539" height="436" role="button" title="Capture d’écran 2025-01-27 à 11.10.46.png" alt="Capture d’écran 2025-01-27 à 11.10.46.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 19:10:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/User-Interface-Script-Custom-colored-field/m-p/647503#M7366</guid>
      <dc:creator>MF BIM</dc:creator>
      <dc:date>2025-01-28T19:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: User Interface Script - Custom colored field?</title>
      <link>https://community.graphisoft.com/t5/GDL/User-Interface-Script-Custom-colored-field/m-p/647512#M7367</link>
      <description>&lt;P&gt;Hi there, thanks for this tutorial.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I want not to pick a color, just a field with a custom RGB color;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UI_Question custom color field.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/82374i56524ED1B9410457/image-size/medium?v=v2&amp;amp;px=400" role="button" title="UI_Question custom color field.png" alt="UI_Question custom color field.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made this exmaple with colored pictures in my biblio.&lt;/P&gt;
&lt;P&gt;But no way to make so, with custom RGB command ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 12:00:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/User-Interface-Script-Custom-colored-field/m-p/647512#M7367</guid>
      <dc:creator>Andreas81ch</dc:creator>
      <dc:date>2025-01-27T12:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: User Interface Script - Custom colored field?</title>
      <link>https://community.graphisoft.com/t5/GDL/User-Interface-Script-Custom-colored-field/m-p/647517#M7368</link>
      <description>&lt;P&gt;As far as I know, it is not possible with a UI-Command to create a colored field.&lt;BR /&gt;In these cases I always use the UI_PICT command and place colored pictures as you did.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 13:22:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/User-Interface-Script-Custom-colored-field/m-p/647517#M7368</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2025-01-27T13:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: User Interface Script - Custom colored field?</title>
      <link>https://community.graphisoft.com/t5/GDL/User-Interface-Script-Custom-colored-field/m-p/647518#M7369</link>
      <description>&lt;P&gt;Ah I didn't get it then, my bad. I do not believe that what you ask is possible but maybe there's something I don't k,ow.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 13:37:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/User-Interface-Script-Custom-colored-field/m-p/647518#M7369</guid>
      <dc:creator>MF BIM</dc:creator>
      <dc:date>2025-01-27T13:37:37Z</dc:date>
    </item>
  </channel>
</rss>

