<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Button scaled unexpectedly when it is in the same row with an expanded linkbox]]></title><description><![CDATA[<p dir="auto">I have a button and a linkbox placed in the same row, however I found the button is always scaled horizontally when the linkbox is expanded.<br />
Could you please help me find out how to stop the button being scaled horizontally?<br />
I have tried applying <code>DESC_SCALEH</code> to <code>FALSE</code> and <code>DESC_FITH</code> to <code>TRUE</code>, but it doesn't work after the linkbox is expanded.</p>
<p dir="auto">Before the linkbox is expanded, the button's width is expected.<br />
<img src="/forum/assets/uploads/files/1747622494493-ce8c622f-59bb-47da-a5d3-c6bf25da6ffe-image.png" alt="ce8c622f-59bb-47da-a5d3-c6bf25da6ffe-image.png" class=" img-fluid img-markdown" /><br />
After the linkbox is expanded, the button is scaled unexpected.<br />
<img src="/forum/assets/uploads/files/1747622514759-6dd4884c-6b85-494b-b4eb-22395c2953cd-image.png" alt="6dd4884c-6b85-494b-b4eb-22395c2953cd-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I essentially used the below code snippet to create the button and linkbox in <code>NodeData::GetDDescription()</code></p>
<pre><code class="language-cpp">Int32 groupID = xxgroupIdxx;
const DescID groupDescID = CreateDescID(DescLevel(groupID, DTYPE_GROUP, 0));
{
    BaseContainer bc = GetCustomDataTypeDefault(DTYPE_GROUP);
    bc.SetInt32(DESC_COLUMNS, 2);
    bc.SetInt32(DESC_SCALEH, TRUE);
    description-&gt;SetParameter(groupDescID, bc, CreateDescID(DescLevel(AOV_COMP_PARAMS_GRP)));
}

{
    DescID id = CreateDescID(DescLevel(xxButtonIdxx, DTYPE_BUTTON, 0));
    BaseContainer bc = GetCustomDataTypeDefault(DTYPE_BUTTON);
    bc.SetString(DESC_NAME, "test"_s);
    bc.SetInt32(DESC_CUSTOMGUI, CUSTOMGUI_BUTTON);
    bc.SetBool(DESC_SCALEH, FALSE);   //// &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
    bc.SetBool(DESC_FITH, TRUE);      ////  &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; I have tried using these two flags, but they don't help
    description-&gt;SetParameter(id, bc, groupDescID);
}

{
    const DescID id = CreateDescID(DescLevel(xxLinkIdxx, DTYPE_BASELISTLINK, 0));
    BaseContainer bc = GetCustomDataTypeDefault(DTYPE_BASELISTLINK);
    bc.SetString(DESC_NAME, "test"_s);
    bc.SetInt32(DESC_CUSTOMGUI, CUSTOMGUI_LINKBOX);
    bc.SetData(DESC_SCALEH, TRUE);
    bc.SetContainer(DESC_ACCEPT, accept);
    description-&gt;SetParameter(id, bc, groupDescID);
}
</code></pre>
<p dir="auto">Thanks!</p>
]]></description><link>http://developers.maxon.net/forum//topic/16241/button-scaled-unexpectedly-when-it-is-in-the-same-row-with-an-expanded-linkbox</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 17:22:08 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum//topic/16241.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 May 2025 02:54:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Button scaled unexpectedly when it is in the same row with an expanded linkbox on Thu, 22 May 2025 21:30:31 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the reply @i_mazlov. Yeah, I already tried the workaround, it worked.</p>
]]></description><link>http://developers.maxon.net/forum//post/76510</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/76510</guid><dc:creator><![CDATA[BruceC]]></dc:creator><pubDate>Thu, 22 May 2025 21:30:31 GMT</pubDate></item><item><title><![CDATA[Reply to Button scaled unexpectedly when it is in the same row with an expanded linkbox on Wed, 21 May 2025 06:28:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/brucec">@<bdi>BruceC</bdi></a>!</p>
<p dir="auto">The expandable UIs like COSTOMGUI_LINKBOX are not designed to be used with other elements on the same row, hence can lead to the undefined behavior like what you're experiencing. I suppose the workaround for you would be to put the linkbox on the row below the button.</p>
<p dir="auto">Cheers,<br />
Ilia</p>
]]></description><link>http://developers.maxon.net/forum//post/76482</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/76482</guid><dc:creator><![CDATA[i_mazlov]]></dc:creator><pubDate>Wed, 21 May 2025 06:28:00 GMT</pubDate></item></channel></rss>