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

void wxPdfDocument::PushButton ( const wxString &  name,
double  x,
double  y,
double  width,
double  height,
const wxString &  caption,
const wxString &  action 

Adds a push button.

Adds a push button to the list of form fields

namefield name of the push button
xabscissa of the push button position
yordinate of the push button position
widthwidth of the push button
heightheight of the push button
captioncaption of the push button
actionassociated Javascript action

Definition at line 483 of file pdfform.cpp.

References AddFormField(), wxPdfFont::GetIndex(), GetNewObjId(), m_currentFont, m_fontSizePt, wxPdfPushButton::SetAction(), wxPdfPushButton::SetCaption(), wxPdfAnnotationWidget::SetName(), and wxPdfAnnotationObject::SetRectangle().

  wxPdfPushButton* field = new wxPdfPushButton(GetNewObjId(), m_currentFont->GetIndex(), m_fontSizePt);
  field->SetRectangle(x, y, w, h);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index