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

void wxPdfDocument::SetFormBorderStyle ( wxPdfBorderStyle  borderStyle = wxPDF_BORDER_SOLID,
double  borderWidth = -1 
)

Sets the border style for form fields.

Sets the border width and style to be used for all subsequent form field additions until this method is called again with different values.

Parameters:
borderStylestyle of the form field's border

  • wxPDF_BORDER_SOLID - solid border
  • wxPDF_BORDER_DASHED - dashed border
  • wxPDF_BORDER_BEVELED - beveled border
  • wxPDF_BORDER_INSET - inset border
  • wxPDF_BORDER_UNDERLINE - border on the bottom side only
borderWidthwidth of the form field's border

Definition at line 590 of file pdfform.cpp.

References m_formBorderStyle, m_formBorderWidth, and m_k.

{
  switch (borderStyle)
  {
    case wxPDF_BORDER_DASHED:    m_formBorderStyle = wxString(_T("D")); break;
    case wxPDF_BORDER_BEVELED:   m_formBorderStyle = wxString(_T("B")); break;
    case wxPDF_BORDER_INSET:     m_formBorderStyle = wxString(_T("I")); break;
    case wxPDF_BORDER_UNDERLINE: m_formBorderStyle = wxString(_T("U")); break;
    case wxPDF_BORDER_SOLID:
    default:                     m_formBorderStyle = wxString(_T("S")); break;
  }
  m_formBorderWidth = (borderWidth >= 0) ? borderWidth * m_k : 1;
}

Generated by  Doxygen 1.6.0   Back to index