(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.
This commit is contained in:
@@ -235,7 +235,7 @@ static const Widget _newgrf_add_dlg_widgets[] = {
|
||||
static const WindowDesc _newgrf_add_dlg_desc = {
|
||||
WDP_CENTER, WDP_CENTER, 307, 237, 307, 337,
|
||||
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,
|
||||
_newgrf_add_dlg_widgets,
|
||||
NewGRFAddDlgWndProc,
|
||||
};
|
||||
|
Reference in New Issue
Block a user