<?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: Dynamically moving text within interface script in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575241#M5818</link>
    <description>&lt;P&gt;That works beautifully with an integer, I never would have discovered that myself, thank you Barry you are a genius, quite exciting!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the above, is possible to use the value from a dimension variable (&lt;SPAN&gt;x_offset)&amp;nbsp;&lt;/SPAN&gt;to drive the integer variable (infield_pos&lt;SPAN&gt;)&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My thinking would be in the Master Script to add something like:&lt;/P&gt;&lt;P&gt;infield_pos = INT(&lt;SPAN&gt;x_offset)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Parameter&amp;nbsp;&lt;SPAN&gt;x_offset =&amp;nbsp;infield_pos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But maybe it is not possible to use a value in mm to set an integer value in pixels, it would be great if it was though. Best to all.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2023 09:50:32 GMT</pubDate>
    <dc:creator>GDL Enthusiast</dc:creator>
    <dc:date>2023-11-13T09:50:32Z</dc:date>
    <item>
      <title>Dynamically moving text within interface script</title>
      <link>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575202#M5812</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder, is it possible to dynamically move the x,y, position of text in the interface tab? My goal is to dynamically offset text, within the interface panel, depending on a parameter of the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My example would be to create a variable in the Parameters Tab called x_offset = 10mm&lt;/P&gt;
&lt;P&gt;In the Interface tab I would add the code:&lt;/P&gt;
&lt;P&gt;ui_outfield "Note", x_offset, 0, 120, 14&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However it doesn't seem to work and defaults the position value to 0. Any help would be most welcome! Best to all.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:46:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575202#M5812</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2024-09-26T11:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically moving text within interface script</title>
      <link>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575209#M5814</link>
      <description>&lt;P&gt;Sure you can.&lt;/P&gt;
&lt;P&gt;Make your parameter a 'integer' because the interface is pixels, not distance.&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="BarryKelly_0-1699840797623.png" style="width: 598px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/48849i4810ED2AA360F6AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="BarryKelly_0-1699840797623.png" alt="BarryKelly_0-1699840797623.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;UI_OUTFIELD "Infield position", infield_pos,30,80,15
UI_INFIELD "infield_pos", infield_pos+85, 30,50,15
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the result.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryKelly_2-1699840955168.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/48851i802387DD8CB5588E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryKelly_2-1699840955168.png" alt="BarryKelly_2-1699840955168.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryKelly_3-1699841005729.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/48852iA93EE42D78F7429F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryKelly_3-1699841005729.png" alt="BarryKelly_3-1699841005729.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun chasing it around the interface.&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 02:05:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575209#M5814</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-11-13T02:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically moving text within interface script</title>
      <link>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575241#M5818</link>
      <description>&lt;P&gt;That works beautifully with an integer, I never would have discovered that myself, thank you Barry you are a genius, quite exciting!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the above, is possible to use the value from a dimension variable (&lt;SPAN&gt;x_offset)&amp;nbsp;&lt;/SPAN&gt;to drive the integer variable (infield_pos&lt;SPAN&gt;)&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My thinking would be in the Master Script to add something like:&lt;/P&gt;&lt;P&gt;infield_pos = INT(&lt;SPAN&gt;x_offset)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Parameter&amp;nbsp;&lt;SPAN&gt;x_offset =&amp;nbsp;infield_pos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But maybe it is not possible to use a value in mm to set an integer value in pixels, it would be great if it was though. Best to all.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 09:50:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575241#M5818</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2023-11-13T09:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically moving text within interface script</title>
      <link>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575242#M5819</link>
      <description>&lt;P&gt;Found solution to the above of converting the dimension from mm. It works, thank you again Barry, so so helpful!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 09:53:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575242#M5819</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2023-11-13T09:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically moving text within interface script</title>
      <link>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575269#M5824</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/12479"&gt;@GDL Enthusiast&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Found solution to the above of converting the dimension from mm. It works, thank you again Barry, so so helpful!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes that would work too.&lt;/P&gt;
&lt;P&gt;All lengths in GDL are in meters, regardless of your working units.&lt;/P&gt;
&lt;P&gt;So multiply by 1000 to get mm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But just be aware the default user interface is &lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;&lt;STRIKE&gt;only around 444 x 296&lt;/STRIKE&gt;&lt;/FONT&gt; a minimum of 480 wide x 266 high&lt;/FONT&gt; pixels (it is customisable and can be a little bit bigger), but it will be very easy to exceed this limit with mm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 09:15:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575269#M5824</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-11-16T09:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically moving text within interface script</title>
      <link>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575738#M5854</link>
      <description>&lt;P&gt;The settings dialog minimum width has changed to 480 pixels in AC24, and the minimum height is 266 pixels.&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>Thu, 16 Nov 2023 08:43:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575738#M5854</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2023-11-16T08:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically moving text within interface script</title>
      <link>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575816#M5863</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/14532"&gt;@Peter Baksa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;The settings dialog minimum width has changed to 480 pixels in AC24, and the minimum height is 266 pixels.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Aaaah thanks for this info, I knew the old values were wrong somehow but never knew for sure. When using the old values with listfields, they were cut at the bottom so I ended finding the 266px by testing myself. Same for 480, one day I went beyond 444 and noticed it was fine so I went further until the display was cut.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this info needs to be updated though, here in the online guide : &lt;A href="https://gdl.graphisoft.com/reference-guide/the-user-interface-script" target="_blank" rel="noopener"&gt;https://gdl.graphisoft.com/reference-guide/the-user-interface-script&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Currently, the size of the available area is fixed at 444 x 296 pixels, and the size_x and size_y parameters are not used.&lt;/BLOCKQUOTE&gt;&lt;P class=""&gt;And also in the GDL reference pdfs. In my 26 installation, it is the same on page 263&lt;/P&gt;&lt;BLOCKQUOTE&gt;Currently, the size of the available area is fixed at 444 x 296 pixels, and the size_x and size_y parameters are not used.&lt;/BLOCKQUOTE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 18:46:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575816#M5863</guid>
      <dc:creator>MF BIM</dc:creator>
      <dc:date>2023-11-16T18:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically moving text within interface script</title>
      <link>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575848#M5864</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/45975"&gt;@MF BIM&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;That is just the default minimum size.&lt;/P&gt;
&lt;P&gt;You can set a custom dialogue much larger if you want to.&lt;/P&gt;
&lt;P&gt;Here I have just increased one of my window interfaces.&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="BarryKelly_0-1700184072366.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/49046iE18B91007829E9C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryKelly_0-1700184072366.png" alt="BarryKelly_0-1700184072366.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UI_DIALOG `CUSTOM SETTINGS`, 750,550&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So there is much more space to be had if you need it.&lt;/P&gt;
&lt;P&gt;I probably wouldn't go too big though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 01:24:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575848#M5864</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-11-17T01:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically moving text within interface script</title>
      <link>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575889#M5873</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7331"&gt;@Barry Kelly&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, I know this, I was just rebounding on the fact that if you do not input those optional inputs for UI_DIALOG, the default dimensions are wrong according to the GDL guides.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 07:13:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Dynamically-moving-text-within-interface-script/m-p/575889#M5873</guid>
      <dc:creator>MF BIM</dc:creator>
      <dc:date>2023-11-17T07:13:12Z</dc:date>
    </item>
  </channel>
</rss>

