summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-03-28 02:46:10 +0000
committeryexo <yexo@openttd.org>2009-03-28 02:46:10 +0000
commited330197c4de8c55b929b44f51f78bc0c56a3fd1 (patch)
tree909f9906b55db6f3bb4dc2e4e070fd1faa443425 /src/window_gui.h
parent4a4ee9fb37956dd489f1b45faec6170948cbf6f4 (diff)
downloadopenttd-ed330197c4de8c55b929b44f51f78bc0c56a3fd1.tar.xz
(svn r15867) -Codechange: remove the assumption that the first widgets are the close box/title bar.
Most work already done by r15756.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 223b17618..603280298 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -69,11 +69,11 @@ struct WindowDesc : ZeroedMemoryAllocator {
enum WindowDefaultFlag {
WDF_STD_TOOLTIPS = 1 << 0, ///< use standard routine when displaying tooltips
WDF_DEF_WIDGET = 1 << 1, ///< Default widget control for some widgets in the on click event, @see DispatchLeftClickEvent()
- WDF_STD_BTN = 1 << 2, ///< Default handling for close and titlebar widgets (widget no 0 and 1)
+ WDF_STD_BTN = 1 << 2, ///< Default handling for close and titlebar widgets (the widgets with type WWT_CLOSEBOX and WWT_CAPTION).
WDF_CONSTRUCTION = 1 << 3, ///< This window is used for construction; close it whenever changing company.
WDF_UNCLICK_BUTTONS = 1 << 4, ///< Unclick buttons when the window event times out
- WDF_STICKY_BUTTON = 1 << 5, ///< Set window to sticky mode; they are not closed unless closed with 'X' (widget 2)
+ WDF_STICKY_BUTTON = 1 << 5, ///< Set window to sticky mode; they are not closed unless closed with 'X' (widget with type WWT_STICKYBOX).
WDF_RESIZABLE = 1 << 6, ///< Window can be resized
WDF_MODAL = 1 << 7, ///< The window is a modal child of some other window, meaning the parent is 'inactive'