diff options
author | belugas <belugas@openttd.org> | 2007-12-06 02:31:47 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-12-06 02:31:47 +0000 |
commit | 7edf28529dad8d0619d10c27a480eeca7a896321 (patch) | |
tree | 197485baf9d0d317504f4c787e98776786d15b18 /src/network | |
parent | 49d632c31b47501217d54623b989a35df5672aad (diff) | |
download | openttd-7edf28529dad8d0619d10c27a480eeca7a896321.tar.xz |
(svn r11578) -Codechange: Introduce the window default flag WDF_TEXTENTRY which specifies that the window holding it is actually one that enables an edit box.
Use this flag when dispatching a key event instead of using some hard coded window IDs.
This should ease a little bit the creation of new edit aware windows.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 5e5cdfb9c..f4ab5747f 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1852,7 +1852,7 @@ static const Widget _chat_window_widgets[] = { static const WindowDesc _chat_window_desc = { WDP_CENTER, -26, 320, 14, 640, 14, // x, y, width, height WC_SEND_NETWORK_MSG, WC_NONE, - WDF_STD_TOOLTIPS | WDF_DEF_WIDGET, + WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_TEXTENTRY, _chat_window_widgets, ChatWindowWndProc }; @@ -1951,7 +1951,7 @@ static const Widget _ncp_window_widgets[] = { static const WindowDesc _ncp_window_desc = { WDP_AUTO, WDP_AUTO, 300, 63, 300, 63, WC_COMPANY_PASSWORD_WINDOW, WC_NONE, - WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, + WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_TEXTENTRY, _ncp_window_widgets, NetworkCompanyPasswordWindowWndProc }; |