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

    SendMessage() does not exist in COFFEE

    SDK Help
    0
    5
    409
    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 06/11/2004 at 04:27, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:      
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      The documentation about COFFEE says

      > Quote: __
      >
      > * * *
      >
      > GeBaseDialog::SendMessage
      > SDK-Language: COFFEE
      >
      > Type: Function
      > Date Created: 12/26/00 10:19:26 AM
      > Date Updated: 12/26/00 10:19:26 AM
      > Product: XL,NET,BP
      > Version: 6103
      >
      >
      > * * *

      But actually I was unable to find such a representation in COFFEE. The gedialog.cox file in resource/modules/coffee doesn't implement this function either.
      I think it should be removed from the documentationindex if this function is not accessable from COFFEE. If it is, but is hidden somewhere, it could be really nice to know where and how to call it.

      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 06/11/2004 at 07:11, xxxxxxxx wrote:

        Sorry, but what´s the exact problem? This is what the documentation tells us. It says exactly how to use it:

        > Quote: GeBaseDialog::SendMessage
        >
        > * * *
        >
        > SDK-Language: COFFEE
        >
        > Type: Function
        > Date Created: 12/26/00 10:19:26 AM
        > Date Updated: 12/26/00 10:19:26 AM
        > Product: XL,NET,BP
        > Version: 6103
        > Definition
        > [bool] SendMessage([int] id, [BaseContainer] msg);
        >
        > Description
        > Sends an internal message to the dialog.
        >
        > * * *

        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 06/11/2004 at 07:40, xxxxxxxx wrote:

          The problem is, that

          dialog->SendMessage

          Throws an exception that the member does not exist. Try it out yourself:

            
          class SomeDialog:GeModalDialog {  
               public:  
                    SomeDialog();  
                    CreateLayout();            
                    AskClose();  
          }  
          SomeDialog::SomeDialog() {super();}  
          SomeDialog::CreateLayout() {  
               var container = new(BaseContainer);  
               SendMessage(100,container);   
                    // arguments are unimportant since sendmessage can't be found  
                    // errmsg: variable or function expected  
          }  
          SomeDialog::AskClose() { return FALSE;}  
            
          main() {  
               var d = new(SomeDialog);  
               d->open(-1,-1);  
          }  
          
          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 06/11/2004 at 07:46, xxxxxxxx wrote:

            OH you are right. Sorry, my fault. Pretty strange it doesn´t work. But what do you exactly need it for? You can surely workaround it (depending what it´s used for).

            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 06/11/2004 at 09:14, xxxxxxxx wrote:

              No, sadly not - I cannot resize Scrollgroups in my dynamic GUI and cannot change the active page in tabgroups, this works only by sending messages to the GUI elements - I had this discussion one year ago..

              I think this is defenitly a bug - next to the one I am posting in a few minutes.

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