THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/02/2011 at 08:23, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform: Windows ;
Language(s) : C++ ;
---------
I don't know if it's possible to do this, but what I'd like to do is add icons to the menus in my GeDialog. Looking at the object manager for example, the menu entries there have icons, but these menu entries are C4D commands. Adding a C4D command to my menus will add the relevant icon, but how do (or can I) do this for my own menu entries? I normally add these with MenuAddString(), but there's no apparent way to add an icon.
There's also the function MenuSetResource() in gui.h, which sounds as if it might do the trick, but there's no documentation on this or on what a menu resource might be.
The other interesting thing I noticed is that, adding a C4D command to a dialog menu with MenuAddCommand() automatically makes the menu into a tear-off palette, which they otherwise aren't. Is it possible to make a menu into a tear-off, without adding an internal command?
Thanks,
Steve