ButtonBmp - Escape
Posted: Thu Dec 20, 2012 4:53 pm
Friends all,
I have a small issue with the BUTTONBMP buttons and the ESCAPE key in MDI environment using embedded NOWAIT MdiChilds dialogs.
I conditioned the output (oDlg and Child) by GetKeyState (VK_ESCAPE) and it works correctly.
Now if the focus are on any object other than ButtonBmp, the condition works well. But if the user clicks on any ButtonBmp and release the mouse button outside the button, leaving the focus on this, and then press escape, shoots the the escape key action and only closes the dialog, leaving the child active. That is, if any BUTTONBMP has focus and you press the escape key, the given condition with GetKeyState (VK_ESCAPE) is not respected, and only closes the dialog.
Have any of you experienced this problem? Do you have a solution?
I appreciate any comment. I use Fwh1204-xHarbour-PellesC
Greetings.
I have a small issue with the BUTTONBMP buttons and the ESCAPE key in MDI environment using embedded NOWAIT MdiChilds dialogs.
I conditioned the output (oDlg and Child) by GetKeyState (VK_ESCAPE) and it works correctly.
Now if the focus are on any object other than ButtonBmp, the condition works well. But if the user clicks on any ButtonBmp and release the mouse button outside the button, leaving the focus on this, and then press escape, shoots the the escape key action and only closes the dialog, leaving the child active. That is, if any BUTTONBMP has focus and you press the escape key, the given condition with GetKeyState (VK_ESCAPE) is not respected, and only closes the dialog.
Have any of you experienced this problem? Do you have a solution?
I appreciate any comment. I use Fwh1204-xHarbour-PellesC
Greetings.