Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Dialogs, Dlggroup and AskClose ...

    SDK Help
    0
    2
    179
    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 07/04/2006 at 07:12, xxxxxxxx wrote:

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

      ---------
      Hi,

      I am trying to set up a simple menu plugin launching a dialog (class GeDialog) for user input. All this works fine, until i get to closing the dialog and working with the results.

      I added a dialoggroup with ok and cancel

      DLGGROUP { OK; CANCEL; } 
      

      and thought it would be handled by C4D, but that's not the case. So if I just run it like that, the buttons are there, but nothing happens when I click them.
      I can look for the ID's (id==1 or id==2, is there another way to reference the DLGGROUP elements, like id==DLG_OK or so?) and then close the dialog manually in the

      command(id, msg)
      

      ... but then again: when is

      AskClose()
      

      called? I thought this would be called automatically upon closing the dialog.
      Of course I can call it manually again, but there must be a "cleaner" way of programming it using C4D's features ... I just can't find it ...

      Juergen

      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 07/04/2006 at 08:29, xxxxxxxx wrote:

        Ok ... main stuff is working now, I figured it out somehow. Just one more thing remains:
        Can I force the plugin to skip

        AskClose()
        

        when the cancel-button is pressed? Because both buttons (Ok/Cancel) are followed by a

        Close()
        

        command, but I only want to check for input errors on OK.

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