wbObjects is an object oriented interface for WinBinder, a native Windows API for PHP. WinBinder is a great tool, but unfortunately its current lack of an object oriented interface makes writing applications harder than it needs to be. wbObjects has been created to simplify the coding process so WinBinder applications can be developed more rapidly.
Contents |
include_once('../wbObjects.php5');
$window = $wbSystem->createWindow( AppWindow, 'thewindow', 'Hello World!', WBC_CENTER, WBC_CENTER, 300, 100);
$textbox = $window->createControl( EditBox, 'thetext', '', 5, 10, 280, 22, WBC_LEFT);
$button = $window->createControl( PushButton, 'thebutton', 'Click Me!', 5, 30, 280, 22);
$button->onMainEvent = 'didClick';
$window->onClose = 'didClose';
$wbSystem->start();
function didClick($params)
{
$params['wbSystem']->thewindow->messageBox('Hello World! You typed:'. $params['wbSystem']->thetext->text);
}
function didClose($params)
{ exit;
}
Manual
wbObjects blog
wbObjects source code repository
Right now specific controls share one object type but in future versions each control type will have it's own object type with specific properties, methods and events. The manual is also a bit thin but i'm working on it ;)