487
edits
(New page: {{Nav PHP WinBinder 2}} '''''WinBinder Part 2 Adding code and files''''' On the previous page we finished with a bare windows application containing two buttons and indicators. This page...) |
(Proofreading and grammatical changes; some minor reformatting) |
||
Line 4: | Line 4: | ||
On the previous page we finished with a bare windows application containing two buttons and indicators. | On the previous page we finished with a bare windows application containing two buttons and indicators. | ||
This page looks at adding functionality to these buttons. Code will be split across several include files | This page looks at adding functionality to these buttons. Code will be split across several include files. The sole purpose is to demonstrate capabilities of PHC-Win covered on the [[PHP WinBinder 2: PHC-Win | next page]]. | ||
== Individual files == | == Individual files == | ||
Individual files are added to C:\us_wb\my_app\'''z_basic.phpw''' as shown below: | Individual files are added to C:\us_wb\my_app\'''z_basic.phpw''' as shown below: | ||
Line 19: | Line 18: | ||
Include "green_2_on.inc.php"; | Include "green_2_on.inc.php"; | ||
</pre> | </pre> | ||
There are six in all each containing a single function as follows: | There are six in all, each containing a single function as follows: | ||
'''button_1_toggle.inc.php''' | '''button_1_toggle.inc.php''' | ||
Line 39: | Line 38: | ||
?> | ?> | ||
</pre> | </pre> | ||
'''button_2_toggle.inc.php''' | '''button_2_toggle.inc.php''' | ||
Line 59: | Line 58: | ||
?> | ?> | ||
</pre> | </pre> | ||
'''red_1_on.inc.php''' | '''red_1_on.inc.php''' | ||
Line 71: | Line 70: | ||
?> | ?> | ||
</pre> | </pre> | ||
'''red_2_on.inc.php''' | '''red_2_on.inc.php''' | ||
Line 83: | Line 82: | ||
?> | ?> | ||
</pre> | </pre> | ||
'''green_1_on.inc.php''' | '''green_1_on.inc.php''' | ||
Line 95: | Line 94: | ||
?> | ?> | ||
</pre> | </pre> | ||
'''green_2_on.inc.php''' | '''green_2_on.inc.php''' | ||
Line 107: | Line 106: | ||
?> | ?> | ||
</pre> | </pre> | ||
{| | {| | ||
|-valign="top" | |-valign="top" | ||
Line 121: | Line 120: | ||
== Summary == | == Summary == | ||
That completes our masterpiece | That completes our masterpiece. It is now ready for packaging and distribution. | ||
The next page covers [[PHP WinBinder 2: PHC-Win | '''PHC-Win''']] which makes the whole process very easy. | |||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' |