TextDialog() not working?



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


  • 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



  • 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 didn't mention anything about not calling it from inside an expression.

    When is it OK to call TextDialog()?



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



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



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



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


Log in to reply