SwiftlyTilting: revisionist reality

Monday, February 13, 2006

wbObjects: Easy Windows Programming in PHP

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 simply the coding process so WinBinder applications can be developed more rapidly.

wbObjects Home
Documentation
Download: wbObjects 0.7.0
Downloaded 830 times

Sample code:

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;
}

4 Comments Leave Comment

Can I built a frizz with this?

Comment by S. Dancer — Monday, February 13, 2006 @ 11:57 am

LOL! :D

Comment by swiftlytilting — Monday, February 13, 2006 @ 6:35 pm

Can you make one for php-gtk2?

Comment by Pub — Sunday, April 16, 2006 @ 5:52 am

hmm.. trying to figure out how to use this, along with phc-win, but it looks like the wiki documentation has been severely hax0red :(

Comment by ekdikeo — Sunday, March 2, 2008 @ 11:21 pm

Leave a Comment

Validate XHTML | Word Press