|
OpenTTD Source
14.0-beta3
|
#include "../window_gui.h"Go to the source code of this file.
Functions | |
| void | ShowDropDownMenu (Window *w, const StringID *strings, int selected, WidgetID button, uint32_t disabled_mask, uint32_t hidden_mask, uint width=0) |
| Show a dropdown menu window near a widget of the parent window. More... | |
Functions related to the drop down widget.
Definition in file dropdown_func.h.
| void ShowDropDownMenu | ( | Window * | w, |
| const StringID * | strings, | ||
| int | selected, | ||
| WidgetID | button, | ||
| uint32_t | disabled_mask, | ||
| uint32_t | hidden_mask, | ||
| uint | width | ||
| ) |
Show a dropdown menu window near a widget of the parent window.
The result code of the items is their index in the strings list.
| w | Parent window that wants the dropdown menu. |
| strings | Menu list, end with INVALID_STRING_ID |
| selected | Index of initial selected item. |
| button | Button widget number of the parent window w that wants the dropdown menu. |
| disabled_mask | Bitmask for disabled items (items with their bit set are displayed, but not selectable in the dropdown list). |
| hidden_mask | Bitmask for hidden items (items with their bit set are not copied to the dropdown list). |
| width | Minimum width of the dropdown menu. |
Definition at line 386 of file dropdown.cpp.
References HasBit(), INVALID_STRING_ID, and ShowDropDownList().