<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%
% automatically generated by HelpGen $Revision$ from
% newbmpbtn.h at 21/Jan/02 21:14:19
%


\section{\class{wxNewBitmapButton}}\label{wxnewbitmapbutton}


This is an alternative class to wxBitmapButton. It is used
in the implementation of dynamic toolbars.

\wxheading{Derived from}

\helpref{wxPanel}{wxpanel}

\wxheading{Include files}

&lt;wx/fl/newbmpbtn.h&gt;

\wxheading{Data structures}

\latexignore{\rtfignore{\wxheading{Members}}}


\membersection{wxNewBitmapButton::wxNewBitmapButton}\label{wxnewbitmapbuttonwxnewbitmapbutton}

\func{}{wxNewBitmapButton}{\param{const wxBitmap\&amp; }{labelBitmap = wxNullBitmap}, \param{const wxString\&amp; }{labelText = ""}, \param{int }{alignText = NB\_ALIGN\_TEXT\_BOTTOM}, \param{bool }{isFlat = TRUE}, \param{int }{firedEventType = wxEVT\_COMMAND\_MENU\_SELECTED}, \param{int }{marginX = 2}, \param{int }{marginY = 2}, \param{int }{textToLabelGap = 2}, \param{bool }{isSticky = FALSE}}

Constructor.


\func{}{wxNewBitmapButton}{\param{const wxString\&amp; }{bitmapFileName}, \param{const wxBitmapType }{bitmapFileType = wxBITMAP\_TYPE\_BMP}, \param{const wxString\&amp; }{labelText = ""}, \param{int }{alignText = NB\_ALIGN\_TEXT\_BOTTOM}, \param{bool }{isFlat = TRUE}, \param{int }{firedEventType = wxEVT\_COMMAND\_MENU\_SELECTED}, \param{int }{marginX = 2}, \param{int }{marginY = 2}, \param{int }{textToLabelGap = 2}, \param{bool }{isSticky = FALSE}}

Use this constructor if buttons have to be persistant


\membersection{wxNewBitmapButton::\destruct{wxNewBitmapButton}}\label{wxnewbitmapbuttondtor}

\func{}{\destruct{wxNewBitmapButton}}{\void}

Destructor.


\membersection{wxNewBitmapButton::DestroyLabels}\label{wxnewbitmapbuttondestroylabels}

\func{void}{DestroyLabels}{\void}

Internal function for destroying labels.


\membersection{wxNewBitmapButton::DrawDecorations}\label{wxnewbitmapbuttondrawdecorations}

\func{void}{DrawDecorations}{\param{wxDC\&amp; }{dc}}

Draws the decorations.


\membersection{wxNewBitmapButton::DrawLabel}\label{wxnewbitmapbuttondrawlabel}

\func{void}{DrawLabel}{\param{wxDC\&amp; }{dc}}

Draws the label.


\membersection{wxNewBitmapButton::DrawShade}\label{wxnewbitmapbuttondrawshade}

\func{void}{DrawShade}{\param{int }{outerLevel}, \param{wxDC\&amp; }{dc}, \param{wxPen\&amp; }{upperLeftSidePen}, \param{wxPen\&amp; }{lowerRightSidePen}}

Draws shading on the button.


\membersection{wxNewBitmapButton::GetStateLabel}\label{wxnewbitmapbuttongetstatelabel}

\func{wxBitmap*}{GetStateLabel}{\void}

Returns the label that matches the current button state.


\membersection{wxNewBitmapButton::IsInWindow}\label{wxnewbitmapbuttonisinwindow}

\func{bool}{IsInWindow}{\param{int }{x}, \param{int }{y}}

Returns TRUE if the given point is in the window.


\membersection{wxNewBitmapButton::OnEraseBackground}\label{wxnewbitmapbuttononerasebackground}

\func{void}{OnEraseBackground}{\param{wxEraseEvent\&amp; }{event}}

Responds to an erase background event.


\membersection{wxNewBitmapButton::OnKillFocus}\label{wxnewbitmapbuttononkillfocus}

\func{void}{OnKillFocus}{\param{wxFocusEvent\&amp; }{event}}

Responds to a kill focus event.


\membersection{wxNewBitmapButton::OnLButtonDown}\label{wxnewbitmapbuttononlbuttondown}

\func{void}{OnLButtonDown}{\param{wxMouseEvent\&amp; }{event}}

Responds to a left mouse button down event.


\membersection{wxNewBitmapButton::OnLButtonUp}\label{wxnewbitmapbuttononlbuttonup}

\func{void}{OnLButtonUp}{\param{wxMouseEvent\&amp; }{event}}

Responds to a left mouse button up event.


\membersection{wxNewBitmapButton::OnMouseMove}\label{wxnewbitmapbuttononmousemove}

\func{void}{OnMouseMove}{\param{wxMouseEvent\&amp; }{event}}

Responds to a mouse move event.


\membersection{wxNewBitmapButton::OnPaint}\label{wxnewbitmapbuttononpaint}

\func{void}{OnPaint}{\param{wxPaintEvent\&amp; }{event}}

Responds to a paint event.


\membersection{wxNewBitmapButton::OnSize}\label{wxnewbitmapbuttononsize}

\func{void}{OnSize}{\param{wxSizeEvent\&amp; }{event}}

Responds to a size event.


\membersection{wxNewBitmapButton::RenderAllLabelImages}\label{wxnewbitmapbuttonrenderalllabelimages}

\func{void}{RenderAllLabelImages}{\void}

Renders label images.


\membersection{wxNewBitmapButton::RenderLabelImage}\label{wxnewbitmapbuttonrenderlabelimage}

\func{void}{RenderLabelImage}{\param{wxBitmap*\&amp; }{destBmp}, \param{wxBitmap* }{srcBmp}, \param{bool }{isEnabled = TRUE}, \param{bool }{isPressed = FALSE}}

Renders the label image.


\membersection{wxNewBitmapButton::RenderLabelImages}\label{wxnewbitmapbuttonrenderlabelimages}

\func{void}{RenderLabelImages}{\void}

Renders label images.


\membersection{wxNewBitmapButton::Reshape}\label{wxnewbitmapbuttonreshape}

\func{void}{Reshape}{\void}

This function should be called after Create. It renders the labels, having
reloaded the button image if necessary.


\membersection{wxNewBitmapButton::SetAlignments}\label{wxnewbitmapbuttonsetalignments}

\func{void}{SetAlignments}{\param{int }{alignText = NB\_ALIGN\_TEXT\_BOTTOM}, \param{int }{marginX = 2}, \param{int }{marginY = 2}, \param{int }{textToLabelGap = 2}}

Sets the text alignment and margins.


\membersection{wxNewBitmapButton::SetLabel}\label{wxnewbitmapbuttonsetlabel}

\func{void}{SetLabel}{\param{const wxBitmap\&amp; }{labelBitmap}, \param{const wxString\&amp; }{labelText = ""}}

Sets the label and optionally label text.

</pre></body></html>