diff options
author | peter1138 <peter1138@openttd.org> | 2008-08-07 18:26:13 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-08-07 18:26:13 +0000 |
commit | 3c2f69bf623d4ee2de646d2bf801762d88b86858 (patch) | |
tree | b6e6b123bb2df53b2c8411e17d016de2a0a1fc40 /src/widgets/dropdown_type.h | |
parent | 6bae045b4af118f19946ecb4d160a9d69c6638f8 (diff) | |
download | openttd-3c2f69bf623d4ee2de646d2bf801762d88b86858.tar.xz |
(svn r14015) -Codechange: Add facility for a drop down list to always close (if requested) when the mouse button is released.
Diffstat (limited to 'src/widgets/dropdown_type.h')
-rw-r--r-- | src/widgets/dropdown_type.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/dropdown_type.h b/src/widgets/dropdown_type.h index c9686a178..f3a5f7976 100644 --- a/src/widgets/dropdown_type.h +++ b/src/widgets/dropdown_type.h @@ -72,7 +72,9 @@ typedef std::list<DropDownListItem *> DropDownList; * @param width Override the width determined by the selected widget. * If UINT_MAX then the width is determined by the widest item * in the list. + * @param instant_close Set to true if releasing mouse button should close the + * list regardless of where the cursor is. */ -void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, uint width = 0); +void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, uint width = 0, bool instant_close = false); #endif /* WIDGETS_DROPDOWN_TYPE_H */ |