Search:     Advanced search

function NewCheckBox(Left, Top, Caption, Checked = false)

Article ID: 316
Last updated: 24 Sep, 2010
Views: 890
Posted: 12 Dec, 2008
by Thomas B.
Updated: 24 Sep, 2010
by Murray D.

 

Description:

Creates a new check box. (Returns an object of class T Checkbox.)

Notes:

Parameters

Left (This is an integer value for the left position of the check box on the form.)

Top (This is an integer value for the top position of the check box on the from.)

Caption (This is a string value for the caption of the check box.)

Checked (optional - Default is false.)

Possible values: True,1,False,0

if true is selected then the checkbox will be checked by default

This example will creat a sample form with the name label, and a check box for Load From Template.

Pascal Example:

Form := NewForm(230,150,'Sample Form');
NewLabel(26,23,'New Area');
checkbox := newCheckbox(28,48, 'New Area');
checkbox.width := 200;
if Form.ShowModal <> mrOk then
  Exit;

Visual Basic Example:

Form = NewForm(230,150,"Sample Form")
NewLabel(26,23,"New Area")
checkbox = newCheckbox(28,48, "New Area")
checkbox.width = 200
if Form.ShowModal <> mrOk then
  Exit function
End if


Enterprise and Developer editions

This article was:  
Prev  Not what you're looking for? Suggest a topic  Next
function NewRadioButton(Left, Top, Caption)     function NewColorBox(Left, Top)