On Fri, 17 Oct 2008, Carl Zmola wrote: > Jerome Laheurte wrote:
>> Yes, should work, but the user expects the task creation to be undone when >> he clicks OK, then Undo. With a command for each action, you couldn't even >> know how much clicks on Undo would be needed... >> > Can you use a composite command. Actions within a dialog get aggregated in a > composite command when OK is clicked, and then the undo action on a > composite command will undo all of the composite actions? Or am I missing > something? Yes, the composite command approach came to my mind as well, but I'm not sure it would work 100% in scenarios where two task editors interact. Anyway, encapsulating *everything* in commands would be quite some work... Cheers Jérôme
