2002-01-05 17:59:59 -05:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen $Revision$ from
|
2002-01-21 17:34:42 -05:00
|
|
|
% newbmpbtn.h at 21/Jan/02 21:14:19
|
2002-01-05 17:59:59 -05:00
|
|
|
%
|
|
|
|
|
|
|
|
|
|
|
|
\section{\class{wxNewBitmapButton}}\label{wxnewbitmapbutton}
|
|
|
|
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
This is an alternative class to wxBitmapButton. It is used
|
|
|
|
in the implementation of dynamic toolbars.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxPanel}{wxpanel}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
2002-01-31 15:57:31 -05:00
|
|
|
<wx/fl/newbmpbtn.h>
|
2002-01-21 17:34:42 -05:00
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
\wxheading{Data structures}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::wxNewBitmapButton}\label{wxnewbitmapbuttonwxnewbitmapbutton}
|
|
|
|
|
|
|
|
\func{}{wxNewBitmapButton}{\param{const wxBitmap\& }{labelBitmap = wxNullBitmap}, \param{const wxString\& }{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}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Constructor.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\func{}{wxNewBitmapButton}{\param{const wxString\& }{bitmapFileName}, \param{const wxBitmapType }{bitmapFileType = wxBITMAP\_TYPE\_BMP}, \param{const wxString\& }{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}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Use this constructor if buttons have to be persistant
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::\destruct{wxNewBitmapButton}}\label{wxnewbitmapbuttondtor}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxNewBitmapButton}}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Destructor.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::DestroyLabels}\label{wxnewbitmapbuttondestroylabels}
|
|
|
|
|
|
|
|
\func{void}{DestroyLabels}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Internal function for destroying labels.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::DrawDecorations}\label{wxnewbitmapbuttondrawdecorations}
|
|
|
|
|
|
|
|
\func{void}{DrawDecorations}{\param{wxDC\& }{dc}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Draws the decorations.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::DrawLabel}\label{wxnewbitmapbuttondrawlabel}
|
|
|
|
|
|
|
|
\func{void}{DrawLabel}{\param{wxDC\& }{dc}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Draws the label.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::DrawShade}\label{wxnewbitmapbuttondrawshade}
|
|
|
|
|
|
|
|
\func{void}{DrawShade}{\param{int }{outerLevel}, \param{wxDC\& }{dc}, \param{wxPen\& }{upperLeftSidePen}, \param{wxPen\& }{lowerRightSidePen}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Draws shading on the button.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::GetStateLabel}\label{wxnewbitmapbuttongetstatelabel}
|
|
|
|
|
|
|
|
\func{wxBitmap*}{GetStateLabel}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the label that matches the current button state.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::IsInWindow}\label{wxnewbitmapbuttonisinwindow}
|
|
|
|
|
|
|
|
\func{bool}{IsInWindow}{\param{int }{x}, \param{int }{y}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns TRUE if the given point is in the window.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::OnEraseBackground}\label{wxnewbitmapbuttononerasebackground}
|
|
|
|
|
|
|
|
\func{void}{OnEraseBackground}{\param{wxEraseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to an erase background event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::OnKillFocus}\label{wxnewbitmapbuttononkillfocus}
|
|
|
|
|
|
|
|
\func{void}{OnKillFocus}{\param{wxFocusEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to a kill focus event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::OnLButtonDown}\label{wxnewbitmapbuttononlbuttondown}
|
|
|
|
|
|
|
|
\func{void}{OnLButtonDown}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to a left mouse button down event.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::OnLButtonUp}\label{wxnewbitmapbuttononlbuttonup}
|
|
|
|
|
|
|
|
\func{void}{OnLButtonUp}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to a left mouse button up event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::OnMouseMove}\label{wxnewbitmapbuttononmousemove}
|
|
|
|
|
|
|
|
\func{void}{OnMouseMove}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to a mouse move event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::OnPaint}\label{wxnewbitmapbuttononpaint}
|
|
|
|
|
|
|
|
\func{void}{OnPaint}{\param{wxPaintEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to a paint event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::OnSize}\label{wxnewbitmapbuttononsize}
|
|
|
|
|
|
|
|
\func{void}{OnSize}{\param{wxSizeEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to a size event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::RenderAllLabelImages}\label{wxnewbitmapbuttonrenderalllabelimages}
|
|
|
|
|
|
|
|
\func{void}{RenderAllLabelImages}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Renders label images.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::RenderLabelImage}\label{wxnewbitmapbuttonrenderlabelimage}
|
|
|
|
|
|
|
|
\func{void}{RenderLabelImage}{\param{wxBitmap*\& }{destBmp}, \param{wxBitmap* }{srcBmp}, \param{bool }{isEnabled = TRUE}, \param{bool }{isPressed = FALSE}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Renders the label image.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::RenderLabelImages}\label{wxnewbitmapbuttonrenderlabelimages}
|
|
|
|
|
|
|
|
\func{void}{RenderLabelImages}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Renders label images.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::Reshape}\label{wxnewbitmapbuttonreshape}
|
|
|
|
|
|
|
|
\func{void}{Reshape}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
This function should be called after Create. It renders the labels, having
|
|
|
|
reloaded the button image if necessary.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\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}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Sets the text alignment and margins.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxNewBitmapButton::SetLabel}\label{wxnewbitmapbuttonsetlabel}
|
|
|
|
|
|
|
|
\func{void}{SetLabel}{\param{const wxBitmap\& }{labelBitmap}, \param{const wxString\& }{labelText = ""}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Sets the label and optionally label text.
|
2002-01-05 17:59:59 -05:00
|
|
|
|