<?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[LayoutFlushGroup doesn&#x27;t place the insertion point inside the group]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">I have the following simplified resource dialog.</p>
<pre><code>TAB TAB_GROUP {
    GROUP TAB1{
        NAME TAB1;
    }
    GROUP TAB2{
        NAME TAB2;
        SCROLLGROUP {
            GROUP GROUP_TO_FLUSH {
            }
        }
    }
}
</code></pre>
<p dir="auto">The problem is that the following code doesn't place the button in the flushing group.</p>
<pre><code>LayoutFlushGroup(GROUP_TO_FLUSH );
AddButton(....);
LayoutChanged(GROUP_TO_FLUSH );
</code></pre>
<p dir="auto">I load the resource file using LoadDialogResource, but I fill the flushing group via code.<br />
After flushing the group, the button appears below the tab group.<br />
How Can I place the insertion point in the GROUP_TO_FLUSH ?</p>
<p dir="auto">Thank you.</p>
]]></description><link>http://developers.maxon.net/forum/topic/10965/layoutflushgroup-doesn-t-place-the-insertion-point-inside-the-group</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 00:40:40 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/10965.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Sep 2018 09:30:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LayoutFlushGroup doesn&#x27;t place the insertion point inside the group on Thu, 06 Sep 2018 13:17:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto"><code>LoadDialogResource()</code> and <code>LayoutFlushGroup()</code> should work perfectly fine together. Typically LayoutFlushGroup() is called in reaction to some user interaction or in InitValues():</p>
<pre><code>Bool CreateLayout()
{
  if (!GeDialog::CreateLayout())
    return false;

  if (!LoadDialogResource(11000, nullptr, 0))
    return false;
  return true;
}

Bool InitValues()
{
  LayoutFlushGroup(11003);
  AddButton(100, BFH_SCALEFIT, 0, 10, "Button"_s);
  LayoutChanged(11003);

  return true;
}
</code></pre>
<p dir="auto">best wishes,<br />
Sebastian</p>
]]></description><link>http://developers.maxon.net/forum/post/55598</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/55598</guid><dc:creator><![CDATA[s_bach]]></dc:creator><pubDate>Thu, 06 Sep 2018 13:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to LayoutFlushGroup doesn&#x27;t place the insertion point inside the group on Wed, 05 Sep 2018 11:53:37 GMT]]></title><description><![CDATA[<p dir="auto">Hello again.</p>
<p dir="auto">Adding all the controls via code and removing the LoadDialogResource solves the issue. For some reason you cannot use both LoadDialogResource and Adding/Flushing the controls manually.</p>
<p dir="auto">Thank you.</p>
]]></description><link>http://developers.maxon.net/forum/post/55568</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/55568</guid><dc:creator><![CDATA[peterakos]]></dc:creator><pubDate>Wed, 05 Sep 2018 11:53:37 GMT</pubDate></item><item><title><![CDATA[Reply to LayoutFlushGroup doesn&#x27;t place the insertion point inside the group on Wed, 05 Sep 2018 11:17:57 GMT]]></title><description><![CDATA[<p dir="auto">I think you must not Begin the same group as the one you are flushing.<br />
It appears that the purpose of LayoutFlushGroup is to clear the group of controls and start adding to it directly.</p>
<p dir="auto">I've tested your suggestion but it didn't work <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
]]></description><link>http://developers.maxon.net/forum/post/55567</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/55567</guid><dc:creator><![CDATA[peterakos]]></dc:creator><pubDate>Wed, 05 Sep 2018 11:17:57 GMT</pubDate></item><item><title><![CDATA[Reply to LayoutFlushGroup doesn&#x27;t place the insertion point inside the group on Wed, 05 Sep 2018 09:56:08 GMT]]></title><description><![CDATA[<p dir="auto">Hey peterakos,</p>
<p dir="auto">as far as I know once you flushed the group you have to do something like this:</p>
<pre><code>self.LayoutFlushGroup(GROUP_TO_FLUSH)
self.GroupBegin(GROUP_TO_FLUSH, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, 1,1,"",0)

self.AddButton(....)

self.GroupEnd()
self.LayoutChanged(GROUP_TO_FLUSH)
</code></pre>
<p dir="auto">that worked for me. Hope it helps,<br />
regards,<br />
neon</p>
]]></description><link>http://developers.maxon.net/forum/post/55566</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/55566</guid><dc:creator><![CDATA[neon]]></dc:creator><pubDate>Wed, 05 Sep 2018 09:56:08 GMT</pubDate></item></channel></rss>