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

void wxPdfDocument::ComboBox ( const wxString &  name,
double  x,
double  y,
double  width,
double  height,
const wxArrayString &  values 

Adds a combo box field.

Adds a combo box to the list of form fields

namefield name of the combo box
xabscissa of the combo box position
yordinate of the combo box position
widthwidth of the combo box
heightheight of the combo box
valuesarray of option values of the combo box

Definition at line 464 of file pdfform.cpp.

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

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

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index