norbert@iraul1.ira.uka.de (Norbert Lindenberg) (11/15/88)
I have a problem concerning modeless dialogs in MacApp 2.0b5: My application creates modeless dialogs, which may live for some time until the user decides to hit the OK button. When this happens, the dialog should create an undoable TCommand object. When the user hits the button, the button's TCtlMgr.DoMouseCommand catches the event and calls DoChoice, which ends up calling TMyDialogView.DismissDialog. This is the place where I would like to create my command object, because - the dialog view has all the information needed for the command object, whereas the button does not, - DismissDialog also is called when the user hits Return or Enter, - a comment in TDialogView.DismissDialog tells me that this is the right place. No go. Neither DoChoice nor DismissDialog are able to return command objects. Is this an oversight, or is there a better way to handle creation of command objects in modeless dialogs? -- Norbert