mrjt Messages: 705 Registered: March 2007 Location: London
Contributor
The easiest way is to have buttons on the dialog with specific names and use the correct version of CtrlLayout. For instance
Buttons 'ok' and 'cancel', call CtrlLayoutOKCancel
Just 'cancel' and CtrlLayoutCancel
Just 'exit' and CtrlLayoutExit
Or you can override TopWindow::Key and catch K_ESCAPE.