SwiftlyTilting: usability, reusability

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

8 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

is there any way to add a .jpg image as a header? The wiki is a bit hard to follow in some areas.

Comment by vague — Friday, January 8, 2010 @ 12:27 am

what do you mean by “add a jpg as a header”

I agree wbOhjects is a bit tough to follow. I’ve stopped using it for the most part as it’s too complex. You might want to check out wbEvents which allows you to use more winbinder commands, but still avoids the weird event handling of WinBinder. See this thread for more info: http://winbinder.org/forum/viewtopic.php?f=7&t=852

Comment by swiftlytilting — Friday, January 8, 2010 @ 5:44 am

im just looking to toss a small image in an application im working on to spruce up its visual appearance. from what i just finished reading phcwin only allows .bmp images. not a problem since there is only 1 image.

Comment by vague — Friday, January 8, 2010 @ 9:08 pm

well phc-win will allow any images but WinBinder only uses bmp and ico with the basic functions.

Comment by swiftlytilting — Friday, January 8, 2010 @ 10:16 pm

Leave a Comment

Validate XHTML | Word Press