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