<?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[How to make static texts bold? Icons?]]></title><description><![CDATA[<p dir="auto">Hi guys,</p>
<p dir="auto">1- I have a question. How can I make a static text bold? I tried some common methods in Python but they didn't work!</p>
<pre><code>self.AddStaticText(id=2001, flags=DEFAULT_TEXT_FLAGS, name=static_text)
</code></pre>
<p dir="auto">2- How can I add an icon to a button without using custom icons? Does Cinema4D provide any default icon like Blender?</p>
<pre><code>self.AddButton(id=3002, flags=c4d.BFH_SCALEFIT, initw=100, name="Button!")
</code></pre>
]]></description><link>http://developers.maxon.net/forum/topic/15409/how-to-make-static-texts-bold-icons</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 04:30:22 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/15409.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Mar 2024 13:42:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to make static texts bold? Icons? on Fri, 01 Mar 2024 16:10:15 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/momoko">@<bdi>momoko</bdi></a>,</p>
<p dir="auto">Thank you for reaching out to us. I understand that especially when getting familiar with a new API that the thirst for knowledge is immeasurable and the questions are uncountable but I must also point out our <a href="https://developers.maxon.net/topic/15244/" target="_blank" rel="noopener noreferrer nofollow ugc">Support Guidelines</a> here, especially our <em>Support Topic Rules</em>. A support topic should be mono-thematic, i.e., usually have one question only. If you have multiple questions, please open multiple topics.</p>
<p dir="auto">Please also make sure that your questions are <em>repeatable</em> as outlined in the guidelines. Usually this means complete code. I can guess from the context in this case that you are talking about <code>GeDialog</code> but I might not be able to in a more complex case.</p>
<blockquote>
<p dir="auto">How can I make a static text bold? I tried some common methods in Python but they didn't work!</p>
</blockquote>
<p dir="auto">I am not sure what you mean with common methods in Python, but you can make a static text font bold by a bit counterintuitively setting its border style. There is no italic option and bold emphasis should be used only very selectively.</p>
<pre><code>self.AddStaticText(id=2001, flags=c4d.BFH_SCALEFIT, name="Hello World", borderstyle=c4d.BORDER_WITH_TITLE_BOLD)
</code></pre>
<blockquote>
<p dir="auto">How can I add an icon to a button without using custom icons? Does Cinema4D provide any default icon like Blender?</p>
</blockquote>
<p dir="auto">I am not 100% sure how this is meant. Buttons with icons and text are a bit atypical in Cinema 4D and usually only appear in palettes. The standard dialog button cannot have an icon. But you can use a <code>CUSTOMGUI_BITMAPBUTTON</code>, but they are not really meant to have a caption. You can find a Python example <a href="https://github.com/PluginCafe/cinema4d_py_sdk_extended/blob/a12cca185a7a07fb20aa34520799b66007839e1e/scripts/03_application_development/gui/dialog/gedialog_menu_hide_content_r15.py#L63" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/73898</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/73898</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Fri, 01 Mar 2024 16:10:15 GMT</pubDate></item></channel></rss>