X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/499b2ed82caa62ec19b400c31aa26be33b1c02d4..209f3e1453dd576919bf1cc8f696218dae23c34b:/contrib/docs/latex/fl/newbitmapbutton.tex diff --git a/contrib/docs/latex/fl/newbitmapbutton.tex b/contrib/docs/latex/fl/newbitmapbutton.tex index ba7282490d..7fe99e4fa6 100644 --- a/contrib/docs/latex/fl/newbitmapbutton.tex +++ b/contrib/docs/latex/fl/newbitmapbutton.tex @@ -1,18 +1,23 @@ % % automatically generated by HelpGen $Revision$ from -% newbmpbtn.h at 05/Jan/02 22:50:57 +% newbmpbtn.h at 21/Jan/02 21:14:19 % \section{\class{wxNewBitmapButton}}\label{wxnewbitmapbutton} -alternative class for wxBmpButton +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} + + + \wxheading{Data structures} \latexignore{\rtfignore{\wxheading{Members}}} @@ -22,116 +27,151 @@ alternative class for wxBmpButton \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}} +Constructor. + \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}} -use this constructor if buttons have to be persistant +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\& }{dc}} +Draws the decorations. + \membersection{wxNewBitmapButton::DrawLabel}\label{wxnewbitmapbuttondrawlabel} \func{void}{DrawLabel}{\param{wxDC\& }{dc}} +Draws the label. + \membersection{wxNewBitmapButton::DrawShade}\label{wxnewbitmapbuttondrawshade} \func{void}{DrawShade}{\param{int }{outerLevel}, \param{wxDC\& }{dc}, \param{wxPen\& }{upperLeftSidePen}, \param{wxPen\& }{lowerRightSidePen}} +Draws shading on the button. + \membersection{wxNewBitmapButton::GetStateLabel}\label{wxnewbitmapbuttongetstatelabel} \func{wxBitmap*}{GetStateLabel}{\void} -returns the label which match the current button state +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\& }{event}} +Responds to an erase background event. + \membersection{wxNewBitmapButton::OnKillFocus}\label{wxnewbitmapbuttononkillfocus} \func{void}{OnKillFocus}{\param{wxFocusEvent\& }{event}} +Responds to a kill focus event. + \membersection{wxNewBitmapButton::OnLButtonDown}\label{wxnewbitmapbuttononlbuttondown} \func{void}{OnLButtonDown}{\param{wxMouseEvent\& }{event}} -event handlers +Responds to a left mouse button down event. \membersection{wxNewBitmapButton::OnLButtonUp}\label{wxnewbitmapbuttononlbuttonup} \func{void}{OnLButtonUp}{\param{wxMouseEvent\& }{event}} +Responds to a left mouse button up event. + \membersection{wxNewBitmapButton::OnMouseMove}\label{wxnewbitmapbuttononmousemove} \func{void}{OnMouseMove}{\param{wxMouseEvent\& }{event}} +Responds to a mouse move event. + \membersection{wxNewBitmapButton::OnPaint}\label{wxnewbitmapbuttononpaint} \func{void}{OnPaint}{\param{wxPaintEvent\& }{event}} +Responds to a paint event. + \membersection{wxNewBitmapButton::OnSize}\label{wxnewbitmapbuttononsize} \func{void}{OnSize}{\param{wxSizeEvent\& }{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*\& }{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} -should be called after Create(); +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\& }{labelBitmap}, \param{const wxString\& }{labelText = ""}} -overridables +Sets the label and optionally label text.