2 % automatically generated by HelpGen $Revision$ from
3 % newbmpbtn.h at 21/Jan/02 21:14:19
7 \section{\class{wxNewBitmapButton
}}\label{wxnewbitmapbutton
}
10 This is an alternative class to wxBitmapButton. It is used
11 in the implementation of dynamic toolbars.
13 \wxheading{Derived from
}
15 \helpref{wxPanel
}{wxpanel
}
17 \wxheading{Include files
}
21 \wxheading{Data structures
}
23 \latexignore{\rtfignore{\wxheading{Members
}}}
26 \membersection{wxNewBitmapButton::wxNewBitmapButton
}\label{wxnewbitmapbuttonwxnewbitmapbutton
}
28 \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
}}
33 \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
}}
35 Use this constructor if buttons have to be persistant
38 \membersection{wxNewBitmapButton::
\destruct{wxNewBitmapButton
}}\label{wxnewbitmapbuttondtor
}
40 \func{}{\destruct{wxNewBitmapButton
}}{\void}
45 \membersection{wxNewBitmapButton::DestroyLabels
}\label{wxnewbitmapbuttondestroylabels
}
47 \func{void
}{DestroyLabels
}{\void}
49 Internal function for destroying labels.
52 \membersection{wxNewBitmapButton::DrawDecorations
}\label{wxnewbitmapbuttondrawdecorations
}
54 \func{void
}{DrawDecorations
}{\param{wxDC\&
}{dc
}}
56 Draws the decorations.
59 \membersection{wxNewBitmapButton::DrawLabel
}\label{wxnewbitmapbuttondrawlabel
}
61 \func{void
}{DrawLabel
}{\param{wxDC\&
}{dc
}}
66 \membersection{wxNewBitmapButton::DrawShade
}\label{wxnewbitmapbuttondrawshade
}
68 \func{void
}{DrawShade
}{\param{int
}{outerLevel
},
\param{wxDC\&
}{dc
},
\param{wxPen\&
}{upperLeftSidePen
},
\param{wxPen\&
}{lowerRightSidePen
}}
70 Draws shading on the button.
73 \membersection{wxNewBitmapButton::GetStateLabel
}\label{wxnewbitmapbuttongetstatelabel
}
75 \func{wxBitmap*
}{GetStateLabel
}{\void}
77 Returns the label that matches the current button state.
80 \membersection{wxNewBitmapButton::IsInWindow
}\label{wxnewbitmapbuttonisinwindow
}
82 \func{bool
}{IsInWindow
}{\param{int
}{x
},
\param{int
}{y
}}
84 Returns TRUE if the given point is in the window.
87 \membersection{wxNewBitmapButton::OnEraseBackground
}\label{wxnewbitmapbuttononerasebackground
}
89 \func{void
}{OnEraseBackground
}{\param{wxEraseEvent\&
}{event
}}
91 Responds to an erase background event.
94 \membersection{wxNewBitmapButton::OnKillFocus
}\label{wxnewbitmapbuttononkillfocus
}
96 \func{void
}{OnKillFocus
}{\param{wxFocusEvent\&
}{event
}}
98 Responds to a kill focus event.
101 \membersection{wxNewBitmapButton::OnLButtonDown
}\label{wxnewbitmapbuttononlbuttondown
}
103 \func{void
}{OnLButtonDown
}{\param{wxMouseEvent\&
}{event
}}
105 Responds to a left mouse button down event.
108 \membersection{wxNewBitmapButton::OnLButtonUp
}\label{wxnewbitmapbuttononlbuttonup
}
110 \func{void
}{OnLButtonUp
}{\param{wxMouseEvent\&
}{event
}}
112 Responds to a left mouse button up event.
115 \membersection{wxNewBitmapButton::OnMouseMove
}\label{wxnewbitmapbuttononmousemove
}
117 \func{void
}{OnMouseMove
}{\param{wxMouseEvent\&
}{event
}}
119 Responds to a mouse move event.
122 \membersection{wxNewBitmapButton::OnPaint
}\label{wxnewbitmapbuttononpaint
}
124 \func{void
}{OnPaint
}{\param{wxPaintEvent\&
}{event
}}
126 Responds to a paint event.
129 \membersection{wxNewBitmapButton::OnSize
}\label{wxnewbitmapbuttononsize
}
131 \func{void
}{OnSize
}{\param{wxSizeEvent\&
}{event
}}
133 Responds to a size event.
136 \membersection{wxNewBitmapButton::RenderAllLabelImages
}\label{wxnewbitmapbuttonrenderalllabelimages
}
138 \func{void
}{RenderAllLabelImages
}{\void}
140 Renders label images.
143 \membersection{wxNewBitmapButton::RenderLabelImage
}\label{wxnewbitmapbuttonrenderlabelimage
}
145 \func{void
}{RenderLabelImage
}{\param{wxBitmap*\&
}{destBmp
},
\param{wxBitmap*
}{srcBmp
},
\param{bool
}{isEnabled = TRUE
},
\param{bool
}{isPressed = FALSE
}}
147 Renders the label image.
150 \membersection{wxNewBitmapButton::RenderLabelImages
}\label{wxnewbitmapbuttonrenderlabelimages
}
152 \func{void
}{RenderLabelImages
}{\void}
154 Renders label images.
157 \membersection{wxNewBitmapButton::Reshape
}\label{wxnewbitmapbuttonreshape
}
159 \func{void
}{Reshape
}{\void}
161 This function should be called after Create. It renders the labels, having
162 reloaded the button image if necessary.
165 \membersection{wxNewBitmapButton::SetAlignments
}\label{wxnewbitmapbuttonsetalignments
}
167 \func{void
}{SetAlignments
}{\param{int
}{alignText = NB
\_ALIGN\_TEXT\_BOTTOM},
\param{int
}{marginX =
2},
\param{int
}{marginY =
2},
\param{int
}{textToLabelGap =
2}}
169 Sets the text alignment and margins.
172 \membersection{wxNewBitmapButton::SetLabel
}\label{wxnewbitmapbuttonsetlabel
}
174 \func{void
}{SetLabel
}{\param{const wxBitmap\&
}{labelBitmap
},
\param{const wxString\&
}{labelText = ""
}}
176 Sets the label and optionally label text.