#56 Textfield and -dialogui, ESC closes window

open
nobody
5
2008-01-31
2006-01-06
Robert May
No

If you press ESC in a textfield that is hosted in a
window that has -dialogui option set, then the window
recieves a WM_CLOSE message and is closed; If this is
a top level window this causes the UI to dissapear, but
leaves the event loop spinning.

To fix, Textfield needs to process WM_GETDLGCODE, and
return 0 for a WM_KEYDOWN message with key VK_ESCAPE.

Current code base makes this difficult to do.

Discussion

  • Robert May
    Robert May
    2008-01-31

    • labels: --> Win32::GUI Core