FAR3 dialogs and ESCAPE
Posted: Mon 22 Apr, 2013 19:04
FAR 3, build 3258.
In OpenPluginW, I create a new dialog and display it. It works fine, all controls respond how they should, the default button (DI_BUTTON with DIF_DEFAULTBUTTON) reacts as well. The other button (DI_BUTTON with no special flags) closes the dialog as intended. But I can't get the dialog to close when I press ESCAPE; in FAR2, this behavior was automatic, but in FAR3, I could only achieve it through the DialogProc's DN_CONTROLINPUT message (I check for an ESCAPE, and then it is pressed, I send a DM_CLOSE message to the dialog). Isn't there an easier way?
In OpenPluginW, I create a new dialog and display it. It works fine, all controls respond how they should, the default button (DI_BUTTON with DIF_DEFAULTBUTTON) reacts as well. The other button (DI_BUTTON with no special flags) closes the dialog as intended. But I can't get the dialog to close when I press ESCAPE; in FAR2, this behavior was automatic, but in FAR3, I could only achieve it through the DialogProc's DN_CONTROLINPUT message (I check for an ESCAPE, and then it is pressed, I send a DM_CLOSE message to the dialog). Isn't there an easier way?