]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/sizeevt.tex
remove C++ comment
[wxWidgets.git] / docs / latex / wx / sizeevt.tex
CommitLineData
3dd9b88a
VZ
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: sizeevt.tex
8443e0d2 3%% Purpose: wxSizeEvent documentation
fc2171bd 4%% Author: wxWidgets team
3dd9b88a
VZ
5%% Modified by:
6%% Created:
7%% RCS-ID: $Id$
fc2171bd 8%% Copyright: (c) wxWidgets team
8795498c 9%% License: wxWindows license
3dd9b88a 10%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3dd9b88a 11
a660d684
KB
12\section{\class{wxSizeEvent}}\label{wxsizeevent}
13
14A size event holds information about size change events.
15
f4fcc291
JS
16The EVT\_SIZE handler function will be called when the window has been resized.
17
18You may wish to use this for frames to resize their child windows as appropriate.
19
20Note that the size passed is of
21the whole window: call \helpref{wxWindow::GetClientSize}{wxwindowgetclientsize} for the area which may be
22used by the application.
23
24When a window is resized, usually only a small part of the window is damaged and you
25may only need to repaint that area. However, if your drawing depends on the size of the window,
26you may need to clear the DC explicitly and repaint the whole window. In which case, you
27may need to call \helpref{wxWindow::Refresh}{wxwindowrefresh} to invalidate the entire window.
28
a660d684
KB
29\wxheading{Derived from}
30
31\helpref{wxEvent}{wxevent}\\
32\helpref{wxObject}{wxobject}
33
954b8ae6
JS
34\wxheading{Include files}
35
36<wx/event.h>
37
a7af285d
VZ
38\wxheading{Library}
39
40\helpref{wxCore}{librarieslist}
41
a660d684
KB
42\wxheading{Event table macros}
43
44To process a size event, use this event handler macro to direct input to a member
45function that takes a wxSizeEvent argument.
46
47\twocolwidtha{7cm}
48\begin{twocollist}\itemsep=0pt
49\twocolitem{{\bf EVT\_SIZE(func)}}{Process a wxEVT\_SIZE event.}
50\end{twocollist}%
51
52\wxheading{See also}
53
3dd9b88a
VZ
54\helpref{wxSize}{wxsize},\rtfsp
55\helpref{Event handling overview}{eventhandlingoverview}
a660d684
KB
56
57\latexignore{\rtfignore{\wxheading{Members}}}
58
08f1d438 59\membersection{wxSizeEvent::wxSizeEvent}\label{wxsizeeventctor}
a660d684
KB
60
61\func{}{wxSizeEvent}{\param{const wxSize\& }{sz}, \param{int }{id = 0}}
62
63Constructor.
64
65\membersection{wxSizeEvent::GetSize}\label{wxsizeeventgetsize}
66
67\constfunc{wxSize}{GetSize}{\void}
68
69Returns the entire size of the window generating the size change event.
70