WinBinder.org The native windows binding for php

Examples

Simple examples

Here is the minimum code required for a Windows application:

<?php

// Code sample: A Windows application with only three lines

include "../include/winbinder.php";                             // Include WinBinder library
wb_create_window(NULL, PopupWindow, "Hello world!", 480, 320);  // Create application window
wb_main_loop();                                                 // Enter message loop

?>

The code above will produce a normal application window with a system menu, a minimize button and a close button like the one below.

This example was captured with the default XP theme.

Here is a more useful example with around 110 lines of code. This script will simply look for a file using the standard Windows Open dialog box and display its name on the status bar. All controls and menu items are fully functional. Notice the tooltip displayed automatically under the About button.
Source code    Alternate version

This screen was captured with the "Silver" XP theme.


Applications

WinBinder comes with its own utility to build source code snapshots and releases, build the DLLs, compile the WinBinder manual in CHM (HTML help) format, create the XML package information, build the setup automatically, and more. This tool is made with WinBinder, of course.
Source code  RC file

This screen was captured with the "Silver" XP theme.

Below is a very simple calculator.
Source code  RC file 

This screen was captured from Windows 98.

Here is a screenshot of a simple TrueType font data reader.
Source code  RC file

This screen was captured with the "Silver" XP theme.

Below is a very simple digital clock which custom fonts.
Source code

This screen was captured from Windows 2000.

Here is a sample of a borderless window.
Source code

This screen was captured with the "Silver" XP theme.

WinBinder has its own To Do application and database as you can see below.

This screen was captured with the "Silver" XP theme.

Here is a sample screen of a system to generate proposals in HTML. It uses SQLite databases as project files and it is currently under development.

This screen was captured with the "Silver" XP theme.
 

See also

Overview
| Why WinBinder