<?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[Tool icon variants]]></title><description><![CDATA[<p dir="auto"><em>On 03/08/2018 at 14:23, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">User Information:<br />
Cinema 4D Version:   R19 <br />
Platform:   Windows  ; Mac  ;  Mac OSX  ; <br />
Language(s) :     C++  ;</p>
<p dir="auto">---------<br />
Hi,</p>
<p dir="auto">The recommended icon size for DescriptionToolData is 32x32, but it looks very low res in the toolbar.<br />
If I double the size, it will look great on the toolbar, but gigantic besides the mouse pointer.<br />
Is there a way to register a high-res icon for the toolbar and a low-res icon for the pointer?</p>
]]></description><link>http://developers.maxon.net/forum//topic/10899/14348_tool-icon-variants</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 11:39:44 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum//topic/10899.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 01 Sep 2018 10:53:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tool icon variants on Sat, 01 Sep 2018 10:54:04 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 10/08/2018 at 08:00, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Perfect, thanks!</p>
]]></description><link>http://developers.maxon.net/forum//post/55386</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/55386</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Sat, 01 Sep 2018 10:54:04 GMT</pubDate></item><item><title><![CDATA[Reply to Tool icon variants on Sat, 01 Sep 2018 10:54:01 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 07/08/2018 at 01:02, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hi,</p>
<p dir="auto">well, yes, in theory you can register two different icons, I'll get back to this at the end, but it's actually way simpler.</p>
<p dir="auto">The key is to set the <a href="https://developers.maxon.net/docs/cpp/2023_2/group___b_a_s_e_b_i_t_m_a_p___d_a_t_a.html#gadb3b7433364f5efa51f770ae605e9e39" target="_blank" rel="noopener noreferrer nofollow ugc">BASEBITMAP_DATA_GUIPIXELRATIO</a> correct (for a 64 by 64 icon it's 2.0) for the bitmap, then everything will work automatically with just one icon. Therefore you have several options:</p>
<pre><code>// when using [AutoBitmap](https://developers.maxon.net/docs/cpp/2023_2/class_auto_bitmap.html), set it directly
BaseBitmap* bmp = AutoBitmap("myicon_64x64.tif", 2.0);
// Or when allocating a bitmap manually
BaseBitmap* bmp = BaseBitmap::Alloc();
if (bmp-&gt;Init(GeGetPluginResourcePath() + "myicon_64x64.tif") != IMAGERESULT_OK)
	return false;
bmp-&gt;SetData(BASEBITMAP_DATA_GUIPIXELRATIO, 2.0);
</code></pre>
<p dir="auto">But if you want to, you can also register as many icons of various sizes as you like, via <a href="https://developers.maxon.net/docs/cpp/2023_2/group__group__iconcollectionlibrary.html#gad4e0a6927aabef0c2fcc3ac862a34f79" target="_blank" rel="noopener noreferrer nofollow ugc">RegisterIcon()</a> (with <a href="https://developers.maxon.net/docs/cpp/2023_2/group___i_c_o_n_f_l_a_g.html#ggaa6cab4113fbcdf2e4dad5694c44099b8a475a372fdac6f9db1ea78e41a147d5d8" target="_blank" rel="noopener noreferrer nofollow ugc">ICONFLAG_2X</a>).<br />
Then you'd need to set the <a href="https://developers.maxon.net/docs/cpp/2023_2/group___b_f_m.html#ggaf517c25f0cbab0c829449a0577b1902ca8a6d38d2ea9bc71813b6e0a8eafed68b" target="_blank" rel="noopener noreferrer nofollow ugc">RESULT_CURSOR</a> in the BaseContainer in <a href="https://developers.maxon.net/docs/cpp/2023_2/class_tool_data.html#a1fbaa0247cf1bdc484d8c2bce2d3c58c" target="_blank" rel="noopener noreferrer nofollow ugc">GetCursorInfo()</a> to the registered icon ID. Remember to use unique IDs to register icons.</p>
]]></description><link>http://developers.maxon.net/forum//post/55385</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/55385</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Sat, 01 Sep 2018 10:54:01 GMT</pubDate></item></channel></rss>