|
Bearsampp 2026.3.26
API documentation
|
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 | |
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.
| __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.
References $bearsamppCore, APP_TITLE, Util\logInitClass(), and reset().
|
private |
Calls a WinBinder function with error handling.
| string | $function | The name of the WinBinder function to call. |
| array | $params | The parameters to pass to the function. |
| bool | $removeErrorHandler | Whether to suppress errors during the call. |
Definition at line 162 of file class.winbinder.php.
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 | ( | $caption, | |
| $width, | |||
| $height, | |||
| $style = null, | |||
| $params = null ) |
Creates a new application window.
| string | $caption | The window caption. |
| int | $width | The width of the window. |
| int | $height | The height of the window. |
| mixed | $style | The window style. |
| mixed | $params | Additional parameters for the window. |
Definition at line 97 of file class.winbinder.php.
References createWindow().
| createButton | ( | $parent, | |
| $caption, | |||
| $xPos, | |||
| $yPos, | |||
| $width = null, | |||
| $height = null, | |||
| $style = null, | |||
| $params = null ) |
Creates a button control.
| mixed | $parent | The parent window or control. |
| string | $caption | The caption for the button. |
| int | $xPos | The x-coordinate of the button. |
| int | $yPos | The y-coordinate of the button. |
| int | null | $width | The width of the button. |
| int | null | $height | The height of the button. |
| mixed | $style | The style for the button. |
| mixed | $params | Additional parameters for the button. |
Definition at line 900 of file class.winbinder.php.
References createControl().
| createControl | ( | $parent, | |
| $ctlClass, | |||
| $caption, | |||
| $xPos, | |||
| $yPos, | |||
| $width, | |||
| $height, | |||
| $style = null, | |||
| $params = null ) |
Creates a new control.
| mixed | $parent | The parent window or control. |
| string | $ctlClass | The control class. |
| string | $caption | The control caption. |
| int | $xPos | The x-coordinate of the control. |
| int | $yPos | The y-coordinate of the control. |
| int | $width | The width of the control. |
| int | $height | The height of the control. |
| mixed | $style | The control style. |
| mixed | $params | Additional parameters for the control. |
Definition at line 731 of file class.winbinder.php.
References callWinBinder().
Referenced by createButton(), createEditBox(), createHyperLink(), createInputText(), createLabel(), createProgressBar(), and createRadioButton().
| createEditBox | ( | $parent, | |
| $value, | |||
| $xPos, | |||
| $yPos, | |||
| $width = null, | |||
| $height = null, | |||
| $style = null, | |||
| $params = null ) |
Creates an edit box control.
| mixed | $parent | The parent window or control. |
| string | $value | The initial value for the edit box. |
| int | $xPos | The x-coordinate of the edit box. |
| int | $yPos | The y-coordinate of the edit box. |
| int | null | $width | The width of the edit box. |
| int | null | $height | The height of the edit box. |
| mixed | $style | The style for the edit box. |
| mixed | $params | Additional parameters for the edit box. |
Definition at line 815 of file class.winbinder.php.
References createControl().
| createFont | ( | $fontName, | |
| $size = null, | |||
| $color = null, | |||
| $style = null ) |
Creates a font for use in WinBinder controls.
| string | $fontName | The name of the font. |
| int | null | $size | The size of the font. |
| int | null | $color | The color of the font. |
| mixed | $style | The style of the font. |
Definition at line 491 of file class.winbinder.php.
References callWinBinder().
| createHyperLink | ( | $parent, | |
| $caption, | |||
| $xPos, | |||
| $yPos, | |||
| $width = null, | |||
| $height = null, | |||
| $style = null, | |||
| $params = null ) |
Creates a hyperlink control.
| mixed | $parent | The parent window or control. |
| string | $caption | The caption for the hyperlink. |
| int | $xPos | The x-coordinate of the hyperlink. |
| int | $yPos | The y-coordinate of the hyperlink. |
| int | null | $width | The width of the hyperlink. |
| int | null | $height | The height of the hyperlink. |
| mixed | $style | The style for the hyperlink. |
| mixed | $params | Additional parameters for the hyperlink. |
Definition at line 839 of file class.winbinder.php.
References createControl(), and setCursor().
| createInputText | ( | $parent, | |
| $value, | |||
| $xPos, | |||
| $yPos, | |||
| $width = null, | |||
| $height = null, | |||
| $maxLength = null, | |||
| $style = null, | |||
| $params = null ) |
Creates an input text control.
| mixed | $parent | The parent window or control. |
| string | null | $value | The initial value for the input text. Null will be converted to empty string. |
| int | $xPos | The x-coordinate of the input text. |
| int | $yPos | The y-coordinate of the input text. |
| int | null | $width | The width of the input text. |
| int | null | $height | The height of the input text. |
| int | null | $maxLength | The maximum length of the input text. |
| mixed | $style | The style for the input text. |
| mixed | $params | Additional parameters for the input text. |
Definition at line 771 of file class.winbinder.php.
References createControl(), and setMaxLength().
| createLabel | ( | $parent, | |
| $caption, | |||
| $xPos, | |||
| $yPos, | |||
| $width = null, | |||
| $height = null, | |||
| $style = null, | |||
| $params = null ) |
Creates a label control.
| mixed | $parent | The parent window or control. |
| string | $caption | The caption for the label. |
| int | $xPos | The x-coordinate of the label. |
| int | $yPos | The y-coordinate of the label. |
| int | null | $width | The width of the label. |
| int | null | $height | The height of the label. |
| mixed | $style | The style for the label. |
| mixed | $params | Additional parameters for the label. |
Definition at line 707 of file class.winbinder.php.
References createControl().
| createNakedWindow | ( | $caption, | |
| $width, | |||
| $height, | |||
| $style = null, | |||
| $params = null ) |
Creates a new naked window.
| string | $caption | The window caption. |
| int | $width | The width of the window. |
| int | $height | The height of the window. |
| mixed | $style | The window style. |
| mixed | $params | Additional parameters for the window. |
Definition at line 215 of file class.winbinder.php.
References createWindow(), and setArea().
| createProgressBar | ( | $parent, | |
| $max, | |||
| $xPos, | |||
| $yPos, | |||
| $width = null, | |||
| $height = null, | |||
| $style = null, | |||
| $params = null ) |
Creates a progress bar control.
| mixed | $parent | The parent window or control. |
| int | $max | The maximum value for the progress bar. |
| int | $xPos | The x-coordinate of the progress bar. |
| int | $yPos | The y-coordinate of the progress bar. |
| int | null | $width | The width of the progress bar. |
| int | null | $height | The height of the progress bar. |
| mixed | $style | The style for the progress bar. |
| mixed | $params | Additional parameters for the progress bar. |
Definition at line 922 of file class.winbinder.php.
References $bearsamppLang, createControl(), Lang\LOADING, and setRange().
| createRadioButton | ( | $parent, | |
| $caption, | |||
| $checked, | |||
| $xPos, | |||
| $yPos, | |||
| $width = null, | |||
| $height = null, | |||
| $startGroup = false ) |
Creates a radio button control.
| mixed | $parent | The parent window or control. |
| string | $caption | The caption for the radio button. |
| bool | $checked | Whether the radio button is checked. |
| int | $xPos | The x-coordinate of the radio button. |
| int | $yPos | The y-coordinate of the radio button. |
| int | null | $width | The width of the radio button. |
| int | null | $height | The height of the radio button. |
| bool | $startGroup | Whether this radio button starts a new group. |
Definition at line 877 of file class.winbinder.php.
References createControl().
| createTimer | ( | $wbobject, | |
| $wait = 1000 ) |
Creates a timer for a WinBinder object.
| mixed | $wbobject | The WinBinder object to create the timer for. |
| int | $wait | The wait time in milliseconds. |
Definition at line 565 of file class.winbinder.php.
References callWinBinder().
Referenced by setHandler().
| createWindow | ( | $parent, | |
| $wclass, | |||
| $caption, | |||
| $xPos, | |||
| $yPos, | |||
| $width, | |||
| $height, | |||
| $style = null, | |||
| $params = null ) |
Creates a new window.
| mixed | $parent | The parent window or null for a top-level window. |
| string | $wclass | The window class. |
| string | $caption | The window caption. |
| int | $xPos | The x-coordinate of the window. |
| int | $yPos | The y-coordinate of the window. |
| int | $width | The width of the window. |
| int | $height | The height of the window. |
| mixed | $style | The window style. |
| mixed | $params | Additional parameters for the window. |
Definition at line 117 of file class.winbinder.php.
References $bearsamppCore, callWinBinder(), setImage(), and writeLog().
Referenced by createAppWindow(), and createNakedWindow().
| destroyTimer | ( | $wbobject, | |
| $timerobject ) |
Destroys a timer for a WinBinder object.
| mixed | $wbobject | The WinBinder object to destroy the timer for. |
| mixed | $timerobject | The timer object to destroy. |
Definition at line 516 of file class.winbinder.php.
References callWinBinder().
| destroyWindow | ( | $window | ) |
Destroys a window with proper cleanup and handling.
| mixed | $window | The window object to destroy. |
Definition at line 243 of file class.winbinder.php.
References callWinBinder(), exec(), Win32Ps\getCurrentPid(), getText(), processMessages(), reset(), windowIsValid(), and writeLog().
| drawImage | ( | $wbobject, | |
| $path, | |||
| $xPos = 0, | |||
| $yPos = 0, | |||
| $width = 0, | |||
| $height = 0 ) |
Draws an image on a WinBinder object.
| mixed | $wbobject | The WinBinder object to draw on. |
| string | $path | The path to the image file. |
| int | $xPos | The x-coordinate of the image. |
| int | $yPos | The y-coordinate of the image. |
| int | $width | The width of the image. |
| int | $height | The height of the image. |
Definition at line 414 of file class.winbinder.php.
References callWinBinder().
| drawLine | ( | $wbobject, | |
| $xStartPos, | |||
| $yStartPos, | |||
| $xEndPos, | |||
| $yEndPos, | |||
| $color, | |||
| $height = 1 ) |
Draws a line on a WinBinder object.
| mixed | $wbobject | The WinBinder object to draw on. |
| int | $xStartPos | The starting x-coordinate of the line. |
| int | $yStartPos | The starting y-coordinate of the line. |
| int | $xEndPos | The ending x-coordinate of the line. |
| int | $yEndPos | The ending y-coordinate of the line. |
| int | $color | The color of the line. |
| int | $height | The height of the line. |
Definition at line 476 of file class.winbinder.php.
References callWinBinder().
| drawRect | ( | $parent, | |
| $xPos, | |||
| $yPos, | |||
| $width, | |||
| $height, | |||
| $color = 15790320, | |||
| $filled = true ) |
Draws a rectangle on a WinBinder object.
| mixed | $parent | The parent WinBinder object. |
| int | $xPos | The x-coordinate of the rectangle. |
| int | $yPos | The y-coordinate of the rectangle. |
| int | $width | The width of the rectangle. |
| int | $height | The height of the rectangle. |
| int | $color | The color of the rectangle. |
| bool | $filled | Whether the rectangle should be filled. |
Definition at line 458 of file class.winbinder.php.
References callWinBinder().
| drawText | ( | $parent, | |
| $caption, | |||
| $xPos, | |||
| $yPos, | |||
| $width = null, | |||
| $height = null, | |||
| $font = null ) |
Draws text on a WinBinder object.
| mixed | $parent | The parent WinBinder object. |
| string | null | $caption | The text to draw. Null will be converted to empty string. |
| int | $xPos | The x-coordinate of the text. |
| int | $yPos | The y-coordinate of the text. |
| int | null | $width | The width of the text area. |
| int | null | $height | The height of the text area. |
| mixed | $font | The font to use for the text. |
Definition at line 434 of file class.winbinder.php.
References callWinBinder().
| exec | ( | $cmd, | |
| $params = null, | |||
| $silent = false ) |
Executes a system command.
| string | $cmd | The command to execute. |
| string | null | $params | The parameters to pass to the command. |
| bool | $silent | Whether to execute the command silently. |
Definition at line 342 of file class.winbinder.php.
References $bearsamppCore, callWinBinder(), Core\SCRIPT_EXEC_SILENT, and writeLog().
Referenced by destroyWindow().
| findFile | ( | $filename | ) |
Finds a file using WinBinder.
| string | $filename | The name of the file to find. |
Definition at line 528 of file class.winbinder.php.
References $result, callWinBinder(), and writeLog().
| getFocus | ( | ) |
Retrieves the focus from a WinBinder object.
Definition at line 597 of file class.winbinder.php.
References callWinBinder().
| getSystemInfo | ( | $info | ) |
Retrieves system information.
| string | $info | The type of system information to retrieve. |
Definition at line 397 of file class.winbinder.php.
References callWinBinder().
| getText | ( | $wbobject | ) |
Retrieves the text from a WinBinder object.
| mixed | $wbobject | The WinBinder object to get the text from. |
Definition at line 301 of file class.winbinder.php.
References callWinBinder().
Referenced by destroyWindow().
| getValue | ( | $wbobject | ) |
Retrieves the value from a WinBinder object.
| mixed | $wbobject | The WinBinder object to get the value from. |
Definition at line 943 of file class.winbinder.php.
References callWinBinder().
| incrProgressBar | ( | $progressBar | ) |
Increments the value of a progress bar.
| array | $progressBar | The progress bar control. |
Definition at line 967 of file class.winbinder.php.
References setProgressBarValue().
| isEnabled | ( | $wbobject | ) |
Checks if a WinBinder object is enabled.
| mixed | $wbobject | The WinBinder object to check. |
Definition at line 621 of file class.winbinder.php.
References callWinBinder().
| mainLoop | ( | ) |
Starts the main event loop.
Definition at line 373 of file class.winbinder.php.
References callWinBinder().
| messageBox | ( | $message, | |
| $type, | |||
| $title = null ) |
Displays a message box.
| string | $message | The message to display. |
| int | $type | The type of message box. |
| string | null | $title | The title of the message box. |
Definition at line 1050 of file class.winbinder.php.
References $bearsamppCore, and callWinBinder().
Referenced by messageBoxError(), messageBoxInfo(), messageBoxOk(), messageBoxOkCancel(), messageBoxQuestion(), messageBoxWarning(), messageBoxYesNo(), and messageBoxYesNoCancel().
| messageBoxError | ( | $message, | |
| $title = null ) |
Displays an error message box.
| string | $message | The message to display. |
| string | null | $title | The title of the message box. If null, the default title will be used. |
Definition at line 1112 of file class.winbinder.php.
References messageBox().
| messageBoxInfo | ( | $message, | |
| $title = null ) |
Displays an informational message box.
| string | $message | The message to display. |
| string | null | $title | The title of the message box. |
Definition at line 1036 of file class.winbinder.php.
References messageBox().
| messageBoxOk | ( | $message, | |
| $title = null ) |
Displays an OK message box.
| string | $message | The message to display. |
| string | null | $title | The title of the message box. |
Definition at line 1073 of file class.winbinder.php.
References messageBox().
| messageBoxOkCancel | ( | $message, | |
| $title = null ) |
Displays an OK/Cancel message box.
| string | $message | The message to display. |
| string | null | $title | The title of the message box. |
Definition at line 1086 of file class.winbinder.php.
References messageBox().
| messageBoxQuestion | ( | $message, | |
| $title = null ) |
Displays a question message box.
| string | $message | The message to display. |
| string | null | $title | The title of the message box. If null, the default title will be used. |
Definition at line 1099 of file class.winbinder.php.
References messageBox().
| messageBoxWarning | ( | $message, | |
| $title = null ) |
Displays a warning message box.
| string | $message | The message to display. |
| string | null | $title | The title of the message box. If null, the default title will be used. |
Definition at line 1125 of file class.winbinder.php.
References messageBox().
| messageBoxYesNo | ( | $message, | |
| $title = null ) |
Displays a Yes/No message box.
| string | $message | The message to display. |
| string | null | $title | The title of the message box. If null, the default title will be used. |
Definition at line 1138 of file class.winbinder.php.
References messageBox().
| messageBoxYesNoCancel | ( | $message, | |
| $title = null ) |
Displays a Yes/No/Cancel message box.
| string | $message | The message to display. |
| string | null | $title | The title of the message box. If null, the default title will be used. |
Definition at line 1151 of file class.winbinder.php.
References messageBox().
|
private |
Process any pending window messages.
Definition at line 328 of file class.winbinder.php.
References callWinBinder().
Referenced by destroyWindow().
| refresh | ( | $wbobject | ) |
Refreshes a WinBinder object.
| mixed | $wbobject | The WinBinder object to refresh. |
Definition at line 385 of file class.winbinder.php.
References callWinBinder().
| reset | ( | ) |
Resets the control counter and callback array.
Definition at line 80 of file class.winbinder.php.
Referenced by __construct(), and destroyWindow().
| resetProgressBar | ( | $progressBar | ) |
Resets the value of a progress bar to zero.
| array | $progressBar | The progress bar control. |
Definition at line 1012 of file class.winbinder.php.
References setProgressBarValue().
| setArea | ( | $wbobject, | |
| $width, | |||
| $height ) |
Sets the area of a WinBinder object.
| mixed | $wbobject | The WinBinder object to set the area for. |
| int | $width | The width of the area. |
| int | $height | The height of the area. |
Definition at line 232 of file class.winbinder.php.
References callWinBinder().
Referenced by createNakedWindow().
| setCursor | ( | $wbobject, | |
| $type = self::CURSOR_ARROW ) |
Sets the cursor type for a WinBinder object.
| mixed | $wbobject | The WinBinder object to set the cursor for. |
| string | $type | The cursor type to set. |
Definition at line 858 of file class.winbinder.php.
References callWinBinder().
Referenced by createHyperLink().
| setDisabled | ( | $wbobject | ) |
Disables a WinBinder object.
| mixed | $wbobject | The WinBinder object to disable. |
Definition at line 633 of file class.winbinder.php.
References setEnabled().
| setEnabled | ( | $wbobject, | |
| $enabled = true ) |
Sets the enabled state for a WinBinder object.
| mixed | $wbobject | The WinBinder object to set the enabled state for. |
| bool | $enabled | True to enable the object, false to disable it. |
Definition at line 646 of file class.winbinder.php.
References callWinBinder().
Referenced by setDisabled().
| setFocus | ( | $wbobject | ) |
Sets the focus to a WinBinder object.
| mixed | $wbobject | The WinBinder object to set the focus to. |
Definition at line 609 of file class.winbinder.php.
References callWinBinder().
| setHandler | ( | $wbobject, | |
| $classCallback, | |||
| $methodCallback, | |||
| $launchTimer = null ) |
Sets an event handler for a WinBinder object.
| mixed | $wbobject | The WinBinder object to set the handler for. |
| mixed | $classCallback | The class callback for the handler. |
| mixed | $methodCallback | The method callback for the handler. |
| mixed | $launchTimer | The timer to launch for the handler. |
Definition at line 546 of file class.winbinder.php.
References callWinBinder(), and createTimer().
| setImage | ( | $wbobject, | |
| $path ) |
Sets an image for a WinBinder object.
| mixed | $wbobject | The WinBinder object to set the image for. |
| string | $path | The path to the image file. |
Definition at line 187 of file class.winbinder.php.
References callWinBinder().
Referenced by createWindow().
| setMaxLength | ( | $wbobject, | |
| $length ) |
Sets the maximum length for a WinBinder object.
| mixed | $wbobject | The WinBinder object to set the maximum length for. |
| int | $length | The maximum length to set. |
Definition at line 794 of file class.winbinder.php.
References callWinBinder().
Referenced by createInputText().
| setProgressBarMax | ( | $progressBar, | |
| $max ) |
Sets the maximum value of a progress bar.
| array | $progressBar | The progress bar control. |
| int | $max | The maximum value to set. |
Definition at line 1023 of file class.winbinder.php.
References setRange().
| setProgressBarValue | ( | $progressBar, | |
| $value ) |
Sets the value of a progress bar.
| array | $progressBar | The progress bar control. |
| mixed | $value | The value to set. |
Definition at line 978 of file class.winbinder.php.
References callWinBinder().
Referenced by incrProgressBar(), and resetProgressBar().
| setRange | ( | $wbobject, | |
| $min, | |||
| $max ) |
Sets the range for a WinBinder object.
| mixed | $wbobject | The WinBinder object to set the range for. |
| int | $min | The minimum value of the range. |
| int | $max | The maximum value of the range. |
Definition at line 957 of file class.winbinder.php.
References callWinBinder().
Referenced by createProgressBar(), and setProgressBarMax().
| setStyle | ( | $wbobject, | |
| $style ) |
Sets the style for a WinBinder object.
| mixed | $wbobject | The WinBinder object to set the style for. |
| mixed | $style | The style to set. |
Definition at line 659 of file class.winbinder.php.
References callWinBinder().
| setText | ( | $wbobject, | |
| $content ) |
Sets the text for a WinBinder object.
| mixed | $wbobject | The WinBinder object to set the text for. |
| string | null | $content | The text content to set. Null will be converted to empty string. |
Definition at line 583 of file class.winbinder.php.
References callWinBinder().
| setValue | ( | $wbobject, | |
| $content ) |
Sets the value for a WinBinder object.
| mixed | $wbobject | The WinBinder object to set the value for. |
| mixed | $content | The value to set. |
Definition at line 1002 of file class.winbinder.php.
References callWinBinder().
| sysDlgOpen | ( | $parent, | |
| $title, | |||
| $filter = null, | |||
| $path = null ) |
Opens a system dialog to open a file.
| mixed | $parent | The parent window for the dialog. |
| string | $title | The title of the dialog. |
| string | null | $filter | The file filter for the dialog. |
| string | null | $path | The initial path for the dialog. |
Definition at line 688 of file class.winbinder.php.
References callWinBinder().
| sysDlgPath | ( | $parent, | |
| $title, | |||
| $path = null ) |
Opens a system dialog to select a path.
| mixed | $parent | The parent window for the dialog. |
| string | $title | The title of the dialog. |
| string | null | $path | The initial path for the dialog. |
Definition at line 673 of file class.winbinder.php.
References callWinBinder().
| wait | ( | $wbobject = null | ) |
Waits for an event on a WinBinder object.
| mixed | $wbobject | The WinBinder object to wait on. |
Definition at line 503 of file class.winbinder.php.
References callWinBinder().
|
private |
Checks if a window handle is still valid.
| mixed | $window | The window object to check. |
Definition at line 312 of file class.winbinder.php.
References callWinBinder().
Referenced by destroyWindow().
|
staticprivate |
Writes a log message to the WinBinder log file.
| string | $log | The log message to write. |
Definition at line 362 of file class.winbinder.php.
References $bearsamppRoot, and Util\logDebug().
Referenced by createWindow(), destroyWindow(), exec(), and findFile().
| $callback |
Definition at line 58 of file class.winbinder.php.
|
private |
Definition at line 61 of file class.winbinder.php.
|
private |
Definition at line 60 of file class.winbinder.php.
| $gauge |
Definition at line 59 of file class.winbinder.php.
| const BOX_ERROR = WBC_STOP |
Definition at line 33 of file class.winbinder.php.
| const BOX_INFO = WBC_INFO |
Definition at line 29 of file class.winbinder.php.
| const BOX_OK = WBC_OK |
Definition at line 30 of file class.winbinder.php.
| const BOX_OKCANCEL = WBC_OKCANCEL |
Definition at line 31 of file class.winbinder.php.
| const BOX_QUESTION = WBC_QUESTION |
Definition at line 32 of file class.winbinder.php.
| const BOX_WARNING = WBC_WARNING |
Definition at line 34 of file class.winbinder.php.
| const BOX_YESNO = WBC_YESNO |
Definition at line 35 of file class.winbinder.php.
| const BOX_YESNOCANCEL = WBC_YESNOCANCEL |
Definition at line 36 of file class.winbinder.php.
| const CTRL_ID = 0 |
Definition at line 21 of file class.winbinder.php.
Referenced by ActionAddAlias\handleCustomEvent(), ActionAddVhost\handleCustomEvent(), ActionEditAlias\handleCustomEvent(), ActionEditVhost\handleCustomEvent(), ActionAbout\processWindow(), ActionChangeBrowser\processWindow(), ActionChangeDbRootPwd\processWindow(), ActionChangePort\processWindow(), ActionCheckVersion\processWindow(), ActionDialogBase\processWindow(), and ActionGenSslCertificate\processWindow().
| const CTRL_OBJ = 1 |
Definition at line 22 of file class.winbinder.php.
Referenced by ActionChangeBrowser\__construct(), ActionChangeDbRootPwd\__construct(), ActionChangePort\__construct(), ActionAddAlias\getFormValues(), ActionAddVhost\getFormValues(), ActionEditAlias\getFormValues(), ActionEditVhost\getFormValues(), ActionAddAlias\handleCustomEvent(), ActionAddVhost\handleCustomEvent(), ActionEditAlias\handleCustomEvent(), ActionEditVhost\handleCustomEvent(), ActionChangeBrowser\processWindow(), ActionChangeDbRootPwd\processWindow(), ActionChangePort\processWindow(), ActionGenSslCertificate\processWindow(), and ActionLoading\updateLabelFromStatusFile().
| const CURSOR_ARROW = 'arrow' |
Definition at line 39 of file class.winbinder.php.
| const CURSOR_CROSS = 'cross' |
Definition at line 40 of file class.winbinder.php.
| const CURSOR_FINGER = 'finger' |
Definition at line 41 of file class.winbinder.php.
| const CURSOR_FORBIDDEN = 'forbidden' |
Definition at line 42 of file class.winbinder.php.
| const CURSOR_HELP = 'help' |
Definition at line 43 of file class.winbinder.php.
| const CURSOR_IBEAM = 'ibeam' |
Definition at line 44 of file class.winbinder.php.
| const CURSOR_NONE = null |
Definition at line 45 of file class.winbinder.php.
| const CURSOR_SIZEALL = 'sizeall' |
Definition at line 46 of file class.winbinder.php.
| const CURSOR_SIZENESW = 'sizenesw' |
Definition at line 47 of file class.winbinder.php.
| const CURSOR_SIZENS = 'sizens' |
Definition at line 48 of file class.winbinder.php.
| const CURSOR_SIZENWSE = 'sizenwse' |
Definition at line 49 of file class.winbinder.php.
| const CURSOR_SIZEWE = 'sizewe' |
Definition at line 50 of file class.winbinder.php.
| const CURSOR_UPARROW = 'uparrow' |
Definition at line 51 of file class.winbinder.php.
| const CURSOR_WAIT = 'wait' |
Definition at line 52 of file class.winbinder.php.
| const CURSOR_WAITARROW = 'waitarrow' |
Definition at line 53 of file class.winbinder.php.
| const INCR_PROGRESS_BAR = '++' |
Definition at line 25 of file class.winbinder.php.
| const NEW_LINE = '@nl@' |
Definition at line 26 of file class.winbinder.php.
| const SYSINFO_SCREENAREA = 'screenarea' |
Definition at line 56 of file class.winbinder.php.
| const SYSINFO_WORKAREA = 'workarea' |
Definition at line 57 of file class.winbinder.php.
Referenced by ActionLoading\__construct(), and Splash\init().