]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/htcontnr.tex
command events are not redirected to focused window
[wxWidgets.git] / docs / latex / wx / htcontnr.tex
CommitLineData
704a4b75
VS
1%
2% automatically generated by HelpGen from
3% htmlcontainercell.tex at 21/Mar/99 22:45:23
4%
5
704a4b75
VS
6\section{\class{wxHtmlContainerCell}}\label{wxhtmlcontainercell}
7
448af9a4 8The wxHtmlContainerCell class is an implementation of a cell that may
22d6efa8 9contain more cells in it. It is heavily used in the wxHTML layout algorithm.
704a4b75
VS
10
11\wxheading{Derived from}
12
13\helpref{wxHtmlCell}{wxhtmlcell}
14
15\wxheading{See Also}
16
17\helpref{Cells Overview}{cells}
18
19\latexignore{\rtfignore{\wxheading{Members}}}
20
704a4b75
VS
21\membersection{wxHtmlContainerCell::wxHtmlContainerCell}\label{wxhtmlcontainercellwxhtmlcontainercell}
22
23\func{}{wxHtmlContainerCell}{\param{wxHtmlContainerCell }{*parent}}
24
25Constructor. {\it parent} is pointer to parent container or NULL.
26
27
559fe022
VS
28\membersection{wxHtmlContainerCell::GetAlignHor}\label{wxhtmlcontainercellgetalignhor}
29
30\constfunc{int}{GetAlignHor}{\void}
31
32Returns container's horizontal alignment.
33
34\membersection{wxHtmlContainerCell::GetAlignVer}\label{wxhtmlcontainercellgetalignver}
35
36\constfunc{int}{GetAlignVer}{\void}
37
38Returns container's vertical alignment.
39
40\membersection{wxHtmlContainerCell::GetFirstCell}\label{wxhtmlcontainercellgetfirstcell}
41
42\func{wxHtmlCell*}{GetFirstCell}{\void}
43
44Returns pointer to the first cell in the list.
45You can then use wxHtmlCell's GetNext method to obtain pointer to the next
46cell in list.
47
448af9a4 48{\bf Note:} This shouldn't be used by the end user. If you need some way of
559fe022
VS
49finding particular cell in the list, try \helpref{Find}{wxhtmlcellfind} method
50instead.
51
52\membersection{wxHtmlContainerCell::GetIndent}\label{wxhtmlcontainercellgetindent}
53
54\constfunc{int}{GetIndent}{\param{int }{ind}}
55
dff873d1 56Returns the indentation. {\it ind} is one of the {\bf wxHTML\_INDENT\_*} constants.
559fe022
VS
57
58{\bf Note:} You must call \helpref{GetIndentUnits}{wxhtmlcontainercellgetindentunits}
59with same {\it ind} parameter in order to correctly interpret the returned integer value.
60It is NOT always in pixels!
61
62\membersection{wxHtmlContainerCell::GetIndentUnits}\label{wxhtmlcontainercellgetindentunits}
63
64\constfunc{int}{GetIndentUnits}{\param{int }{ind}}
65
448af9a4 66Returns the units of indentation for {\it ind} where {\it ind} is one
dff873d1 67of the {\bf wxHTML\_INDENT\_*} constants.
559fe022 68
704a4b75
VS
69\membersection{wxHtmlContainerCell::InsertCell}\label{wxhtmlcontainercellinsertcell}
70
71\func{void}{InsertCell}{\param{wxHtmlCell }{*cell}}
72
73Inserts new cell into the container.
74
559fe022
VS
75\membersection{wxHtmlContainerCell::SetAlign}\label{wxhtmlcontainercellsetalign}
76
77\func{void}{SetAlign}{\param{const wxHtmlTag\& }{tag}}
78
448af9a4 79Sets the container's alignment (both horizontal and vertical) according to
559fe022
VS
80the values stored in {\it tag}. (Tags {\tt ALIGN} parameter is extracted.) In fact
81it is only a front-end to \helpref{SetAlignHor}{wxhtmlcontainercellsetalignhor}
82and \helpref{SetAlignVer}{wxhtmlcontainercellsetalignver}.
83
704a4b75
VS
84\membersection{wxHtmlContainerCell::SetAlignHor}\label{wxhtmlcontainercellsetalignhor}
85
86\func{void}{SetAlignHor}{\param{int }{al}}
87
448af9a4 88Sets the container's {\it horizontal alignment}. During \helpref{Layout}{wxhtmlcelllayout}
704a4b75
VS
89each line is aligned according to {\it al} value.
90
91\wxheading{Parameters}
92
93\docparam{al}{new horizontal alignment. May be one of these values:
94
448af9a4 95\begin{twocollist}\itemsep=0pt
dff873d1
VS
96\twocolitem{{\bf wxHTML\_ALIGN\_LEFT}}{lines are left-aligned (default)}
97\twocolitem{{\bf wxHTML\_ALIGN\_JUSTIFY}}{lines are justified}
98\twocolitem{{\bf wxHTML\_ALIGN\_CENTER}}{lines are centered}
99\twocolitem{{\bf wxHTML\_ALIGN\_RIGHT}}{lines are right-aligned}
704a4b75
VS
100\end{twocollist}
101}
102
704a4b75
VS
103\membersection{wxHtmlContainerCell::SetAlignVer}\label{wxhtmlcontainercellsetalignver}
104
105\func{void}{SetAlignVer}{\param{int }{al}}
106
448af9a4 107Sets the container's {\it vertical alignment}. This is per-line alignment!
704a4b75
VS
108
109\wxheading{Parameters}
110
111\docparam{al}{new vertical alignment. May be one of these values:
112
448af9a4 113\begin{twocollist}\itemsep=0pt
dff873d1
VS
114\twocolitem{{\bf wxHTML\_ALIGN\_BOTTOM}}{cells are over the line (default)}
115\twocolitem{{\bf wxHTML\_ALIGN\_CENTER}}{cells are centered on line}
116\twocolitem{{\bf wxHTML\_ALIGN\_TOP}}{cells are under the line}
704a4b75
VS
117\end{twocollist}
118
605d715d 119\helponly{\image{}{alignv.bmp}}
704a4b75
VS
120}
121
559fe022 122\membersection{wxHtmlContainerCell::SetBackgroundColour}\label{wxhtmlcontainercellsetbackgroundcolour}
704a4b75 123
559fe022 124\func{void}{SetBackgroundColour}{\param{const wxColour\& }{clr}}
704a4b75 125
448af9a4 126Sets the background color for this container.
559fe022
VS
127
128\membersection{wxHtmlContainerCell::SetBorder}\label{wxhtmlcontainercellsetborder}
129
130\func{void}{SetBorder}{\param{const wxColour\& }{clr1}, \param{const wxColour\& }{clr2}}
131
448af9a4 132Sets the border (frame) colours. Border is rectangle around the container.
559fe022
VS
133
134\wxheading{Parameters}
135
136\docparam{clr1}{Color of top and left lines}
137
138\docparam{clr2}{Color of bottom and right lines}
704a4b75 139
704a4b75
VS
140\membersection{wxHtmlContainerCell::SetIndent}\label{wxhtmlcontainercellsetindent}
141
dff873d1 142\func{void}{SetIndent}{\param{int }{i}, \param{int }{what}, \param{int }{units = wxHTML\_UNITS\_PIXELS}}
704a4b75 143
448af9a4 144Sets the indentation (free space between borders of container and subcells).
704a4b75
VS
145
146\wxheading{Parameters}
147
148\docparam{i}{Indentation value.}
149
448af9a4 150\docparam{what}{Determines which of the four borders we're setting. It is OR
704a4b75
VS
151combination of following constants:
152
448af9a4 153\begin{twocollist}\itemsep=0pt
dff873d1
VS
154\twocolitem{{\bf wxHTML\_INDENT\_TOP}}{top border}
155\twocolitem{{\bf wxHTML\_INDENT\_BOTTOM}}{bottom}
156\twocolitem{{\bf wxHTML\_INDENT\_LEFT}}{left}
157\twocolitem{{\bf wxHTML\_INDENT\_RIGHT}}{right}
158\twocolitem{{\bf wxHTML\_INDENT\_HORIZONTAL}}{left and right}
159\twocolitem{{\bf wxHTML\_INDENT\_VERTICAL}}{top and bottom}
160\twocolitem{{\bf wxHTML\_INDENT\_ALL}}{all 4 borders}
704a4b75
VS
161\end{twocollist}
162
605d715d 163\helponly{\image{}{indent.bmp}}
704a4b75
VS
164}
165
166\docparam{units}{Units of {\it i}. This parameter affects interpretation of {\it} value.
167
448af9a4 168\begin{twocollist}\itemsep=0pt
dff873d1
VS
169\twocolitem{{\bf wxHTML\_UNITS\_PIXELS}}{{\it i} is number of pixels}
170\twocolitem{{\bf wxHTML\_UNITS\_PERCENT}}{{\it i} is interpreted as percents of width
704a4b75
VS
171of parent container}
172\end{twocollist}
173}
174
559fe022 175\membersection{wxHtmlContainerCell::SetMinHeight}\label{wxhtmlcontainercellsetminheight}
704a4b75 176
dff873d1 177\func{void}{SetMinHeight}{\param{int }{h}, \param{int }{align = wxHTML\_ALIGN\_TOP}}
704a4b75 178
b32c6ff0 179Sets minimal height of the container.
704a4b75 180
448af9a4 181When container's \helpref{Layout}{wxhtmlcelllayout} is called, m\_Height
559fe022 182is set depending on layout of subcells to the height of area covered
448af9a4 183by layed-out subcells. Calling this method guarantees you that the height
559fe022 184of container is never smaller than {\it h} - even if the subcells cover
448af9a4 185much smaller area.
704a4b75 186
559fe022 187\wxheading{Parameters}
704a4b75 188
559fe022 189\docparam{h}{The minimal height.}
704a4b75 190
448af9a4 191\docparam{align}{If height of the container is lower than the minimum height, empty space must be inserted
dff873d1
VS
192somewhere in order to ensure minimal height. This parameter is one of {\bf wxHTML\_ALIGN\_TOP,
193wxHTML\_ALIGN\_BOTTOM, wxHTML\_ALIGN\_CENTER} constants. It refers to the {\it contents}, not to the
559fe022 194empty place!}
704a4b75
VS
195
196\membersection{wxHtmlContainerCell::SetWidthFloat}\label{wxhtmlcontainercellsetwidthfloat}
197
198\func{void}{SetWidthFloat}{\param{int }{w}, \param{int }{units}}
199
605d715d 200\func{void}{SetWidthFloat}{\param{const wxHtmlTag\& }{tag}, \param{double }{pixel\_scale = 1.0}}
704a4b75 201
b32c6ff0 202Sets floating width adjustment.
704a4b75 203
b32c6ff0 204The normal behaviour of container is that its width is the same as the width of
704a4b75
VS
205parent container (and thus you can have only one sub-container per line).
206You can change this by setting FWA.
207
605d715d 208{\it pixel\_scale} is number of real pixels that equals to 1 HTML pixel.
edbd0635 209
704a4b75
VS
210\wxheading{Parameters}
211
212\docparam{w}{Width of the container. If the value is negative it means
b32c6ff0 213complement to full width of parent container (e.g.
dff873d1 214{\tt SetWidthFloat(-50, wxHTML\_UNITS\_PIXELS)} sets the width
704a4b75
VS
215of container to parent's width minus 50 pixels. This is useful when
216creating tables - you can call SetWidthFloat(50) and SetWidthFloat(-50))}
217
448af9a4 218\docparam{units}{Units of {\it w} This parameter affects the interpretation of {\it} value.
704a4b75 219
448af9a4 220\begin{twocollist}\itemsep=0pt
dff873d1
VS
221\twocolitem{{\bf wxHTML\_UNITS\_PIXELS}}{{\it w} is number of pixels}
222\twocolitem{{\bf wxHTML\_UNITS\_PERCENT}}{{\it w} is interpreted as percents of width
704a4b75
VS
223of parent container}
224\end{twocollist}
225}
226
227\docparam{tag}{In the second version of method, {\it w} and {\it units}
228info is extracted from tag's {\tt WIDTH} parameter.}
229
b32c6ff0
RD
230\pythonnote{The second form of this method is named
231SetWidthFloatFromTag in wxPython.}
232
233
234
235
236
237
238
239