WithMyDialogLayout<TopWindow> dlg; CtrlLayoutOKCancel(dlg, "Dialog"); if(dlg.Run(true)) PromptOK(AsString(~dlg.etime));