Added SetBitmap, GetBitmap to wxWizard
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
98d9f577ea
commit
f49fd6d0cd
@ -157,6 +157,11 @@ This is useful if the decision about which pages to show is taken during
|
||||
run-time, as in this case, the wizard won't be able to get to all pages starting
|
||||
from a single one and you should call {\it Fit} separately for the others.
|
||||
|
||||
\membersection{wxWizard::GetBitmap}\label{wxwizardgetbitmap}
|
||||
|
||||
\constfunc{const wxBitmap\&}{GetBitmap}{\void}
|
||||
|
||||
Returns the bitmap used for the wizard.
|
||||
|
||||
\membersection{wxWizard::GetCurrentPage}\label{wxwizardgetcurrentpage}
|
||||
|
||||
@ -241,6 +246,11 @@ Executes the wizard starting from the given page, returning {\tt true} if it was
|
||||
successfully finished or {\tt false} if user cancelled it. The {\it firstPage}
|
||||
can not be {\tt NULL}.
|
||||
|
||||
\membersection{wxWizard::SetBitmap}\label{wxwizardsetbitmap}
|
||||
|
||||
\func{void}{SetBitmap}{\param{const wxBitmap\& }{bitmap}}
|
||||
|
||||
Sets the bitmap used for the wizard.
|
||||
|
||||
\membersection{wxWizard::SetPageSize}\label{wxwizardsetpagesize}
|
||||
|
||||
|
@ -55,6 +55,10 @@ public:
|
||||
virtual wxSizer *GetPageAreaSizer() const;
|
||||
virtual void SetBorder(int border);
|
||||
|
||||
/// set/get bitmap
|
||||
const wxBitmap& GetBitmap() const { return m_bitmap; }
|
||||
void SetBitmap(const wxBitmap& bitmap);
|
||||
|
||||
// implementation only from now on
|
||||
// -------------------------------
|
||||
|
||||
|
@ -843,6 +843,13 @@ void wxWizard::OnWizEvent(wxWizardEvent& event)
|
||||
}
|
||||
}
|
||||
|
||||
void wxWizard::SetBitmap(const wxBitmap& bitmap)
|
||||
{
|
||||
m_bitmap = bitmap;
|
||||
if (m_statbmp)
|
||||
m_statbmp->SetBitmap(m_bitmap);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxWizardEvent
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user