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
    • Recent
    • Tags
    • Users
    • Login

    Update CommandData icon

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 526 Views
    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 Offline
      Helper
      last edited by

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

      On 28/11/2008 at 04:12, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11 
      Platform:      
      Language(s) :     C++  ;

      ---------
      Hi!

      I created a CommandData Plugin which is attached to the Cinema 4D startup layout. Is it possible to change the icon while C4D is running?

      Thanks.

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

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

        On 28/11/2008 at 04:33, xxxxxxxx wrote:

        Use the MSG_GETCUSTOMICON message to change the icon.

        cheers,
        Matthias

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

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

          On 28/11/2008 at 04:53, xxxxxxxx wrote:

          Hi Mattias,

          currently I don't understand where to call it!?
          I tried this:

          message with type=MSG_GETCUSTOMICON was never called.

          > <code>
          > Bool Message(LONG type, void* data)
          >           {
          >                 if(type == MSG_GETCUSTOMICON)
          >                 {
          >                       GePrint("changed icon");
          >                       GetCustomIconData *cid = (GetCustomIconData* )data;
          >                       if(cid)
          >                       {
          >                                    cid->dat->bmp->FlushAll();
          >                                    cid->filled = TRUE;
          >                       }
          >                }
          >           }
          > </code>

          The other way:

          > <code>
          > BasePlugin* plug = FindPlugin(id, 0);
          > GetCustomIconData idata;
          > plug->Message(MSG_GETCUSTOMICON, &idata;);
          >
          > *idata does not contain the bitmap*
          > </code>

          Thanks.

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

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

            On 28/11/2008 at 05:10, xxxxxxxx wrote:

            From where do you want to change the icon? MSG_GETCUSTOMICON is called here in my Message() function. As far as I can see it always called when there was some interaction with the icon, for instance if I open the plugin menu or execute the plugin by clicking on the icon.

            cheers,
            Matthias

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

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

              On 28/11/2008 at 05:12, xxxxxxxx wrote:

              I wanted to change the icon from another CommandData Execute()-method.

              bye.

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

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

                On 28/11/2008 at 08:28, xxxxxxxx wrote:

                Ok, I have to look into it.

                cheers,
                Matthias

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

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

                  On 28/11/2008 at 09:00, xxxxxxxx wrote:

                  Thank you. 🙂

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