<?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: ui_infield{3} Picture Buttons in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579287#M6035</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/41011"&gt;@Jarrod Phillips&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;I was swamped with work&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Aren't we all? &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt; No worries Jarod.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no need to have a values command for that in the param script imho.&lt;/P&gt;
&lt;P&gt;What could be set as values is already defined in the UI script.&lt;/P&gt;
&lt;P&gt;But if you would do it: you'd need the right values!&lt;/P&gt;
&lt;P&gt;There is misconception here. The buttons are not exclusive, but additive! So you could say a text is bold, italic, and underlined at the same time!&lt;/P&gt;
&lt;P&gt;Which would result in a value of&amp;nbsp; '1+2+4' = 7. And that one is not in your "values" list. Heck, not even number '4' is in there! (That's why it CAN'T work right now.)&lt;/P&gt;
&lt;P&gt;Better to leave out the "values" command alltogether.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2023 10:46:50 GMT</pubDate>
    <dc:creator>runxel</dc:creator>
    <dc:date>2023-12-07T10:46:50Z</dc:date>
    <item>
      <title>ui_infield{3} Picture Buttons</title>
      <link>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579049#M6029</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This has probably been asked before, however, I am trying to create some picture buttons in a custom UI for Bold, Italics and Underscore text style settings and can't quite work out how to set the pictures for each individual button using ui_infield{3}? I am trying to use the 18x18 text style pictures in the default Archicad library. I have attached the actual UI as it currently stands with no pictures appearing on the buttons and the proposed UI with how I want the buttons to appear. Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ui_infield{3} may not be the right approach, happy for someone to tell me otherwise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jarrod&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="Actual Object UI.png" style="width: 641px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/50298i795CF13375975ED0/image-dimensions/641x453?v=v2" width="641" height="453" role="button" title="Actual Object UI.png" alt="Actual Object UI.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="Proposed Object UI.png" style="width: 640px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/50299iA7306FF8E7FC5F68/image-dimensions/640x373?v=v2" width="640" height="373" role="button" title="Proposed Object UI.png" alt="Proposed Object UI.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;  &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:27:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579049#M6029</guid>
      <dc:creator>Jarrod Phillips</dc:creator>
      <dc:date>2024-09-24T08:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: ui_infield{3} Picture Buttons</title>
      <link>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579101#M6030</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/41011"&gt;@Jarrod Phillips&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you show the code ? It seems that the picture isn't being found.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 07:29:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579101#M6030</guid>
      <dc:creator>MF BIM</dc:creator>
      <dc:date>2023-12-06T07:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: ui_infield{3} Picture Buttons</title>
      <link>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579104#M6031</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hi MF BIM! Thanks for your response. This is most likely very wrong but here it is!&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;ui_infield{3} "fontEffects", rightHalf + 70, 48, 54, 18,
6, "", 0, 0,
0, 0, 0, 0,
0, "ui_bold_hl(1)", "Bold",
0, "ui_italic_hl(1)", "Italics",
0, "ui_underline_hl(1)", "Underscore"&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 10 Dec 2023 05:42:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579104#M6031</guid>
      <dc:creator>Jarrod Phillips</dc:creator>
      <dc:date>2023-12-10T05:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: ui_infield{3} Picture Buttons</title>
      <link>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579167#M6032</link>
      <description>&lt;P&gt;Don't do that by hand anymore.&lt;/P&gt;
&lt;P&gt;Use &lt;SPAN&gt;&lt;A href="https://gdl.graphisoft.com/reference-guide/the-user-interface-script#UI_TEXTSTYLE_INFIELD_gdlcommand" target="_blank" rel="noopener"&gt;UI_TEXTSTYLE_INFIELD&lt;/A&gt; instead.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is a built-in function since AC 22 and it renders everything nicely (the buttons are even localized! So while you might get "B" for "bold" I as a german will get "F" for "fett").&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 17:40:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579167#M6032</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2023-12-06T17:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: ui_infield{3} Picture Buttons</title>
      <link>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579194#M6033</link>
      <description>&lt;P&gt;Hi runxel, Thanks for your comment, however, I am after a push button in this instance.&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="Proposed Object UI.png" style="width: 640px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/50166iDA438FD7443A127F/image-dimensions/640x373?v=v2" width="640" height="373" role="button" title="Proposed Object UI.png" alt="Proposed Object UI.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jarrod&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 05:43:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579194#M6033</guid>
      <dc:creator>Jarrod Phillips</dc:creator>
      <dc:date>2023-12-10T05:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: ui_infield{3} Picture Buttons</title>
      <link>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579276#M6034</link>
      <description>&lt;P&gt;Apologies&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/640"&gt;@runxel&lt;/a&gt;,&amp;nbsp;I was swamped with work and completely mis-read your message. I thought you were suggesting that I use&amp;nbsp;&lt;SPAN&gt;ui_listitem&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;haha. Sorry, what you have suggested is exactly what I wanted. Thanks! I am however having an issue with the Underline option not working correctly. Do you mind taking a look at my code? (pasted below).&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Parameter script:

values "fontEffects", 0, 1, 2, 3

Interface Script:	

ui_textstyle_infield{2} 'fontEffects', 1+2+4+0+0+0, rightHalf + 70, 48,
		18, 18&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jarrod&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 09:28:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579276#M6034</guid>
      <dc:creator>Jarrod Phillips</dc:creator>
      <dc:date>2023-12-07T09:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: ui_infield{3} Picture Buttons</title>
      <link>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579287#M6035</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/41011"&gt;@Jarrod Phillips&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;I was swamped with work&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Aren't we all? &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt; No worries Jarod.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no need to have a values command for that in the param script imho.&lt;/P&gt;
&lt;P&gt;What could be set as values is already defined in the UI script.&lt;/P&gt;
&lt;P&gt;But if you would do it: you'd need the right values!&lt;/P&gt;
&lt;P&gt;There is misconception here. The buttons are not exclusive, but additive! So you could say a text is bold, italic, and underlined at the same time!&lt;/P&gt;
&lt;P&gt;Which would result in a value of&amp;nbsp; '1+2+4' = 7. And that one is not in your "values" list. Heck, not even number '4' is in there! (That's why it CAN'T work right now.)&lt;/P&gt;
&lt;P&gt;Better to leave out the "values" command alltogether.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 10:46:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/ui-infield-3-Picture-Buttons/m-p/579287#M6035</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2023-12-07T10:46:50Z</dc:date>
    </item>
  </channel>
</rss>

