Dialogs, Dlggroup and AskClose ...

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

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.