PHP WinBinder: Text input: Difference between revisions

Jump to navigation Jump to search
m
Fixed box in Control Creation
(Proofreading and grammatical changes; some minor reformatting)
m (Fixed box in Control Creation)
 
Line 9: Line 9:
Again we use this this function to create controls:
Again we use this this function to create controls:
{|
{|
|-
|<pre>
|<pre>
int wb_create_control (int parent, int ctlclass [, mixed caption [, int xpos [, int ypos [, int width
int wb_create_control (int parent, int ctlclass [, mixed caption [, int xpos [, int ypos [, int width
Line 17: Line 16:
I have reduced it, however there is an extra parameter, '''style''', that we will be using:
I have reduced it, however there is an extra parameter, '''style''', that we will be using:
{|
{|
|-
|<pre>
|<pre>
handle = wb_create_control(parent,ctlclass,caption,xpos,ypos,width,height,id,style)
handle = wb_create_control(parent,ctlclass,caption,xpos,ypos,width,height,id,style)
</pre>
</pre>
|}
|}
'''Style''' changes the look of a control. For example, WBC_BORDER will produce a 3-D look on a label.


Style changes the look of a control. For example, WBC_BORDER will produce a 3-D look on a label.
Changes to label3 are as follows:
 
{|
Changes label3 as follows:
|<pre>
<pre>
$text  = " This is test 3 on two lines\n Sunken Label";
$text  = " This is test 3 on two lines\n Sunken Label";
$label3 = wb_create_control($mainwin, Label, $text,  5, 60, 140, 40, 103, WBC_BORDER);
$label3 = wb_create_control($mainwin, Label, $text,  5, 60, 140, 40, 103, WBC_BORDER);
</pre>
</pre>
|}


or it can change a control's functionality as in the edit box below.
or it can change a control's functionality as in the edit box below.

Navigation menu