Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Using Callback function - PopupEditText

    SDK Help
    0
    2
    31
    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 20/11/2005 at 07:41, xxxxxxxx wrote:

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

      ---------
      Sorry if this is a general c++ question, but I cant work out how to use the callback function for the PopupEditText method.

      Could someone please post a simple snippet of how to use a callback function?

      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 22/11/2005 at 14:46, xxxxxxxx wrote:

        First you have to define a callback function PopupEditTextCallback:

          
        void popupTextCallback(LONG mode, const String& text, void* userdata) {  
             if (mode==POPUPEDITTEXTCALLBACK_TEXTCHANGED)   
                  GePrint(text);  
        }  
        

        Then pass that function (type PopupEditTextCallback) to PopupEditText:

          
        String strTest = "Test";  
        PopupEditText(0, 0, 100, 20, strTest, 0, (PopupEditTextCallback* )popupTextCallback, NULL);  
        

        -Chris

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