On 05/08/2018 at 13:53, xxxxxxxx wrote:
Cinema 4D Version: R29
Platform: Windows ; Mac ; Mac OSX ;
Is there a way to set a custom icon to a submenu item created with CommandData::GetSubContainer() ?
My menu is dynamic, so I can't have a unique plugin id for each item.
Using the member doc entry as example, how to set the subid 1000 icon?
bc.[SetString](class_base_container.html#ae460ea6b66f90a8b390239c42092f82b)(1, "Submenu Test");
bc.[SetString](class_base_container.html#ae460ea6b66f90a8b390239c42092f82b)(1000, "First Entry");
On 06/08/2018 at 07:47, xxxxxxxx wrote:
It is only possible to use registered icons in menus. Note menu items IDs doesn't have be unique plugin IDs, only the icons IDs.
With a given registered icon ID 123456789 , the text for the menu item has to be constructed like this: "Menu Text &i123456789&".
On 07/08/2018 at 17:21, xxxxxxxx wrote:
Nice trick! How could I miss it?