PHP WinBinder 2: Add code: Difference between revisions

Proofreading and grammatical changes; some minor reformatting
(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, sole purpose is to demonstrate capabilities of PHC-Win covered on the [[PHP WinBinder 2: PHC-Win | next page]].
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]].


'''''[[#top | Top]]'''''
== 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>
'''''[[#top | Top]]'''''
 


'''button_2_toggle.inc.php'''
'''button_2_toggle.inc.php'''
Line 59: Line 58:
?>
?>
</pre>
</pre>
'''''[[#top | Top]]'''''
 


'''red_1_on.inc.php'''
'''red_1_on.inc.php'''
Line 71: Line 70:
?>
?>
</pre>
</pre>
'''''[[#top | Top]]'''''
 


'''red_2_on.inc.php'''
'''red_2_on.inc.php'''
Line 83: Line 82:
?>
?>
</pre>
</pre>
'''''[[#top | Top]]'''''
 


'''green_1_on.inc.php'''
'''green_1_on.inc.php'''
Line 95: Line 94:
?>
?>
</pre>
</pre>
'''''[[#top | Top]]'''''
 


'''green_2_on.inc.php'''
'''green_2_on.inc.php'''
Line 107: Line 106:
?>
?>
</pre>
</pre>
'''''[[#top | Top]]'''''
 
{|
{|
|-valign="top"
|-valign="top"
Line 121: Line 120:


== Summary ==
== Summary ==
That completes our masterpiece it is now ready for packaging and distribution.
That completes our masterpiece. It is now ready for packaging and distribution.


Next page covers [[PHP WinBinder 2: PHC-Win | '''PHC-Win''']] which makes the whole process very easy.
The next page covers [[PHP WinBinder 2: PHC-Win | '''PHC-Win''']] which makes the whole process very easy.


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''