Page 1 of 1

FAR3 dialogs and ESCAPE

Posted: Mon 22 Apr, 2013 19:04
by pepak
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?

Re: FAR3 dialogs and ESCAPE

Posted: Mon 22 Apr, 2013 19:41
by t-rex
Show your code, it works fine.

Re: FAR3 dialogs and ESCAPE

Posted: Mon 22 Apr, 2013 19:41
by t-rex
but try a newer build, there were 100+ builds since 3258

Re: FAR3 dialogs and ESCAPE

Posted: Tue 23 Apr, 2013 05:16
by pepak
Not yet ready to release anything. I just wanted to know i this behavior is normal and perhaps I need to use a specific flag. If you say ESCAPE should work normally, I will leave it until the plugin is finished and then maybe upgrade FAR3 and see what happens.

Re: FAR3 dialogs and ESCAPE

Posted: Mon 29 Apr, 2013 11:53
by pepak
For some reason the no-ESCAPE problem went away.

Re: FAR3 dialogs and ESCAPE

Posted: Tue 29 Oct, 2013 06:46
by glebedev
I have problem with escape key in any dialog. And it seems to me it doesn't want to go away. Any ideas?

Re: FAR3 dialogs and ESCAPE

Posted: Tue 29 Oct, 2013 08:24
by 2useven10
Maybe you have Adobe PhotoShop CS4 running ???

Re: FAR3 dialogs and ESCAPE

Posted: Fri 26 Sep, 2014 14:26
by Osbert
glebedev wrote:I have problem with escape key in any dialog. And it seems to me it doesn't want to go away. Any ideas?
Same problem here. How to fix this??