<?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: Problem with storing GLOB_UI_BUTTON_ID in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/662661#M7701</link>
    <description>&lt;P class=""&gt;Hi,&lt;/P&gt;&lt;P class=""&gt;I still don't understand your purpose for doing those things. If it's just to select the desired symbol type, why don't you create a "type" variable and use UI_INFIELD{4} to display the image for easier selection? If you have a different purpose, it's best to upload the object so it's easier to visualize.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NMK195_0-1747360993701.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/86953i367813128C1D4771/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NMK195_0-1747360993701.png" alt="NMK195_0-1747360993701.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 May 2025 02:03:22 GMT</pubDate>
    <dc:creator>NMK195</dc:creator>
    <dc:date>2025-05-16T02:03:22Z</dc:date>
    <item>
      <title>Problem with storing GLOB_UI_BUTTON_ID</title>
      <link>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/662343#M7697</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem in my interface script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table that can have a range [0,10], in UI there is a UI_BUTTON (GLOB_UI_BUTTON_ID=11 and GLOB_UI_BUTTON_ID=12) that adds and subtracts a table by one (+ and - in the pic) there is also a&amp;nbsp;UI_BUTTON with text "Simbol 1,2,3...10", (GLOB_UI_BUTTON_ID=j) when the&amp;nbsp;UI_BUTTON is pressed you get a selection of symbols that you can choose, however the problem starts when you choose a symbol the infield disappears become&amp;nbsp;GLOB_UI_BUTTON_ID becomes 0 i also have a specific text input field that shows specifically when some symbols are selected. My question is can I "force" AC to store the current value of GLOB_UI_BUTTON_ID?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;picX=50
picY=50
for j = 1 to numberOfTabs
    if GLOB_UI_BUTTON_ID = j   then
        ui_infield{4} simbolSelectionPosText[j],330,0,350,uiDimY,
            1, "",
            7,
            2, picX+50, picY+70,
            picX, picY,
            simbolSelectionPosPic, simbolSelectionPosText, simbolSelectionPosIndex
    endif
next j&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/86881i31C2CEF9E516A1F6/image-size/large?v=v2&amp;amp;px=999" border="0" alt="UI selection.png" title="UI selection.png" /&gt;</description>
      <pubDate>Tue, 13 May 2025 09:13:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/662343#M7697</guid>
      <dc:creator>Domagoj Lukinic</dc:creator>
      <dc:date>2025-05-13T09:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with storing GLOB_UI_BUTTON_ID</title>
      <link>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/662661#M7701</link>
      <description>&lt;P class=""&gt;Hi,&lt;/P&gt;&lt;P class=""&gt;I still don't understand your purpose for doing those things. If it's just to select the desired symbol type, why don't you create a "type" variable and use UI_INFIELD{4} to display the image for easier selection? If you have a different purpose, it's best to upload the object so it's easier to visualize.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NMK195_0-1747360993701.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/86953i367813128C1D4771/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NMK195_0-1747360993701.png" alt="NMK195_0-1747360993701.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 02:03:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/662661#M7701</guid>
      <dc:creator>NMK195</dc:creator>
      <dc:date>2025-05-16T02:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with storing GLOB_UI_BUTTON_ID</title>
      <link>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/662750#M7703</link>
      <description>&lt;P&gt;Could you create a parameter for the button id and update it in the parameter script whenever the GLOB_UI_BUTTON_ID is different from 0? Then use the parameter instead of GLOB_UI_BUTTON_ID in the ui script.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 19:31:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/662750#M7703</guid>
      <dc:creator>vlahtinen</dc:creator>
      <dc:date>2025-05-16T19:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with storing GLOB_UI_BUTTON_ID</title>
      <link>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/662757#M7705</link>
      <description>&lt;P&gt;This is the solution. But if you use a parameter to store this information its funnily even easier to have the buttons correspond to the parameter directly, like e.g. an ui_infield{3} with method = 4.&lt;/P&gt;
&lt;P&gt;Either way it will work.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 21:51:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/662757#M7705</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2025-05-16T21:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with storing GLOB_UI_BUTTON_ID</title>
      <link>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/662864#M7711</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you all for the suggestions, and yes this works.&lt;/P&gt;&lt;P&gt;I added a condition in parameter script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if GLOB_UI_BUTTON_ID &amp;gt;= 1 and GLOB_UI_BUTTON_ID &amp;lt;= brojSimbola then
    parameters activeSimbol = GLOB_UI_BUTTON_ID
endif&lt;/LI-CODE&gt;&lt;P&gt;and added a parameter activeSimbol int 1&lt;/P&gt;&lt;P&gt;and replaced the conditions inside the loop with that variable.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;once again thank you all for the replay and&amp;nbsp;suggestions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 11:56:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/662864#M7711</guid>
      <dc:creator>Domagoj Lukinic</dc:creator>
      <dc:date>2025-05-19T11:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with storing GLOB_UI_BUTTON_ID</title>
      <link>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/663103#M7722</link>
      <description>&lt;P&gt;BUTTON_ID kind of never worked as suposed (or better words as I imagined it should work), &lt;/P&gt;
&lt;P&gt;The proper way to go is the UI_PICT_RADIOBUTTON/ UI_PICT_RADIOBUTTON{2} - it is with picture or text depending on if the picture is defined.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 07:46:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Problem-with-storing-GLOB-UI-BUTTON-ID/m-p/663103#M7722</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2025-05-21T07:46:28Z</dc:date>
    </item>
  </channel>
</rss>

