Bearsampp 2026.3.26
API documentation
Loading...
Searching...
No Matches
WinBinder Class Reference

Public Member Functions

 __construct ()
 createAppWindow ($caption, $width, $height, $style=null, $params=null)
 createButton ($parent, $caption, $xPos, $yPos, $width=null, $height=null, $style=null, $params=null)
 createControl ($parent, $ctlClass, $caption, $xPos, $yPos, $width, $height, $style=null, $params=null)
 createEditBox ($parent, $value, $xPos, $yPos, $width=null, $height=null, $style=null, $params=null)
 createFont ($fontName, $size=null, $color=null, $style=null)
 createHyperLink ($parent, $caption, $xPos, $yPos, $width=null, $height=null, $style=null, $params=null)
 createInputText ($parent, $value, $xPos, $yPos, $width=null, $height=null, $maxLength=null, $style=null, $params=null)
 createLabel ($parent, $caption, $xPos, $yPos, $width=null, $height=null, $style=null, $params=null)
 createNakedWindow ($caption, $width, $height, $style=null, $params=null)
 createProgressBar ($parent, $max, $xPos, $yPos, $width=null, $height=null, $style=null, $params=null)
 createRadioButton ($parent, $caption, $checked, $xPos, $yPos, $width=null, $height=null, $startGroup=false)
 createTimer ($wbobject, $wait=1000)
 createWindow ($parent, $wclass, $caption, $xPos, $yPos, $width, $height, $style=null, $params=null)
 destroyTimer ($wbobject, $timerobject)
 destroyWindow ($window)
 drawImage ($wbobject, $path, $xPos=0, $yPos=0, $width=0, $height=0)
 drawLine ($wbobject, $xStartPos, $yStartPos, $xEndPos, $yEndPos, $color, $height=1)
 drawRect ($parent, $xPos, $yPos, $width, $height, $color=15790320, $filled=true)
 drawText ($parent, $caption, $xPos, $yPos, $width=null, $height=null, $font=null)
 exec ($cmd, $params=null, $silent=false)
 findFile ($filename)
 getFocus ()
 getSystemInfo ($info)
 getText ($wbobject)
 getValue ($wbobject)
 incrProgressBar ($progressBar)
 isEnabled ($wbobject)
 mainLoop ()
 messageBox ($message, $type, $title=null)
 messageBoxError ($message, $title=null)
 messageBoxInfo ($message, $title=null)
 messageBoxOk ($message, $title=null)
 messageBoxOkCancel ($message, $title=null)
 messageBoxQuestion ($message, $title=null)
 messageBoxWarning ($message, $title=null)
 messageBoxYesNo ($message, $title=null)
 messageBoxYesNoCancel ($message, $title=null)
 refresh ($wbobject)
 reset ()
 resetProgressBar ($progressBar)
 setArea ($wbobject, $width, $height)
 setCursor ($wbobject, $type=self::CURSOR_ARROW)
 setDisabled ($wbobject)
 setEnabled ($wbobject, $enabled=true)
 setFocus ($wbobject)
 setHandler ($wbobject, $classCallback, $methodCallback, $launchTimer=null)
 setImage ($wbobject, $path)
 setMaxLength ($wbobject, $length)
 setProgressBarMax ($progressBar, $max)
 setProgressBarValue ($progressBar, $value)
 setRange ($wbobject, $min, $max)
 setStyle ($wbobject, $style)
 setText ($wbobject, $content)
 setValue ($wbobject, $content)
 sysDlgOpen ($parent, $title, $filter=null, $path=null)
 sysDlgPath ($parent, $title, $path=null)
 wait ($wbobject=null)

Data Fields

 $callback
 $gauge
const BOX_ERROR = WBC_STOP
const BOX_INFO = WBC_INFO
const BOX_OK = WBC_OK
const BOX_OKCANCEL = WBC_OKCANCEL
const BOX_QUESTION = WBC_QUESTION
const BOX_WARNING = WBC_WARNING
const BOX_YESNO = WBC_YESNO
const BOX_YESNOCANCEL = WBC_YESNOCANCEL
const CTRL_ID = 0
const CTRL_OBJ = 1
const CURSOR_ARROW = 'arrow'
const CURSOR_CROSS = 'cross'
const CURSOR_FINGER = 'finger'
const CURSOR_FORBIDDEN = 'forbidden'
const CURSOR_HELP = 'help'
const CURSOR_IBEAM = 'ibeam'
const CURSOR_NONE = null
const CURSOR_SIZEALL = 'sizeall'
const CURSOR_SIZENESW = 'sizenesw'
const CURSOR_SIZENS = 'sizens'
const CURSOR_SIZENWSE = 'sizenwse'
const CURSOR_SIZEWE = 'sizewe'
const CURSOR_UPARROW = 'uparrow'
const CURSOR_WAIT = 'wait'
const CURSOR_WAITARROW = 'waitarrow'
const INCR_PROGRESS_BAR = '++'
const NEW_LINE = '@nl@'
const SYSINFO_SCREENAREA = 'screenarea'
const SYSINFO_WORKAREA = 'workarea'

Private Member Functions

 callWinBinder ($function, $params=array(), $removeErrorHandler=false)
 processMessages ()
 windowIsValid ($window)

Static Private Member Functions

static writeLog ($log)

Private Attributes

 $countCtrls
 $defaultTitle

Detailed Description

Class WinBinder

This class provides an interface to the WinBinder library, allowing for the creation and management of Windows GUI elements in PHP. It includes methods for creating windows, controls, handling events, and executing system commands.

Definition at line 18 of file class.winbinder.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

WinBinder constructor.

Initializes the WinBinder class, sets the default window title, and resets control counters.

Definition at line 68 of file class.winbinder.php.

69 {
70 global $bearsamppCore;
71 Util::logInitClass($this);
72
73 $this->defaultTitle = APP_TITLE . ' ' . $bearsamppCore->getAppVersion();
74 $this->reset();
75 }
global $bearsamppCore
static logInitClass($classInstance)
const APP_TITLE
Definition root.php:13

References $bearsamppCore, APP_TITLE, Util\logInitClass(), and reset().

Member Function Documentation

◆ callWinBinder()

callWinBinder ( $function,
$params = array(),
$removeErrorHandler = false )
private

Calls a WinBinder function with error handling.

Parameters
string$functionThe name of the WinBinder function to call.
array$paramsThe parameters to pass to the function.
bool$removeErrorHandlerWhether to suppress errors during the call.
Returns
mixed The result of the function call.

Definition at line 162 of file class.winbinder.php.

162 : mixed
163 {
164 $result = false;
165 if (function_exists($function)) {
166 if ($removeErrorHandler) {
167 // Suppress all errors for this call
168 $oldErrorLevel = error_reporting(0);
169 $result = @call_user_func_array($function, $params);
170 error_reporting($oldErrorLevel);
171 } else {
172 $result = call_user_func_array($function, $params);
173 }
174 }
175
176 return $result;
177 }
$result

References $result.

Referenced by createControl(), createFont(), createTimer(), createWindow(), destroyTimer(), destroyWindow(), drawImage(), drawLine(), drawRect(), drawText(), exec(), findFile(), getFocus(), getSystemInfo(), getText(), getValue(), isEnabled(), mainLoop(), messageBox(), processMessages(), refresh(), setArea(), setCursor(), setEnabled(), setFocus(), setHandler(), setImage(), setMaxLength(), setProgressBarValue(), setRange(), setStyle(), setText(), setValue(), sysDlgOpen(), sysDlgPath(), wait(), and windowIsValid().

◆ createAppWindow()

createAppWindow ( $caption,
$width,
$height,
$style = null,
$params = null )

Creates a new application window.

Parameters
string$captionThe window caption.
int$widthThe width of the window.
int$heightThe height of the window.
mixed$styleThe window style.
mixed$paramsAdditional parameters for the window.
Returns
mixed The created window object.

Definition at line 97 of file class.winbinder.php.

97 : mixed
98 {
99 return $this->createWindow(null, AppWindow, $caption, WBC_CENTER, WBC_CENTER, $width, $height, $style, $params);
100 }
createWindow($parent, $wclass, $caption, $xPos, $yPos, $width, $height, $style=null, $params=null)

References createWindow().

◆ createButton()

createButton ( $parent,
$caption,
$xPos,
$yPos,
$width = null,
$height = null,
$style = null,
$params = null )

Creates a button control.

Parameters
mixed$parentThe parent window or control.
string$captionThe caption for the button.
int$xPosThe x-coordinate of the button.
int$yPosThe y-coordinate of the button.
int | null$widthThe width of the button.
int | null$heightThe height of the button.
mixed$styleThe style for the button.
mixed$paramsAdditional parameters for the button.
Returns
array An array containing the control ID and object.

Definition at line 900 of file class.winbinder.php.

901 {
902 $width = $width == null ? 80 : $width;
903 $height = $height == null ? 25 : $height;
904
905 return $this->createControl($parent, PushButton, $caption, $xPos, $yPos, $width, $height, $style, $params);
906 }
createControl($parent, $ctlClass, $caption, $xPos, $yPos, $width, $height, $style=null, $params=null)

References createControl().

◆ createControl()

createControl ( $parent,
$ctlClass,
$caption,
$xPos,
$yPos,
$width,
$height,
$style = null,
$params = null )

Creates a new control.

Parameters
mixed$parentThe parent window or control.
string$ctlClassThe control class.
string$captionThe control caption.
int$xPosThe x-coordinate of the control.
int$yPosThe y-coordinate of the control.
int$widthThe width of the control.
int$heightThe height of the control.
mixed$styleThe control style.
mixed$paramsAdditional parameters for the control.
Returns
array An array containing the control ID and object.

Definition at line 731 of file class.winbinder.php.

732 {
733 $this->countCtrls++;
734
735 // Fix for PHP 8.4: Ensure style and params are proper types
736 $style = $style === null ? 0 : $style;
737 $params = $params === null ? 0 : $params;
738
739 return array(
740 self::CTRL_ID => $this->countCtrls,
741 self::CTRL_OBJ => $this->callWinBinder('wb_create_control', array(
742 $parent,
743 $ctlClass,
744 $caption,
745 $xPos,
746 $yPos,
747 $width,
748 $height,
749 $this->countCtrls,
750 $style,
751 $params
752 )),
753 );
754 }
callWinBinder($function, $params=array(), $removeErrorHandler=false)

References callWinBinder().

Referenced by createButton(), createEditBox(), createHyperLink(), createInputText(), createLabel(), createProgressBar(), and createRadioButton().

◆ createEditBox()

createEditBox ( $parent,
$value,
$xPos,
$yPos,
$width = null,
$height = null,
$style = null,
$params = null )

Creates an edit box control.

Parameters
mixed$parentThe parent window or control.
string$valueThe initial value for the edit box.
int$xPosThe x-coordinate of the edit box.
int$yPosThe y-coordinate of the edit box.
int | null$widthThe width of the edit box.
int | null$heightThe height of the edit box.
mixed$styleThe style for the edit box.
mixed$paramsAdditional parameters for the edit box.
Returns
array An array containing the control ID and object.

Definition at line 815 of file class.winbinder.php.

816 {
817 $value = str_replace(self::NEW_LINE, PHP_EOL, $value);
818 $width = $width == null ? 540 : $width;
819 $height = $height == null ? 340 : $height;
820 $editBox = $this->createControl($parent, RTFEditBox, (string)$value, $xPos, $yPos, $width, $height, $style, $params);
821
822 return $editBox;
823 }

References createControl().

◆ createFont()

createFont ( $fontName,
$size = null,
$color = null,
$style = null )

Creates a font for use in WinBinder controls.

Parameters
string$fontNameThe name of the font.
int | null$sizeThe size of the font.
int | null$colorThe color of the font.
mixed$styleThe style of the font.
Returns
mixed The created font object.

Definition at line 491 of file class.winbinder.php.

492 {
493 return $this->callWinBinder('wb_create_font', array($fontName, $size, $color, $style));
494 }

References callWinBinder().

◆ createHyperLink()

createHyperLink ( $parent,
$caption,
$xPos,
$yPos,
$width = null,
$height = null,
$style = null,
$params = null )

Creates a hyperlink control.

Parameters
mixed$parentThe parent window or control.
string$captionThe caption for the hyperlink.
int$xPosThe x-coordinate of the hyperlink.
int$yPosThe y-coordinate of the hyperlink.
int | null$widthThe width of the hyperlink.
int | null$heightThe height of the hyperlink.
mixed$styleThe style for the hyperlink.
mixed$paramsAdditional parameters for the hyperlink.
Returns
array An array containing the control ID and object.

Definition at line 839 of file class.winbinder.php.

840 {
841 $caption = str_replace(self::NEW_LINE, PHP_EOL, $caption);
842 $width = $width == null ? 120 : $width;
843 $height = $height == null ? 15 : $height;
844 $hyperLink = $this->createControl($parent, HyperLink, (string)$caption, $xPos, $yPos, $width, $height, $style, $params);
845 $this->setCursor($hyperLink[self::CTRL_OBJ], self::CURSOR_FINGER);
846
847 return $hyperLink;
848 }
setCursor($wbobject, $type=self::CURSOR_ARROW)

References createControl(), and setCursor().

◆ createInputText()

createInputText ( $parent,
$value,
$xPos,
$yPos,
$width = null,
$height = null,
$maxLength = null,
$style = null,
$params = null )

Creates an input text control.

Parameters
mixed$parentThe parent window or control.
string | null$valueThe initial value for the input text. Null will be converted to empty string.
int$xPosThe x-coordinate of the input text.
int$yPosThe y-coordinate of the input text.
int | null$widthThe width of the input text.
int | null$heightThe height of the input text.
int | null$maxLengthThe maximum length of the input text.
mixed$styleThe style for the input text.
mixed$paramsAdditional parameters for the input text.
Returns
array An array containing the control ID and object.

Definition at line 771 of file class.winbinder.php.

772 {
773 // Fix for PHP 8+: Convert null to empty string before str_replace
774 $value = $value === null ? '' : $value;
775 $value = str_replace(self::NEW_LINE, PHP_EOL, $value);
776 $width = $width == null ? 120 : $width;
777 $height = $height == null ? 25 : $height;
778 $inputText = $this->createControl($parent, EditBox, (string)$value, $xPos, $yPos, $width, $height, $style, $params);
779 if (is_numeric($maxLength) && $maxLength > 0) {
780 $this->setMaxLength($inputText[self::CTRL_OBJ], $maxLength);
781 }
782
783 return $inputText;
784 }
setMaxLength($wbobject, $length)

References createControl(), and setMaxLength().

◆ createLabel()

createLabel ( $parent,
$caption,
$xPos,
$yPos,
$width = null,
$height = null,
$style = null,
$params = null )

Creates a label control.

Parameters
mixed$parentThe parent window or control.
string$captionThe caption for the label.
int$xPosThe x-coordinate of the label.
int$yPosThe y-coordinate of the label.
int | null$widthThe width of the label.
int | null$heightThe height of the label.
mixed$styleThe style for the label.
mixed$paramsAdditional parameters for the label.
Returns
array An array containing the control ID and object.

Definition at line 707 of file class.winbinder.php.

708 {
709 $caption = str_replace(self::NEW_LINE, PHP_EOL, $caption);
710 $width = $width == null ? 120 : $width;
711 $height = $height == null ? 25 : $height;
712
713 return $this->createControl($parent, Label, $caption, $xPos, $yPos, $width, $height, $style, $params);
714 }

References createControl().

◆ createNakedWindow()

createNakedWindow ( $caption,
$width,
$height,
$style = null,
$params = null )

Creates a new naked window.

Parameters
string$captionThe window caption.
int$widthThe width of the window.
int$heightThe height of the window.
mixed$styleThe window style.
mixed$paramsAdditional parameters for the window.
Returns
mixed The created window object.

Definition at line 215 of file class.winbinder.php.

215 : mixed
216 {
217 $window = $this->createWindow(null, NakedWindow, $caption, WBC_CENTER, WBC_CENTER, $width, $height, $style, $params);
218 $this->setArea($window, $width, $height);
219
220 return $window;
221 }
setArea($wbobject, $width, $height)

References createWindow(), and setArea().

◆ createProgressBar()

createProgressBar ( $parent,
$max,
$xPos,
$yPos,
$width = null,
$height = null,
$style = null,
$params = null )

Creates a progress bar control.

Parameters
mixed$parentThe parent window or control.
int$maxThe maximum value for the progress bar.
int$xPosThe x-coordinate of the progress bar.
int$yPosThe y-coordinate of the progress bar.
int | null$widthThe width of the progress bar.
int | null$heightThe height of the progress bar.
mixed$styleThe style for the progress bar.
mixed$paramsAdditional parameters for the progress bar.
Returns
array An array containing the control ID and object.

Definition at line 922 of file class.winbinder.php.

923 {
924 global $bearsamppLang;
925
926 $width = $width == null ? 200 : $width;
927 $height = $height == null ? 15 : $height;
928 $progressBar = $this->createControl($parent, Gauge, $bearsamppLang->getValue(Lang::LOADING), $xPos, $yPos, $width, $height, $style, $params);
929
930 $this->setRange($progressBar[self::CTRL_OBJ], 0, $max);
931 $this->gauge[$progressBar[self::CTRL_OBJ]] = 0;
932
933 return $progressBar;
934 }
global $bearsamppLang
const LOADING
setRange($wbobject, $min, $max)

References $bearsamppLang, createControl(), Lang\LOADING, and setRange().

◆ createRadioButton()

createRadioButton ( $parent,
$caption,
$checked,
$xPos,
$yPos,
$width = null,
$height = null,
$startGroup = false )

Creates a radio button control.

Parameters
mixed$parentThe parent window or control.
string$captionThe caption for the radio button.
bool$checkedWhether the radio button is checked.
int$xPosThe x-coordinate of the radio button.
int$yPosThe y-coordinate of the radio button.
int | null$widthThe width of the radio button.
int | null$heightThe height of the radio button.
bool$startGroupWhether this radio button starts a new group.
Returns
array An array containing the control ID and object.

Definition at line 877 of file class.winbinder.php.

878 {
879 $caption = str_replace(self::NEW_LINE, PHP_EOL, $caption);
880 $width = $width == null ? 120 : $width;
881 $height = $height == null ? 25 : $height;
882
883 return $this->createControl($parent, RadioButton, (string)$caption, $xPos, $yPos, $width, $height, $startGroup ? WBC_GROUP : null, $checked ? 1 : 0);
884 }

References createControl().

◆ createTimer()

createTimer ( $wbobject,
$wait = 1000 )

Creates a timer for a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to create the timer for.
int$waitThe wait time in milliseconds.
Returns
array An array containing the timer ID and object.

Definition at line 565 of file class.winbinder.php.

566 {
567 $this->countCtrls++;
568
569 return array(
570 self::CTRL_ID => $this->countCtrls,
571 self::CTRL_OBJ => $this->callWinBinder('wb_create_timer', array($wbobject, $this->countCtrls, $wait))
572 );
573 }

References callWinBinder().

Referenced by setHandler().

◆ createWindow()

createWindow ( $parent,
$wclass,
$caption,
$xPos,
$yPos,
$width,
$height,
$style = null,
$params = null )

Creates a new window.

Parameters
mixed$parentThe parent window or null for a top-level window.
string$wclassThe window class.
string$captionThe window caption.
int$xPosThe x-coordinate of the window.
int$yPosThe y-coordinate of the window.
int$widthThe width of the window.
int$heightThe height of the window.
mixed$styleThe window style.
mixed$paramsAdditional parameters for the window.
Returns
mixed The created window object.

Definition at line 117 of file class.winbinder.php.

117 : mixed
118 {
119 global $bearsamppCore;
120
121 // Fix for PHP 8.4: Convert null to 0 for parent parameter
122 $parent = $parent === null ? 0 : $parent;
123
124 // Fix for PHP 8.4: Ensure style and params are proper types
125 $style = $style === null ? 0 : $style;
126 $params = $params === null ? 0 : $params;
127
128 // Log window creation attempt for debugging
129 $this->writeLog('Creating window: class=' . $wclass . ', caption=' . $caption . ', pos=(' . $xPos . ',' . $yPos . '), size=(' . $width . 'x' . $height . '), style=' . $style . ', params=' . $params);
130
131 $caption = empty($caption) ? $this->defaultTitle : $this->defaultTitle . ' - ' . $caption;
132 $window = $this->callWinBinder('wb_create_window', array($parent, $wclass, $caption, $xPos, $yPos, $width, $height, $style, $params));
133
134 if ($window === false || $window === null) {
135 $this->writeLog('ERROR: Failed to create window - wb_create_window returned: ' . var_export($window, true));
136 // Check if WinBinder extension is loaded
137 if (!extension_loaded('winbinder')) {
138 $this->writeLog('ERROR: WinBinder extension is not loaded!');
139 }
140 // Check if the function exists
141 if (!function_exists('wb_create_window')) {
142 $this->writeLog('ERROR: wb_create_window function does not exist!');
143 }
144 } else {
145 $this->writeLog('Window created successfully: handle=' . $window);
146 // Set tiny window icon
147 $this->setImage($window, $bearsamppCore->getIconsPath() . '/app.ico');
148 }
149
150 return $window;
151 }
static writeLog($log)
setImage($wbobject, $path)

References $bearsamppCore, callWinBinder(), setImage(), and writeLog().

Referenced by createAppWindow(), and createNakedWindow().

◆ destroyTimer()

destroyTimer ( $wbobject,
$timerobject )

Destroys a timer for a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to destroy the timer for.
mixed$timerobjectThe timer object to destroy.
Returns
mixed The result of the destroy operation.

Definition at line 516 of file class.winbinder.php.

517 {
518 return $this->callWinBinder('wb_destroy_timer', array($wbobject, $timerobject));
519 }

References callWinBinder().

◆ destroyWindow()

destroyWindow ( $window)

Destroys a window with proper cleanup and handling.

Parameters
mixed$windowThe window object to destroy.
Returns
boolean True if window was successfully destroyed

Definition at line 243 of file class.winbinder.php.

243 : bool
244 {
245 // Check if window exists and is valid
246 if (!$window || !$this->windowIsValid($window)) {
247 return true; // Already closed or invalid window
248 }
249
250 // Get window title before destruction for fallback
251 $windowTitle = $this->getText($window);
252 $currentPid = Win32Ps::getCurrentPid();
253
254 // Attempt standard destruction
255 $this->callWinBinder('wb_destroy_window', array($window));
256
257 // Verify closure with retries
258 $maxAttempts = 3;
259 $attempt = 0;
260 $destroyed = false;
261
262 while ($attempt < $maxAttempts && !$destroyed) {
263 $this->processMessages();
264 usleep(100000); // 100ms delay
265 $destroyed = !$this->windowIsValid($window);
266 $attempt++;
267 }
268
269 // Fallback to process termination if window still exists
270 if (!$destroyed) {
271 // 1. Try to close using window title
272 $this->exec('taskkill', '/FI "WINDOWTITLE eq ' . $windowTitle . '" /F', true);
273
274 // 2. Try to kill process directly using Winbinder's PID method
275 $currentPid = Win32Ps::getCurrentPid();
276 if (!empty($currentPid)) {
277 $this->exec('taskkill', '/PID ' . $currentPid . ' /T /F', true);
278 $this->writeLog('Force-killed PID: ' . $currentPid . ' for window: ' . $window);
279 }
280
281 // 3. Final sanity check
282 if ($this->windowIsValid($window)) {
283 $this->callWinBinder('wb_destroy_window', array($window), true); // Force native call
284 }
285
286 // 4. Reset internal state to prevent memory leaks
287 $this->reset();
288 }
289
290 // Final verification
291 return !$this->windowIsValid($window);
292 }
static getCurrentPid()
windowIsValid($window)
getText($wbobject)
exec($cmd, $params=null, $silent=false)

References callWinBinder(), exec(), Win32Ps\getCurrentPid(), getText(), processMessages(), reset(), windowIsValid(), and writeLog().

◆ drawImage()

drawImage ( $wbobject,
$path,
$xPos = 0,
$yPos = 0,
$width = 0,
$height = 0 )

Draws an image on a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to draw on.
string$pathThe path to the image file.
int$xPosThe x-coordinate of the image.
int$yPosThe y-coordinate of the image.
int$widthThe width of the image.
int$heightThe height of the image.
Returns
mixed The result of the draw operation.

Definition at line 414 of file class.winbinder.php.

414 : mixed
415 {
416 $image = $this->callWinBinder('wb_load_image', array($path));
417
418 return $this->callWinBinder('wb_draw_image', array($wbobject, $image, $xPos, $yPos, $width, $height));
419 }

References callWinBinder().

◆ drawLine()

drawLine ( $wbobject,
$xStartPos,
$yStartPos,
$xEndPos,
$yEndPos,
$color,
$height = 1 )

Draws a line on a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to draw on.
int$xStartPosThe starting x-coordinate of the line.
int$yStartPosThe starting y-coordinate of the line.
int$xEndPosThe ending x-coordinate of the line.
int$yEndPosThe ending y-coordinate of the line.
int$colorThe color of the line.
int$heightThe height of the line.
Returns
mixed The result of the draw operation.

Definition at line 476 of file class.winbinder.php.

477 {
478 return $this->callWinBinder('wb_draw_line', array($wbobject, $xStartPos, $yStartPos, $xEndPos, $yEndPos, $color, $height));
479 }

References callWinBinder().

◆ drawRect()

drawRect ( $parent,
$xPos,
$yPos,
$width,
$height,
$color = 15790320,
$filled = true )

Draws a rectangle on a WinBinder object.

Parameters
mixed$parentThe parent WinBinder object.
int$xPosThe x-coordinate of the rectangle.
int$yPosThe y-coordinate of the rectangle.
int$widthThe width of the rectangle.
int$heightThe height of the rectangle.
int$colorThe color of the rectangle.
bool$filledWhether the rectangle should be filled.
Returns
mixed The result of the draw operation.

Definition at line 458 of file class.winbinder.php.

459 {
460 return $this->callWinBinder('wb_draw_rect', array($parent, $xPos, $yPos, $width, $height, $color, $filled));
461 }

References callWinBinder().

◆ drawText()

drawText ( $parent,
$caption,
$xPos,
$yPos,
$width = null,
$height = null,
$font = null )

Draws text on a WinBinder object.

Parameters
mixed$parentThe parent WinBinder object.
string | null$captionThe text to draw. Null will be converted to empty string.
int$xPosThe x-coordinate of the text.
int$yPosThe y-coordinate of the text.
int | null$widthThe width of the text area.
int | null$heightThe height of the text area.
mixed$fontThe font to use for the text.
Returns
mixed The result of the draw operation.

Definition at line 434 of file class.winbinder.php.

435 {
436 // Fix for PHP 8+: Convert null to empty string before str_replace
437 $caption = $caption === null ? '' : $caption;
438 $caption = str_replace(self::NEW_LINE, PHP_EOL, $caption);
439 $width = $width == null ? 120 : $width;
440 $height = $height == null ? 25 : $height;
441
442 return $this->callWinBinder('wb_draw_text', array($parent, $caption, $xPos, $yPos, $width, $height, $font));
443 }

References callWinBinder().

◆ exec()

exec ( $cmd,
$params = null,
$silent = false )

Executes a system command.

Parameters
string$cmdThe command to execute.
string | null$paramsThe parameters to pass to the command.
bool$silentWhether to execute the command silently.
Returns
mixed The result of the command execution.

Definition at line 342 of file class.winbinder.php.

342 : mixed
343 {
344 global $bearsamppCore;
345
346 if ($silent) {
347 $silent = '"' . $bearsamppCore->getScript(Core::SCRIPT_EXEC_SILENT) . '" "' . $cmd . '"';
348 $cmd = 'wscript.exe';
349 $params = !empty($params) ? $silent . ' "' . $params . '"' : $silent;
350 }
351
352 $this->writeLog('exec: ' . $cmd . ' ' . $params);
353
354 return $this->callWinBinder('wb_exec', array($cmd, $params));
355 }
const SCRIPT_EXEC_SILENT

References $bearsamppCore, callWinBinder(), Core\SCRIPT_EXEC_SILENT, and writeLog().

Referenced by destroyWindow().

◆ findFile()

findFile ( $filename)

Finds a file using WinBinder.

Parameters
string$filenameThe name of the file to find.
Returns
mixed The result of the find operation.

Definition at line 528 of file class.winbinder.php.

529 {
530 $result = $this->callWinBinder('wb_find_file', array($filename));
531 $this->writeLog('findFile ' . $filename . ': ' . $result);
532
533 return $result != $filename ? $result : false;
534 }

References $result, callWinBinder(), and writeLog().

◆ getFocus()

getFocus ( )

Retrieves the focus from a WinBinder object.

Returns
mixed The WinBinder object that has the focus.

Definition at line 597 of file class.winbinder.php.

598 {
599 return $this->callWinBinder('wb_get_focus');
600 }

References callWinBinder().

◆ getSystemInfo()

getSystemInfo ( $info)

Retrieves system information.

Parameters
string$infoThe type of system information to retrieve.
Returns
mixed The retrieved system information.

Definition at line 397 of file class.winbinder.php.

397 : mixed
398 {
399 return $this->callWinBinder('wb_get_system_info', array($info));
400 }

References callWinBinder().

◆ getText()

getText ( $wbobject)

Retrieves the text from a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to get the text from.
Returns
mixed The retrieved text.

Definition at line 301 of file class.winbinder.php.

301 : mixed
302 {
303 return $this->callWinBinder('wb_get_text', array($wbobject));
304 }

References callWinBinder().

Referenced by destroyWindow().

◆ getValue()

getValue ( $wbobject)

Retrieves the value from a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to get the value from.
Returns
mixed The retrieved value.

Definition at line 943 of file class.winbinder.php.

944 {
945 return $this->callWinBinder('wb_get_value', array($wbobject));
946 }

References callWinBinder().

◆ incrProgressBar()

incrProgressBar ( $progressBar)

Increments the value of a progress bar.

Parameters
array$progressBarThe progress bar control.

Definition at line 967 of file class.winbinder.php.

968 {
969 $this->setProgressBarValue($progressBar, self::INCR_PROGRESS_BAR);
970 }
setProgressBarValue($progressBar, $value)

References setProgressBarValue().

◆ isEnabled()

isEnabled ( $wbobject)

Checks if a WinBinder object is enabled.

Parameters
mixed$wbobjectThe WinBinder object to check.
Returns
mixed True if the object is enabled, false otherwise.

Definition at line 621 of file class.winbinder.php.

622 {
623 return $this->callWinBinder('wb_get_enabled', array($wbobject));
624 }

References callWinBinder().

◆ mainLoop()

mainLoop ( )

Starts the main event loop.

Returns
mixed The result of the main loop.

Definition at line 373 of file class.winbinder.php.

373 : mixed
374 {
375 return $this->callWinBinder('wb_main_loop');
376 }

References callWinBinder().

◆ messageBox()

messageBox ( $message,
$type,
$title = null )

Displays a message box.

Parameters
string$messageThe message to display.
int$typeThe type of message box.
string | null$titleThe title of the message box.
Returns
mixed The result of the message box operation.

Definition at line 1050 of file class.winbinder.php.

1051 {
1052 global $bearsamppCore;
1053
1054 $message = str_replace(self::NEW_LINE, PHP_EOL, $message);
1055 $messageBox = $this->callWinBinder('wb_message_box', array(
1056 0, // Use 0 instead of null for the window handle parameter
1057 strlen($message) < 64 ? str_pad($message, 64) : $message, // Pad message to display entire title
1058 $title == null ? $this->defaultTitle : $this->defaultTitle . ' - ' . $title,
1059 $type
1060 ));
1061
1062 return $messageBox;
1063 }

References $bearsamppCore, and callWinBinder().

Referenced by messageBoxError(), messageBoxInfo(), messageBoxOk(), messageBoxOkCancel(), messageBoxQuestion(), messageBoxWarning(), messageBoxYesNo(), and messageBoxYesNoCancel().

◆ messageBoxError()

messageBoxError ( $message,
$title = null )

Displays an error message box.

Parameters
string$messageThe message to display.
string | null$titleThe title of the message box. If null, the default title will be used.
Returns
mixed The result of the message box operation.

Definition at line 1112 of file class.winbinder.php.

1113 {
1114 return $this->messageBox($message, self::BOX_ERROR, $title);
1115 }
messageBox($message, $type, $title=null)

References messageBox().

◆ messageBoxInfo()

messageBoxInfo ( $message,
$title = null )

Displays an informational message box.

Parameters
string$messageThe message to display.
string | null$titleThe title of the message box.
Returns
mixed The result of the message box operation.

Definition at line 1036 of file class.winbinder.php.

1037 {
1038 return $this->messageBox($message, self::BOX_INFO, $title);
1039 }

References messageBox().

◆ messageBoxOk()

messageBoxOk ( $message,
$title = null )

Displays an OK message box.

Parameters
string$messageThe message to display.
string | null$titleThe title of the message box.
Returns
mixed The result of the message box operation.

Definition at line 1073 of file class.winbinder.php.

1074 {
1075 return $this->messageBox($message, self::BOX_OK, $title);
1076 }

References messageBox().

◆ messageBoxOkCancel()

messageBoxOkCancel ( $message,
$title = null )

Displays an OK/Cancel message box.

Parameters
string$messageThe message to display.
string | null$titleThe title of the message box.
Returns
mixed The result of the message box operation.

Definition at line 1086 of file class.winbinder.php.

1087 {
1088 return $this->messageBox($message, self::BOX_OKCANCEL, $title);
1089 }

References messageBox().

◆ messageBoxQuestion()

messageBoxQuestion ( $message,
$title = null )

Displays a question message box.

Parameters
string$messageThe message to display.
string | null$titleThe title of the message box. If null, the default title will be used.
Returns
mixed The result of the message box operation.

Definition at line 1099 of file class.winbinder.php.

1100 {
1101 return $this->messageBox($message, self::BOX_QUESTION, $title);
1102 }

References messageBox().

◆ messageBoxWarning()

messageBoxWarning ( $message,
$title = null )

Displays a warning message box.

Parameters
string$messageThe message to display.
string | null$titleThe title of the message box. If null, the default title will be used.
Returns
mixed The result of the message box operation.

Definition at line 1125 of file class.winbinder.php.

1126 {
1127 return $this->messageBox($message, self::BOX_WARNING, $title);
1128 }

References messageBox().

◆ messageBoxYesNo()

messageBoxYesNo ( $message,
$title = null )

Displays a Yes/No message box.

Parameters
string$messageThe message to display.
string | null$titleThe title of the message box. If null, the default title will be used.
Returns
mixed The result of the message box operation.

Definition at line 1138 of file class.winbinder.php.

1139 {
1140 return $this->messageBox($message, self::BOX_YESNO, $title);
1141 }

References messageBox().

◆ messageBoxYesNoCancel()

messageBoxYesNoCancel ( $message,
$title = null )

Displays a Yes/No/Cancel message box.

Parameters
string$messageThe message to display.
string | null$titleThe title of the message box. If null, the default title will be used.
Returns
mixed The result of the message box operation.

Definition at line 1151 of file class.winbinder.php.

1152 {
1153 return $this->messageBox($message, self::BOX_YESNOCANCEL, $title);
1154 }

References messageBox().

◆ processMessages()

processMessages ( )
private

Process any pending window messages.

Returns
void

Definition at line 328 of file class.winbinder.php.

328 : void
329 {
330 $this->callWinBinder('wb_wait', array(null, 1), true);
331 }

References callWinBinder().

Referenced by destroyWindow().

◆ refresh()

refresh ( $wbobject)

Refreshes a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to refresh.
Returns
mixed The result of the refresh operation.

Definition at line 385 of file class.winbinder.php.

385 : mixed
386 {
387 return $this->callWinBinder('wb_refresh', array($wbobject, true));
388 }

References callWinBinder().

◆ reset()

reset ( )

Resets the control counter and callback array.

Definition at line 80 of file class.winbinder.php.

80 : void
81 {
82 $this->countCtrls = 1000;
83 $this->callback = array();
84 }

Referenced by __construct(), and destroyWindow().

◆ resetProgressBar()

resetProgressBar ( $progressBar)

Resets the value of a progress bar to zero.

Parameters
array$progressBarThe progress bar control.

Definition at line 1012 of file class.winbinder.php.

1013 {
1014 $this->setProgressBarValue($progressBar, 0);
1015 }

References setProgressBarValue().

◆ setArea()

setArea ( $wbobject,
$width,
$height )

Sets the area of a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to set the area for.
int$widthThe width of the area.
int$heightThe height of the area.
Returns
mixed The result of the set area operation.

Definition at line 232 of file class.winbinder.php.

232 : mixed
233 {
234 return $this->callWinBinder('wb_set_area', array($wbobject, WBC_TITLE, 0, 0, $width, $height));
235 }

References callWinBinder().

Referenced by createNakedWindow().

◆ setCursor()

setCursor ( $wbobject,
$type = self::CURSOR_ARROW )

Sets the cursor type for a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to set the cursor for.
string$typeThe cursor type to set.
Returns
mixed The result of the set cursor operation.

Definition at line 858 of file class.winbinder.php.

859 {
860 return $this->callWinBinder('wb_set_cursor', array($wbobject, $type));
861 }

References callWinBinder().

Referenced by createHyperLink().

◆ setDisabled()

setDisabled ( $wbobject)

Disables a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to disable.
Returns
mixed The result of the disable operation.

Definition at line 633 of file class.winbinder.php.

634 {
635 return $this->setEnabled($wbobject, false);
636 }
setEnabled($wbobject, $enabled=true)

References setEnabled().

◆ setEnabled()

setEnabled ( $wbobject,
$enabled = true )

Sets the enabled state for a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to set the enabled state for.
bool$enabledTrue to enable the object, false to disable it.
Returns
mixed The result of the set enabled state operation.

Definition at line 646 of file class.winbinder.php.

647 {
648 return $this->callWinBinder('wb_set_enabled', array($wbobject, $enabled));
649 }

References callWinBinder().

Referenced by setDisabled().

◆ setFocus()

setFocus ( $wbobject)

Sets the focus to a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to set the focus to.
Returns
mixed The result of the set focus operation.

Definition at line 609 of file class.winbinder.php.

610 {
611 return $this->callWinBinder('wb_set_focus', array($wbobject));
612 }

References callWinBinder().

◆ setHandler()

setHandler ( $wbobject,
$classCallback,
$methodCallback,
$launchTimer = null )

Sets an event handler for a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to set the handler for.
mixed$classCallbackThe class callback for the handler.
mixed$methodCallbackThe method callback for the handler.
mixed$launchTimerThe timer to launch for the handler.
Returns
mixed The result of the set handler operation.

Definition at line 546 of file class.winbinder.php.

547 {
548 if ($launchTimer != null) {
549 $launchTimer = $this->createTimer($wbobject, $launchTimer);
550 }
551
552 $this->callback[$wbobject] = array($classCallback, $methodCallback, $launchTimer);
553
554 return $this->callWinBinder('wb_set_handler', array($wbobject, '__winbinderEventHandler'));
555 }
createTimer($wbobject, $wait=1000)

References callWinBinder(), and createTimer().

◆ setImage()

setImage ( $wbobject,
$path )

Sets an image for a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to set the image for.
string$pathThe path to the image file.
Returns
mixed The result of the set image operation.

Definition at line 187 of file class.winbinder.php.

187 : mixed
188 {
189 if ($wbobject === null) {
190 error_log('Error: $wbobject is null.');
191
192 return false;
193 }
194
195 if (!file_exists($path)) {
196 error_log('Error: Image file does not exist at path: ' . $path);
197
198 return false;
199 }
200
201 return $this->callWinBinder('wb_set_image', array($wbobject, $path));
202 }

References callWinBinder().

Referenced by createWindow().

◆ setMaxLength()

setMaxLength ( $wbobject,
$length )

Sets the maximum length for a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to set the maximum length for.
int$lengthThe maximum length to set.
Returns
mixed The result of the set maximum length operation.

Definition at line 794 of file class.winbinder.php.

795 {
796 // Use error suppression for wb_send_message as it may be disabled in some PHP configurations
797 // This is a non-critical operation - if it fails, the input will just not have a max length
798 return $this->callWinBinder('wb_send_message', array($wbobject, 0x00c5, $length, 0), true);
799 }

References callWinBinder().

Referenced by createInputText().

◆ setProgressBarMax()

setProgressBarMax ( $progressBar,
$max )

Sets the maximum value of a progress bar.

Parameters
array$progressBarThe progress bar control.
int$maxThe maximum value to set.

Definition at line 1023 of file class.winbinder.php.

1024 {
1025 $this->setRange($progressBar[self::CTRL_OBJ], 0, $max);
1026 }

References setRange().

◆ setProgressBarValue()

setProgressBarValue ( $progressBar,
$value )

Sets the value of a progress bar.

Parameters
array$progressBarThe progress bar control.
mixed$valueThe value to set.

Definition at line 978 of file class.winbinder.php.

979 {
980 if ($progressBar != null && isset($progressBar[self::CTRL_OBJ]) && isset($this->gauge[$progressBar[self::CTRL_OBJ]])) {
981 if (strval($value) == self::INCR_PROGRESS_BAR) {
982 $value = $this->gauge[$progressBar[self::CTRL_OBJ]] + 1;
983 }
984 if (is_numeric($value)) {
985 $this->gauge[$progressBar[self::CTRL_OBJ]] = $value;
986
987 // Check if the control is still valid before setting the value
988 // This prevents errors when the parent window has been destroyed
989 $this->callWinBinder('wb_set_value', array($progressBar[self::CTRL_OBJ], $value), true);
990 }
991 }
992 }

References callWinBinder().

Referenced by incrProgressBar(), and resetProgressBar().

◆ setRange()

setRange ( $wbobject,
$min,
$max )

Sets the range for a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to set the range for.
int$minThe minimum value of the range.
int$maxThe maximum value of the range.
Returns
mixed The result of the set range operation.

Definition at line 957 of file class.winbinder.php.

958 {
959 return $this->callWinBinder('wb_set_range', array($wbobject, $min, $max));
960 }

References callWinBinder().

Referenced by createProgressBar(), and setProgressBarMax().

◆ setStyle()

setStyle ( $wbobject,
$style )

Sets the style for a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to set the style for.
mixed$styleThe style to set.
Returns
mixed The result of the set style operation.

Definition at line 659 of file class.winbinder.php.

660 {
661 return $this->callWinBinder('wb_set_style', array($wbobject, $style));
662 }

References callWinBinder().

◆ setText()

setText ( $wbobject,
$content )

Sets the text for a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to set the text for.
string | null$contentThe text content to set. Null will be converted to empty string.
Returns
mixed The result of the set text operation.

Definition at line 583 of file class.winbinder.php.

584 {
585 // Fix for PHP 8+: Convert null to empty string before str_replace
586 $content = $content === null ? '' : $content;
587 $content = str_replace(self::NEW_LINE, PHP_EOL, $content);
588
589 return $this->callWinBinder('wb_set_text', array($wbobject, $content));
590 }

References callWinBinder().

◆ setValue()

setValue ( $wbobject,
$content )

Sets the value for a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to set the value for.
mixed$contentThe value to set.
Returns
mixed The result of the set value operation.

Definition at line 1002 of file class.winbinder.php.

1003 {
1004 return $this->callWinBinder('wb_set_value', array($wbobject, $content));
1005 }

References callWinBinder().

◆ sysDlgOpen()

sysDlgOpen ( $parent,
$title,
$filter = null,
$path = null )

Opens a system dialog to open a file.

Parameters
mixed$parentThe parent window for the dialog.
string$titleThe title of the dialog.
string | null$filterThe file filter for the dialog.
string | null$pathThe initial path for the dialog.
Returns
mixed The selected file path.

Definition at line 688 of file class.winbinder.php.

689 {
690 return $this->callWinBinder('wb_sys_dlg_open', array($parent, $title, $filter, $path));
691 }

References callWinBinder().

◆ sysDlgPath()

sysDlgPath ( $parent,
$title,
$path = null )

Opens a system dialog to select a path.

Parameters
mixed$parentThe parent window for the dialog.
string$titleThe title of the dialog.
string | null$pathThe initial path for the dialog.
Returns
mixed The selected path.

Definition at line 673 of file class.winbinder.php.

674 {
675 return $this->callWinBinder('wb_sys_dlg_path', array($parent, $title, $path));
676 }

References callWinBinder().

◆ wait()

wait ( $wbobject = null)

Waits for an event on a WinBinder object.

Parameters
mixed$wbobjectThe WinBinder object to wait on.
Returns
mixed The result of the wait operation.

Definition at line 503 of file class.winbinder.php.

504 {
505 return $this->callWinBinder('wb_wait', array($wbobject), true);
506 }

References callWinBinder().

◆ windowIsValid()

windowIsValid ( $window)
private

Checks if a window handle is still valid.

Parameters
mixed$windowThe window object to check.
Returns
boolean True if window is valid

Definition at line 312 of file class.winbinder.php.

312 : bool
313 {
314 if (!$window) {
315 return false;
316 }
317
318 // Try to get window text - if window is invalid, this will fail
319 $text = $this->callWinBinder('wb_get_text', array($window), true);
320 return ($text !== false);
321 }

References callWinBinder().

Referenced by destroyWindow().

◆ writeLog()

writeLog ( $log)
staticprivate

Writes a log message to the WinBinder log file.

Parameters
string$logThe log message to write.

Definition at line 362 of file class.winbinder.php.

362 : void
363 {
364 global $bearsamppRoot;
365 Util::logDebug($log, $bearsamppRoot->getWinbinderLogFilePath());
366 }
global $bearsamppRoot
static logDebug($data, $file=null)

References $bearsamppRoot, and Util\logDebug().

Referenced by createWindow(), destroyWindow(), exec(), and findFile().

Field Documentation

◆ $callback

$callback

Definition at line 58 of file class.winbinder.php.

◆ $countCtrls

$countCtrls
private

Definition at line 61 of file class.winbinder.php.

◆ $defaultTitle

$defaultTitle
private

Definition at line 60 of file class.winbinder.php.

◆ $gauge

$gauge

Definition at line 59 of file class.winbinder.php.

◆ BOX_ERROR

const BOX_ERROR = WBC_STOP

Definition at line 33 of file class.winbinder.php.

◆ BOX_INFO

const BOX_INFO = WBC_INFO

Definition at line 29 of file class.winbinder.php.

◆ BOX_OK

const BOX_OK = WBC_OK

Definition at line 30 of file class.winbinder.php.

◆ BOX_OKCANCEL

const BOX_OKCANCEL = WBC_OKCANCEL

Definition at line 31 of file class.winbinder.php.

◆ BOX_QUESTION

const BOX_QUESTION = WBC_QUESTION

Definition at line 32 of file class.winbinder.php.

◆ BOX_WARNING

const BOX_WARNING = WBC_WARNING

Definition at line 34 of file class.winbinder.php.

◆ BOX_YESNO

const BOX_YESNO = WBC_YESNO

Definition at line 35 of file class.winbinder.php.

◆ BOX_YESNOCANCEL

const BOX_YESNOCANCEL = WBC_YESNOCANCEL

Definition at line 36 of file class.winbinder.php.

◆ CTRL_ID

◆ CTRL_OBJ

◆ CURSOR_ARROW

const CURSOR_ARROW = 'arrow'

Definition at line 39 of file class.winbinder.php.

◆ CURSOR_CROSS

const CURSOR_CROSS = 'cross'

Definition at line 40 of file class.winbinder.php.

◆ CURSOR_FINGER

const CURSOR_FINGER = 'finger'

Definition at line 41 of file class.winbinder.php.

◆ CURSOR_FORBIDDEN

const CURSOR_FORBIDDEN = 'forbidden'

Definition at line 42 of file class.winbinder.php.

◆ CURSOR_HELP

const CURSOR_HELP = 'help'

Definition at line 43 of file class.winbinder.php.

◆ CURSOR_IBEAM

const CURSOR_IBEAM = 'ibeam'

Definition at line 44 of file class.winbinder.php.

◆ CURSOR_NONE

const CURSOR_NONE = null

Definition at line 45 of file class.winbinder.php.

◆ CURSOR_SIZEALL

const CURSOR_SIZEALL = 'sizeall'

Definition at line 46 of file class.winbinder.php.

◆ CURSOR_SIZENESW

const CURSOR_SIZENESW = 'sizenesw'

Definition at line 47 of file class.winbinder.php.

◆ CURSOR_SIZENS

const CURSOR_SIZENS = 'sizens'

Definition at line 48 of file class.winbinder.php.

◆ CURSOR_SIZENWSE

const CURSOR_SIZENWSE = 'sizenwse'

Definition at line 49 of file class.winbinder.php.

◆ CURSOR_SIZEWE

const CURSOR_SIZEWE = 'sizewe'

Definition at line 50 of file class.winbinder.php.

◆ CURSOR_UPARROW

const CURSOR_UPARROW = 'uparrow'

Definition at line 51 of file class.winbinder.php.

◆ CURSOR_WAIT

const CURSOR_WAIT = 'wait'

Definition at line 52 of file class.winbinder.php.

◆ CURSOR_WAITARROW

const CURSOR_WAITARROW = 'waitarrow'

Definition at line 53 of file class.winbinder.php.

◆ INCR_PROGRESS_BAR

const INCR_PROGRESS_BAR = '++'

Definition at line 25 of file class.winbinder.php.

◆ NEW_LINE

const NEW_LINE = '@nl@'

Definition at line 26 of file class.winbinder.php.

◆ SYSINFO_SCREENAREA

const SYSINFO_SCREENAREA = 'screenarea'

Definition at line 56 of file class.winbinder.php.

◆ SYSINFO_WORKAREA

const SYSINFO_WORKAREA = 'workarea'

Definition at line 57 of file class.winbinder.php.

Referenced by ActionLoading\__construct(), and Splash\init().


The documentation for this class was generated from the following file: