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

void wxPdfDocument::TextField ( const wxString &  name,
double  x,
double  y,
double  width,
double  height,
const wxString &  value = wxEmptyString,
bool  multiline = false 

Adds a text field.

Adds a text field to the list of form fields

namefield name of the text field
xabscissa of the text field position
yordinate of the text field position
widthwidth of the text field
heightheight of the text field
valuedefault value of the text field
multilineflag whether the text field is a multiline field or not

Definition at line 539 of file pdfform.cpp.

References AddFormField(), wxPdfFont::GetIndex(), GetNewObjId(), m_currentFont, m_fontSizePt, wxPdfTextField::SetMultiLine(), wxPdfAnnotationWidget::SetName(), wxPdfAnnotationObject::SetRectangle(), and wxPdfTextField::SetValue().

  wxPdfTextField* field = new wxPdfTextField(GetNewObjId(), m_currentFont->GetIndex(), m_fontSizePt, value);
  field->SetRectangle(x, y, width, height);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index