X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b67a86d57493137cb1f7cce8ca8daf0b7120207e..85136e3bf5dadf921652519e71da5db351fb3194:/docs/latex/wx/animatctrl.tex

diff --git a/docs/latex/wx/animatctrl.tex b/docs/latex/wx/animatctrl.tex
index 37036af48d..7a4dbf488b 100644
--- a/docs/latex/wx/animatctrl.tex
+++ b/docs/latex/wx/animatctrl.tex
@@ -30,11 +30,15 @@ It is only available if \texttt{wxUSE\_ANIMATIONCTRL} is set to $1$ (the default
 
 <wx/animate.h>
 
+\wxheading{Library}
+
+\helpref{wxAdv}{librarieslist}
+
 \wxheading{Window styles}
 
 \twocolwidtha{5cm}%
 \begin{twocollist}\itemsep=0pt
-\twocolitem{\windowstyle{wxAC\_DEFAULT\_STYLE}}{The default style: wxNO\_BORDER.}
+\twocolitem{\windowstyle{wxAC\_DEFAULT\_STYLE}}{The default style: wxBORDER\_NONE.}
 \twocolitem{\windowstyle{wxAC\_NO\_AUTORESIZE}}{By default, the control will adjust
 its size to exactly fit to the size of the animation when \helpref{SetAnimation}{wxanimationctrlsetanimation}
 is called. If this style flag is given, the control will not change its size}
@@ -54,7 +58,7 @@ is called. If this style flag is given, the control will not change its size}
 
 \latexignore{\rtfignore{\wxheading{Members}}}
 
-\membersection{wxAnimationCtrl::wxAnimationCtrl}\label{wxanimationctrl}
+\membersection{wxAnimationCtrl::wxAnimationCtrl}\label{wxanimationctrlctor}
 
 \func{}{wxAnimationCtrl}{\param{wxWindow *}{parent},\rtfsp
 \param{wxWindowID}{ id},\rtfsp
@@ -78,9 +82,13 @@ all the parameters.
 \param{long}{ style = wxAC\_DEFAULT\_STYLE},\rtfsp
 \param{const wxString\& }{name = ``animationctrl"}}
 
+After control creation you must explicitely call \helpref{Play}{wxanimationctrlplay}
+to start to play the animation. Until that function won't be called, the first frame
+of the animation is displayed.
+
 \wxheading{Parameters}
 
-\docparam{parent}{Parent window, must not be non-\texttt{NULL}.}
+\docparam{parent}{Parent window, must be non-\NULL.}
 
 \docparam{id}{The identifier for the control.}
 
@@ -94,9 +102,6 @@ all the parameters.
 
 \docparam{name}{Control name.}
 
-After control creation you must explicitely call \helpref{Play}{wxanimationctrlplay}
-to start to play the animation. Until that function won't be called, the first frame
-of the animation is displayed.
 
 \wxheading{Return value}
 
@@ -110,6 +115,14 @@ of the animation is displayed.
 Returns the animation associated with this control.
 
 
+\membersection{wxAnimationCtrl::GetInactiveBitmap}\label{wxanimationctrlgetinactivebitmap}
+
+\constfunc{wxBitmap}{GetInactiveBitmap}{\void}
+
+Returns the inactive bitmap shown in this control when the;
+see \helpref{SetInactiveBitmap}{wxanimationctrlsetinactivebitmap} for more info.
+
+
 \membersection{wxAnimationCtrl::IsPlaying}\label{wxanimationctrlisplaying}
 
 \constfunc{bool}{IsPlaying}{\void}
@@ -132,7 +145,7 @@ See \helpref{wxAnimation::LoadFile}{wxanimationloadfile} for more info.
 Starts playing the animation.
 The animation is always played in loop mode (unless the last frame of the animation
 has an infinite delay time) and always start from the first frame
-(even if you \helpref{atopped}{wxanimationctrlstop} it while some other frame was
+(even if you \helpref{stopped}{wxanimationctrlstop} it while some other frame was
 displayed).
 
 
@@ -143,11 +156,27 @@ displayed).
 Sets the animation to play in this control.
 If the previous animation is being played, it's \helpref{Stopped}{wxanimationctrlstop}.
 
-Until \helpref{Play}{wxanimationctrlplay} isn't called, the first frame
-of the animation is displayed.
+Until \helpref{Play}{wxanimationctrlplay} isn't called, a static image, the first
+frame of the given animation or the background colour will be shown
+(see \helpref{SetInactiveBitmap}{wxanimationctrlsetinactivebitmap} for more info).
+
+
+\membersection{wxAnimationCtrl::SetInactiveBitmap}\label{wxanimationctrlsetinactivebitmap}
+
+\func{void}{SetInactiveBitmap}{\param{const wxBitmap\& }{bmp}}
+
+Sets the bitmap to show on the control when it's not playing an animation.
+If you set as inactive bitmap {\tt wxNullBitmap} (which is the default), then the
+first frame of the animation is instead shown when the control is inactive; in this case,
+if there's no valid animation associated with the control (see \helpref{SetAnimation}{wxanimationctrlsetanimation}),
+then the background colour of the window is shown.
+
+If the control is not playing the animation, the given bitmap will be immediately
+shown, otherwise it will be shown as soon as \helpref{Stop}{wxanimationctrlstop}
+is called.
 
-If {\tt wxNullAnimation} is given as animation, the control will be cleared to display
-the background colour (see \helpref{wxWindow::GetBackgroundColour}{wxwindowgetbackgroundcolour}).
+Note that the inactive bitmap, if smaller than the control's size, will be centered in
+the control; if bigger, it will be stretched to fit it.
 
 
 \membersection{wxAnimationCtrl::Stop}\label{wxanimationctrlstop}
@@ -155,5 +184,7 @@ the background colour (see \helpref{wxWindow::GetBackgroundColour}{wxwindowgetba
 \func{void}{Stop}{\void}
 
 Stops playing the animation.
-The control will show the last frame rendered of the current animation until \helpref{Play}{wxanimationctrlplay} is called.
+The control will show the first frame of the animation, a custom static image or
+the window's background colour as specified by the
+last \helpref{SetInactiveBitmap}{wxanimationctrlsetinactivebitmap} call.
 
