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

    TextDialog() not working?

    SDK Help
    0
    7
    633
    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 19/11/2003 at 08:40, xxxxxxxx wrote:

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

      ---------
      For some reason I can't get the TextDialog() function to work. The following code compiles and runs without generating any errors, and when I attach it to an object, it prints out to the console no problem every time the object moves. But I'm not seeing any dialog boxes.

      Is this a bug, or am I doing something wrong?

        
      main(doc,op)  
      {  
      var result = TextDialog("Hello World",DLG_OKCANCEL DLG_ICONEXCLAMATION);  
      println("Hello Console");  
      }  
      
      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 19/11/2003 at 09:11, xxxxxxxx wrote:

        dialog boxes cannot be called from within an expression.
        Samir

        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 19/11/2003 at 09:25, xxxxxxxx wrote:

          O_o

          You've got me confused now! The documentation[URL-REMOVED] didn't mention anything about not calling it from inside an expression.

          When is it OK to call TextDialog()?


          [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

          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 20/11/2003 at 05:19, xxxxxxxx wrote:

            From within a "real" plugin you can call TextDialog without any problems. The documentation isn´t always complete...

            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 21/11/2003 at 08:05, xxxxxxxx wrote:

              Making calls that completely block the interface from a thread is never a good idea 🙂

              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 21/11/2003 at 08:33, xxxxxxxx wrote:

                Sure it is. when a critical situation occurs this is the perfect way to let the user choose whether to continue or not, instead of letting him accidently choose the wrong one (which probably rather happens if he can keep on working, is annoyed by a window and just clicks it away...that´s at least what the experience tells us).

                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 21/11/2003 at 10:45, xxxxxxxx wrote:

                  I agree with Samir!

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