X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fdc16adf72fbd051d1f4ffdbc8d35d00b3e2837..d9605e634b503651fd349a3d2c6781b2407ea273:/docs/latex/wx/bbutton.tex diff --git a/docs/latex/wx/bbutton.tex b/docs/latex/wx/bbutton.tex index dea75ce925..390898a6f6 100644 --- a/docs/latex/wx/bbutton.tex +++ b/docs/latex/wx/bbutton.tex @@ -31,6 +31,7 @@ the selected state, unpressed focused state, and greyed-out state may be supplie This class supports bitmaps for several different states: \twocolwidtha{5cm} +\begin{twocollist}\itemsep=0pt \twocolitem{\windowstyle{normal}}{This is the bitmap shown in the default state, it must be always valid while all the other bitmaps are optional and don't have to be set.} @@ -40,7 +41,11 @@ to be set.} \twocolitem{\windowstyle{focus}}{Bitmap shown when the button has keyboard focus but is not pressed.} \twocolitem{\windowstyle{hover}}{Bitmap shown when the mouse is over the -button (but it is not pressed).} +button (but it is not pressed). Notice that if hover bitmap is not specified +but the current platform UI uses hover images for the buttons (such as Windows +XP or GTK+), then the focus bitmap is used for hover state as well. This makes +it possible to set focus bitmap only to get reasonably good behaviour on all +platforms.} \end{twocollist} @@ -227,6 +232,21 @@ A reference to the selected state bitmap. \helpref{wxBitmapButton::SetBitmapSelected}{wxbitmapbuttonsetbitmapselected} +\membersection{wxBitmapButton::GetBitmapSelected}\label{wxbitmapbuttongetbitmapselected} + +\constfunc{wxBitmap\&}{GetBitmapSelected}{\void} + +Returns the bitmap for the selected state. + +\wxheading{Return value} + +A reference to the selected state bitmap. + +\wxheading{See also} + +\helpref{wxBitmapButton::SetBitmapSelected}{wxbitmapbuttonsetbitmapselected} + + \membersection{wxBitmapButton::SetBitmapDisabled}\label{wxbitmapbuttonsetbitmapdisabled} \func{void}{SetBitmapDisabled}{\param{const wxBitmap\& }{bitmap}} @@ -312,3 +332,21 @@ Sets the bitmap for the selected (depressed) button appearance. \helpref{wxBitmapButton::SetBitmapFocus}{wxbitmapbuttonsetbitmapfocus},\rtfsp \helpref{wxBitmapButton::SetBitmapDisabled}{wxbitmapbuttonsetbitmapdisabled} + +\membersection{wxBitmapButton::SetBitmapSelected}\label{wxbitmapbuttonsetbitmapselected} + +\func{void}{SetBitmapSelected}{\param{const wxBitmap\& }{bitmap}} + +Sets the bitmap for the selected (depressed) button appearance. + +\wxheading{Parameters} + +\docparam{bitmap}{The bitmap to set.} + +\wxheading{See also} + +\helpref{wxBitmapButton::GetBitmapSelected}{wxbitmapbuttongetbitmapselected},\rtfsp +\helpref{wxBitmapButton::SetBitmapLabel}{wxbitmapbuttonsetbitmaplabel},\rtfsp +\helpref{wxBitmapButton::SetBitmapFocus}{wxbitmapbuttonsetbitmapfocus},\rtfsp +\helpref{wxBitmapButton::SetBitmapDisabled}{wxbitmapbuttonsetbitmapdisabled} +