<?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[Make Button Invisible And Still Occupies Space?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Is there a way I can make a button invisible and still occupies space.<br />
My main reason is that I want only FK controls to be visible when in FK mode and IK controls to be visible in IK mode.</p>
<p dir="auto">You can see the illustration of the problem here:<br />
<a href="https://www.dropbox.com/s/3871491ssku2fg0/c4d214_mak_button_insivible_but_still_occupies_space.jpg?dl=0" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.dropbox.com/s/3871491ssku2fg0/c4d214_mak_button_insivible_but_still_occupies_space.jpg?dl=0</a></p>
<p dir="auto">Another alternative I have is to implement a <code>FlushGroup</code> but I don't like it since I have to maintain different sets of UI.<br />
I just want a single one and make buttons invisible as needed.</p>
<p dir="auto">Is there a way around this?</p>
]]></description><link>http://developers.maxon.net/forum/topic/12226/make-button-invisible-and-still-occupies-space</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 23:09:42 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/12226.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 31 Jan 2020 11:10:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Make Button Invisible And Still Occupies Space? on Thu, 06 Feb 2020 15:00:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/pluginstudent">@<bdi>PluginStudent</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/s_bach">@<bdi>s_bach</bdi></a></p>
<p dir="auto">Thank you for the response. Both works as expected.</p>
<p dir="auto"><strong>RE:  don't know why you think you need two groups.</strong><br />
Just for reference, I was thinking of this logic</p>
<pre><code>if self.mode == True:
    self.Group1_Layout()
else:
    self.Group2_Layout()
</code></pre>
<p dir="auto">Anyhow, no further action required <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>http://developers.maxon.net/forum/post/61414</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/61414</guid><dc:creator><![CDATA[bentraje]]></dc:creator><pubDate>Thu, 06 Feb 2020 15:00:49 GMT</pubDate></item><item><title><![CDATA[Reply to Make Button Invisible And Still Occupies Space? on Wed, 05 Feb 2020 12:58:50 GMT]]></title><description><![CDATA[<p dir="auto">I don't know why you think you need two groups.</p>
<p dir="auto">You can simply have one group that you flush and re-fill on demand. In that re-fill, you can replace anything with that static text placeholder as shown above:</p>
<pre><code>self.LayoutFlushGroup(1000)

flags = c4d.BFH_LEFT | c4d.BFV_TOP
width = c4d.gui.SizePix(100)
height = c4d.gui.SizePix(100)

if self.mode == True:
    # add bitmap button
    settings = c4d.BaseContainer()
    settings.SetBool(c4d.BITMAPBUTTON_BUTTON, False)

    bitmapButtonGUI = self.AddCustomGui(1001, c4d.CUSTOMGUI_BITMAPBUTTON, "", flags, width, height, settings)

    if bitmapButtonGUI is not None:
        icon = c4d.gui.GetIcon(c4d.Ocube)
        bmp = icon["bmp"]
        subBitmap = c4d.bitmaps.BaseBitmap()
        bmp.CopyPartTo(subBitmap, icon["x"], icon["y"], icon["w"], icon["h"] )
        bitmapButtonGUI.SetImage(subBitmap, True, False)

else:
    # add placeholder with the size of the bitmap button
    self.AddStaticText(999, flags, width, height)

self.LayoutChanged(1000)
</code></pre>
<p dir="auto">best wishes,<br />
Sebastian</p>
]]></description><link>http://developers.maxon.net/forum/post/61392</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/61392</guid><dc:creator><![CDATA[s_bach]]></dc:creator><pubDate>Wed, 05 Feb 2020 12:58:50 GMT</pubDate></item><item><title><![CDATA[Reply to Make Button Invisible And Still Occupies Space? on Tue, 04 Feb 2020 17:06:24 GMT]]></title><description><![CDATA[<p dir="auto">If you are using a BitmapButtonCustomGui, you could simply change the image the bitmap button is displaying. E.g. use an image filled with the background color.</p>
]]></description><link>http://developers.maxon.net/forum/post/61380</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/61380</guid><dc:creator><![CDATA[PluginStudent]]></dc:creator><pubDate>Tue, 04 Feb 2020 17:06:24 GMT</pubDate></item><item><title><![CDATA[Reply to Make Button Invisible And Still Occupies Space? on Tue, 04 Feb 2020 16:46:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/lasselauch">@<bdi>lasselauch</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/s_bach">@<bdi>s_bach</bdi></a></p>
<p dir="auto">Thanks for the response. Apologies for the late response.</p>
<p dir="auto"><strong>RE: what exactly do you mean with "button"?</strong><br />
Referring to the image link provided, it couldn't be <code>AddButton</code> so the <code>Enable</code> will not work on this one. As the <code>Enable</code>, correct me if I'm wrong, will just gray out the button. I want it to be invisible.</p>
<p dir="auto">It is a <code>CustomGui BitmapButton</code>.</p>
<p dir="auto"><strong>RE: you can insert an empty static text element</strong><br />
That's the alternative I was thinking with the <code>FlushGroup</code>. Basically two groups. One specific to IK and the other specific to FK mode.</p>
<p dir="auto">But again, I just want a single one and make buttons invisible as needed.</p>
<p dir="auto">Is this still possible?</p>
]]></description><link>http://developers.maxon.net/forum/post/61377</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/61377</guid><dc:creator><![CDATA[bentraje]]></dc:creator><pubDate>Tue, 04 Feb 2020 16:46:24 GMT</pubDate></item><item><title><![CDATA[Reply to Make Button Invisible And Still Occupies Space? on Mon, 03 Feb 2020 11:41:48 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">what exactly do you mean with "button"?</p>
<p dir="auto">A standard button (<code>AddButton()</code>), a bitmap button or a custom <code>GeUserArea</code> based gadget?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/lasselauch">@<bdi>lasselauch</bdi></a> 's idea to use <code>Enable()</code> is, I guess, the easiest way to achieve what you want. But what is the overall behaviour of your dialog? Is the user able to resize it; can the width or height or your GUI elements changes based on resizing the dialog? Do your UI elements have a minimum or fixed size?</p>
<p dir="auto">If the element has fixed size, you can insert an empty static text element with the desired dimensions in place of the original element when rebuilding your layout.</p>
<pre><code>self.AddStaticText(999,c4d.BFH_LEFT | c4d.BFV_TOP, c4d.gui.SizePix(100), c4d.gui.SizePix(100))
</code></pre>
<p dir="auto">best wishes,<br />
Sebastian</p>
]]></description><link>http://developers.maxon.net/forum/post/61351</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/61351</guid><dc:creator><![CDATA[s_bach]]></dc:creator><pubDate>Mon, 03 Feb 2020 11:41:48 GMT</pubDate></item><item><title><![CDATA[Reply to Make Button Invisible And Still Occupies Space? on Fri, 31 Jan 2020 11:19:42 GMT]]></title><description><![CDATA[<p dir="auto">Quick way could be:</p>
<p dir="auto">Setting <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d.gui/GeDialog/index.html?highlight=gedialog%20enable#GeDialog.Enable" target="_blank" rel="noopener noreferrer nofollow ugc">GeDialog.Enable</a> to False and depending on your Button changing the background color to transparent..?!</p>
]]></description><link>http://developers.maxon.net/forum/post/61324</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/61324</guid><dc:creator><![CDATA[lasselauch]]></dc:creator><pubDate>Fri, 31 Jan 2020 11:19:42 GMT</pubDate></item></channel></rss>