THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/02/2003 at 07:53, xxxxxxxx wrote:
Cinema 4D Version: 8.012
Language(s) : C.O.F.F.E.E ;
Simple question...lost in sdk...
I am trying to add an icon and a logo picture to my dialog box...but cant figure out how... I know you need to use a resource somehow...
On 26/02/2003 at 11:15, xxxxxxxx wrote:
Let's try this again with IE crashing!!!!
Here's how to add an Icon to the Plugin's menu item:
WhateverData* whateverdata = NULL;
// initialize global resource object
if (!resource.Init()) return FALSE;
// create new instance of WhateverData class
if ((whateverdata = gNew WhateverData) == NULL)
GePrint(GeLoadString(IDS_PLUGIN_NAME) + ": "+GeLoadString(IDS_ERR_CONSTR));
// register hook, ADD MENU ICON, and return
return (RegisterCommandPlugin(PLUGIN_ID, GeLoadString(IDS_PLUGIN_NAME), 0, "pluginicon.tif", GeLoadString(IDS_PLUGIN_DESCR), whateverdata));
And here's how to add Icons to your dialogs:
GroupBegin(5000, BFH_CENTER, 2, 2, NULL, 0);
// some room for the icon
GroupBorderSpace( 8, 8, 8, 8 );
erroricon = (BitmapButtonCustomGui* )AddCustomGui(4000,CUSTOMGUI_BITMAPBUTTON,String(),BFH_FIT,0,0,settings);
if (erroricon) erroricon->SetImage(GeGetPluginPath() + Filename("res") + Filename("erroricon.tif"));
On 27/02/2003 at 06:07, xxxxxxxx wrote:
The guy needs coffee and not C++ The bitmapbutton class is not available in COFFEE. pixolinx, check the examples that are available for COFFEE (you can download them here in the plugincafe afaik). U will have to use a UserArea to show an icon or picture in your dialog. Please also try to search the old forum for UserArea help.
On 27/02/2003 at 09:09, xxxxxxxx wrote:
Didn't even notice. Seems I needed some "Coffee" too. ;0)
On 28/02/2003 at 04:23, xxxxxxxx wrote: