summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-12-06 02:31:47 +0000
committerbelugas <belugas@openttd.org>2007-12-06 02:31:47 +0000
commit7edf28529dad8d0619d10c27a480eeca7a896321 (patch)
tree197485baf9d0d317504f4c787e98776786d15b18 /src/misc_gui.cpp
parent49d632c31b47501217d54623b989a35df5672aad (diff)
downloadopenttd-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/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index b6b698cfb..0c4fae48b 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -1180,7 +1180,7 @@ static const Widget _query_string_widgets[] = {
static const WindowDesc _query_string_desc = {
190, 219, 260, 42, 260, 42,
WC_QUERY_STRING, WC_NONE,
- WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
+ WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_TEXTENTRY,
_query_string_widgets,
QueryStringWndProc
};
@@ -1648,7 +1648,7 @@ static void SaveLoadDlgWndProc(Window *w, WindowEvent *e)
static const WindowDesc _load_dialog_desc = {
WDP_CENTER, WDP_CENTER, 257, 154, 257, 294,
WC_SAVELOAD, WC_NONE,
- WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
+ WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE | WDF_TEXTENTRY,
_load_dialog_widgets,
SaveLoadDlgWndProc,
};
@@ -1656,7 +1656,7 @@ static const WindowDesc _load_dialog_desc = {
static const WindowDesc _save_dialog_desc = {
WDP_CENTER, WDP_CENTER, 257, 180, 257, 320,
WC_SAVELOAD, WC_NONE,
- WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
+ WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE | WDF_TEXTENTRY,
_save_dialog_widgets,
SaveLoadDlgWndProc,
};