Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Plugin Icon and Logo help...

    SDK Help
    0
    5
    611
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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:

      User Information:
      Cinema 4D Version:   8.012 
      Platform:      
      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...
      thanks
      pixolinx->Dev newbie();

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        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:

            
            
              
            Bool PluginStart()  
            {  
             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));  
              return FALSE;  
             }
            
            
            
            
             // 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:

            
            
              
            Bool ErrorDialog::CreateLayout()  
            {  
             BitmapButtonCustomGui* erroricon;
            
            
            
            
             SetTitle(GeLoadString(ERROR_DIALOG_TITLE));  
             GroupBegin(5000, BFH_CENTER, 2, 2, NULL, 0);  
             {  
              // some room for the icon  
              GroupBorderSpace( 8, 8, 8, 8 );  
              {  
               BaseContainer settings;  
               settings.SetBool(BITMAPBUTTON_BUTTON,TRUE);  
               erroricon  = (BitmapButtonCustomGui* )AddCustomGui(4000,CUSTOMGUI_BITMAPBUTTON,String(),BFH_FIT,0,0,settings);  
              }  
              if (erroricon) erroricon->SetImage(GeGetPluginPath() + Filename("res") + Filename("erroricon.tif"));  
             ...  
             GroupEnd();  
            }  
            
        

        HTH,
        Robert

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          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.

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 27/02/2003 at 09:09, xxxxxxxx wrote:

            Didn't even notice.  Seems I needed some "Coffee" too. ;0)
            Robert

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 28/02/2003 at 04:23, xxxxxxxx wrote:

              Thanks guys...
              pixolinx

              1 Reply Last reply Reply Quote 0
              • First post
                Last post