Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

void wxPdfDocument::CheckBox ( const wxString &  name,
double  x,
double  y,
double  width,
bool  checked = false 
)

Adds a check box field.

Adds a check box to the list of form fields

Parameters:
namefield name of the check box
xabscissa of the check box position
yordinate of the check box position
widthwidth of the check box
checkeddefault value of the check box

Definition at line 448 of file pdfform.cpp.

References AddFormField(), GetNewObjId(), wxPdfAnnotationWidget::SetName(), wxPdfAnnotationObject::SetRectangle(), and wxPdfCheckBox::SetValue().

{
  wxPdfCheckBox* field = new wxPdfCheckBox(GetNewObjId());
  field->SetName(name);
  field->SetValue(checked);
  field->SetRectangle(x, y, width, width);
  AddFormField(field);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index