Bearsampp 2026.3.26
API documentation
Loading...
Searching...
No Matches
wb_constants.inc.php
Go to the documentation of this file.
1<?php
2
3/*******************************************************************************
4
5 WINBINDER - The native Windows binding for PHP
6
7 Copyright Hypervisual - see LICENSE.TXT for details
8 Author: Rubem Pechansky (https://github.com/crispy-computing-machine/Winbinder)
9
10 WinBinder constants
11
12*******************************************************************************/
13
14// Define WinBinder constants if the extension provides them
15// If the extension is loaded, these will be defined by the extension itself
16// This file provides fallback definitions for when constants are not available
17
18if (!defined('WBC_CENTER')) {
19 // Window positioning
20 define('WBC_CENTER', 0xFFFF);
21 define('WBC_TOP', 0x0001);
22 define('WBC_BOTTOM', 0x0002);
23 define('WBC_LEFT', 0x0004);
24 define('WBC_RIGHT', 0x0008);
25
26 // Window styles
27 define('WBC_NOTIFY', 0x0010);
28 define('WBC_READONLY', 0x0020);
29 define('WBC_DISABLED', 0x0040);
30 define('WBC_ENABLED', 0x0080);
31 define('WBC_INVISIBLE', 0x0100);
32 define('WBC_VISIBLE', 0x0200);
33 define('WBC_BORDER', 0x0400);
34 define('WBC_LINES', 0x0800);
35 define('WBC_CHECKBOXES', 0x1000);
36 define('WBC_SORT', 0x2000);
37 define('WBC_MULTISELECT', 0x4000);
38 define('WBC_GROUP', 0x8000);
39 define('WBC_MASKED', 0x10000);
40 define('WBC_NUMBER', 0x20000);
41 define('WBC_AUTOREPEAT', 0x40000);
42 define('WBC_CUSTOMDRAW', 0x80000);
43 define('WBC_MINIMIZE', 0x100000);
44 define('WBC_MAXIMIZE', 0x200000);
45 define('WBC_RESIZE', 0x400000);
46 define('WBC_TASKBAR', 0x800000);
47 define('WBC_REDRAW', 0x1000000);
48 define('WBC_GETFOCUS', 0x2000000);
49 define('WBC_KEYDOWN', 0x4000000);
50 define('WBC_KEYUP', 0x8000000);
51 define('WBC_MOUSEDOWN', 0x10000000);
52 define('WBC_MOUSEUP', 0x20000000);
53 define('WBC_MOUSEMOVE', 0x40000000);
54 define('WBC_DBLCLICK', 0x80000000);
55
56 // Window classes
57 define('AppWindow', 'AppWindow');
58 define('NakedWindow', 'NakedWindow');
59 define('ToolDialog', 'ToolDialog');
60 define('ModelessDialog', 'ModelessDialog');
61 define('ModalDialog', 'ModalDialog');
62 define('PopupWindow', 'PopupWindow');
63 define('ResizableWindow', 'ResizableWindow');
64
65 // Control classes
66 define('Accel', 'Accel');
67 define('Calendar', 'Calendar');
68 define('CheckBox', 'CheckBox');
69 define('ComboBox', 'ComboBox');
70 define('EditBox', 'EditBox');
71 define('Frame', 'Frame');
72 define('Gauge', 'Gauge');
73 define('HTMLControl', 'HTMLControl');
74 define('HyperLink', 'HyperLink');
75 define('ImageButton', 'ImageButton');
76 define('InvisibleArea', 'InvisibleArea');
77 define('Label', 'Label');
78 define('ListBox', 'ListBox');
79 define('ListView', 'ListView');
80 define('Menu', 'Menu');
81 define('PushButton', 'PushButton');
82 define('RadioButton', 'RadioButton');
83 define('RTFEditBox', 'RTFEditBox');
84 define('ScrollBar', 'ScrollBar');
85 define('Slider', 'Slider');
86 define('Spinner', 'Spinner');
87 define('StatusBar', 'StatusBar');
88 define('TabControl', 'TabControl');
89 define('ToolBar', 'ToolBar');
90 define('TreeView', 'TreeView');
91
92 // Message box types
93 define('WBC_INFO', 0x40);
94 define('WBC_OK', 0x00);
95 define('WBC_OKCANCEL', 0x01);
96 define('WBC_QUESTION', 0x20);
97 define('WBC_STOP', 0x10);
98 define('WBC_WARNING', 0x30);
99 define('WBC_YESNO', 0x04);
100 define('WBC_YESNOCANCEL', 0x03);
101
102 // Message box return values
103 define('IDOK', 1);
104 define('IDCANCEL', 2);
105 define('IDABORT', 3);
106 define('IDRETRY', 4);
107 define('IDIGNORE', 5);
108 define('IDYES', 6);
109 define('IDNO', 7);
110 define('IDCLOSE', 8);
111 define('IDHELP', 9);
112
113 // Colors
114 define('BLACK', 0x000000);
115 define('BLUE', 0xFF0000);
116 define('CYAN', 0xFFFF00);
117 define('DARKBLUE', 0x800000);
118 define('DARKCYAN', 0x808000);
119 define('DARKGRAY', 0x808080);
120 define('DARKGREEN', 0x008000);
121 define('DARKMAGENTA', 0x800080);
122 define('DARKRED', 0x000080);
123 define('DARKYELLOW', 0x008080);
124 define('GREEN', 0x00FF00);
125 define('LIGHTGRAY', 0xC0C0C0);
126 define('MAGENTA', 0xFF00FF);
127 define('RED', 0x0000FF);
128 define('WHITE', 0xFFFFFF);
129 define('YELLOW', 0x00FFFF);
130
131 // Font styles
132 define('WBC_BOLD', 0x01);
133 define('WBC_ITALIC', 0x02);
134 define('WBC_UNDERLINE', 0x04);
135 define('WBC_STRIKEOUT', 0x08);
136
137 // System information
138 define('WBC_SCREENAREA', 'screenarea');
139 define('WBC_WORKAREA', 'workarea');
140
141 // Timer
142 define('WBC_TIMER', 0x01);
143
144 // Keyboard
145 define('WBC_ALT', 0x01);
146 define('WBC_CONTROL', 0x02);
147 define('WBC_SHIFT', 0x04);
148
149 // Mouse buttons
150 define('WBC_LBUTTON', 0x01);
151 define('WBC_MBUTTON', 0x02);
152 define('WBC_RBUTTON', 0x04);
153
154 // ListView styles
155 define('WBC_SINGLE', 0x01);
156 define('WBC_MULTI', 0x02);
157 define('WBC_EXTENDED', 0x04);
158
159 // TreeView styles
160 define('WBC_HASLINES', 0x01);
161 define('WBC_HASBUTTONS', 0x02);
162 define('WBC_HASLINESATROOT', 0x04);
163 define('WBC_CHECKBOXES', 0x08);
164
165 // Tab control styles
166 define('WBC_BOTTOM', 0x01);
167 define('WBC_MULTILINE', 0x02);
168
169 // Toolbar styles
170 define('WBC_FLAT', 0x01);
171 define('WBC_TOOLTIPS', 0x02);
172
173 // Status bar styles
174 define('WBC_SIZEGRIP', 0x01);
175
176 // Edit box styles
177 define('WBC_MULTILINE', 0x01);
178 define('WBC_HSCROLL', 0x02);
179 define('WBC_VSCROLL', 0x04);
180 define('WBC_AUTOHSCROLL', 0x08);
181 define('WBC_AUTOVSCROLL', 0x10);
182
183 // Combo box styles
184 define('WBC_DROPDOWN', 0x01);
185 define('WBC_DROPDOWNLIST', 0x02);
186 define('WBC_SIMPLE', 0x04);
187
188 // List box styles
189 define('WBC_NOINTEGRALHEIGHT', 0x01);
190 define('WBC_DISABLENOSCROLL', 0x02);
191
192 // Scroll bar styles
193 define('WBC_HORIZONTAL', 0x01);
194 define('WBC_VERTICAL', 0x02);
195
196 // Slider styles
197 define('WBC_AUTOTICKS', 0x01);
198 define('WBC_NOTICKS', 0x02);
199 define('WBC_TOOLTIPS', 0x04);
200
201 // Spinner styles
202 define('WBC_ARROWKEYS', 0x01);
203 define('WBC_WRAP', 0x02);
204
205 // Calendar styles
206 define('WBC_NOTODAY', 0x01);
207 define('WBC_NOTODAYCIRCLE', 0x02);
208 define('WBC_WEEKNUMBERS', 0x04);
209
210 // HTML control styles
211 define('WBC_SILENT', 0x01);
212
213 // Image button styles
214 define('WBC_BITMAP', 0x01);
215 define('WBC_ICON', 0x02);
216
217 // Frame styles
218 define('WBC_ETCHED', 0x01);
219 define('WBC_RAISED', 0x02);
220 define('WBC_SUNKEN', 0x04);
221}
222
223?>