SendMessage() does not exist in COFFEE



  • 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.



  • 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.
    >
    > * * *



  • 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);  
    }  
    


  • 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).



  • 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.


Log in to reply