]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/hthlpfrm.tex
Added logic, API and docs for wxDataViewModel::HasDefaultCompare indicating a compare...
[wxWidgets.git] / docs / latex / wx / hthlpfrm.tex
CommitLineData
09397bc6
VS
1%
2% automatically generated by HelpGen from
3% helpfrm.h at 24/Oct/99 18:03:10
4%
5
3755cfa6
JS
6\section{\class{wxHtmlHelpDialog}}\label{wxhtmlhelpdialog}
7
8This class is used by \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller}
9to display help.
10It is an internal class and should not be used directly - except for the case
11when you're writing your own HTML help controller.
12
13\wxheading{Derived from}
14
7376079d
VZ
15\helpref{wxFrame}{wxframe}\\
16\helpref{wxTopLevelWindow}{wxtoplevelwindow}\\
17\helpref{wxWindow}{wxwindow}\\
18\helpref{wxEvtHandler}{wxevthandler}\\
19\helpref{wxObject}{wxobject}
3755cfa6
JS
20
21\wxheading{Include files}
22
23<wx/html/helpdlg.h>
24
a7af285d
VZ
25\wxheading{Library}
26
27\helpref{wxHtml}{librarieslist}
28
3755cfa6
JS
29\latexignore{\rtfignore{\wxheading{Members}}}
30
31\membersection{wxHtmlHelpDialog::wxHtmlHelpDialog}\label{wxhtmlhelpdialogwxhtmlhelpdialog}
32
33\func{}{wxHtmlHelpDialog}{\param{wxHtmlHelpData* }{data = NULL}}
34
35\func{}{wxHtmlHelpDialog}{\param{wxWindow* }{parent}, \param{int }{wxWindowID}, \param{const wxString\& }{title = wxEmptyString}, \param{int }{style = wxHF\_DEFAULT\_STYLE}, \param{wxHtmlHelpData* }{data = NULL}}
36
37Constructor. For the values of {\it style}, please see the documentation for \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller}.
38
39\membersection{wxHtmlHelpDialog::AddToolbarButtons}\label{wxhtmlhelpdialogaddtoolbarbuttons}
40
41\func{virtual void}{AddToolbarButtons}{\param{wxToolBar *}{toolBar}, \param{int }{style}}
42
43You may override this virtual method to add more buttons to the help window's
44toolbar. {\it toolBar} is a pointer to the toolbar and {\it style} is the style
45flag as passed to the Create method.
46
47wxToolBar::Realize is called immediately after returning from this function.
48
49\membersection{wxHtmlHelpDialog::Create}\label{wxhtmlhelpdialogcreate}
50
51\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{const wxString\& }{title = wxEmptyString}, \param{int }{style = wxHF\_DEFAULT\_STYLE}}
52
53Creates the dialog. See \helpref{the constructor}{wxhtmlhelpdialogwxhtmlhelpdialog}
54for a description of the parameters.
55
56\membersection{wxHtmlHelpDialog::GetController}\label{wxhtmlhelpdialoggetcontroller}
57
58\constfunc{wxHtmlHelpController* }{GetController}{\void}
59
60Returns the help controller associated with the dialog.
61
62\membersection{wxHtmlHelpDialog::ReadCustomization}\label{wxhtmlhelpdialogreadcustomization}
63
64\func{void}{ReadCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
65
66Reads the user's settings for this dialog see \helpref{wxHtmlHelpController::ReadCustomization}{wxhtmlhelpcontrollerreadcustomization})
67
68\membersection{wxHtmlHelpDialog::SetController}\label{wxhtmlhelpdialogsetcontroller}
69
70\func{void}{SetController}{\param{wxHtmlHelpController* }{contoller}}
71
72Sets the help controller associated with the dialog.
73
74\membersection{wxHtmlHelpDialog::SetTitleFormat}\label{wxhtmlhelpdialogsettitleformat}
75
76\func{void}{SetTitleFormat}{\param{const wxString\& }{format}}
77
78Sets the dialog's title format. {\it format} must contain exactly one "\%s"
79(it will be replaced by the page title).
80
81\membersection{wxHtmlHelpDialog::WriteCustomization}\label{wxhtmlhelpdialogwritecustomization}
82
83\func{void}{WriteCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
84
85Saves the user's settings for this dialog (see \helpref{wxHtmlHelpController::WriteCustomization}{wxhtmlhelpcontrollerwritecustomization}).
86
09397bc6
VS
87\section{\class{wxHtmlHelpFrame}}\label{wxhtmlhelpframe}
88
7b28757f 89This class is used by \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller}
09397bc6 90to display help.
457e6c54
JS
91It is an internal class and should not be used directly - except for the case
92when you're writing your own HTML help controller.
09397bc6
VS
93
94\wxheading{Derived from}
95
7376079d
VZ
96\helpref{wxFrame}{wxframe}\\
97\helpref{wxTopLevelWindow}{wxtoplevelwindow}\\
98\helpref{wxWindow}{wxwindow}\\
99\helpref{wxEvtHandler}{wxevthandler}\\
100\helpref{wxObject}{wxobject}
09397bc6 101
9704b250
VS
102\wxheading{Include files}
103
104<wx/html/helpfrm.h>
105
a7af285d
VZ
106\wxheading{Library}
107
108\helpref{wxHtml}{librarieslist}
109
09397bc6
VS
110\latexignore{\rtfignore{\wxheading{Members}}}
111
09397bc6
VS
112\membersection{wxHtmlHelpFrame::wxHtmlHelpFrame}\label{wxhtmlhelpframewxhtmlhelpframe}
113
114\func{}{wxHtmlHelpFrame}{\param{wxHtmlHelpData* }{data = NULL}}
115
576507e2 116\func{}{wxHtmlHelpFrame}{\param{wxWindow* }{parent}, \param{int }{wxWindowID}, \param{const wxString\& }{title = wxEmptyString}, \param{int }{style = wxHF\_DEFAULT\_STYLE}, \param{wxHtmlHelpData* }{data = NULL}}
09397bc6 117
3755cfa6
JS
118Constructor. For the values of {\it style}, please see the documentation for \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller}.
119
120\membersection{wxHtmlHelpFrame::AddToolbarButtons}\label{wxhtmlhelpframeaddtoolbarbuttons}
121
122\func{virtual void}{AddToolbarButtons}{\param{wxToolBar *}{toolBar}, \param{int }{style}}
123
124You may override this virtual method to add more buttons to the help window's
125toolbar. {\it toolBar} is a pointer to the toolbar and {\it style} is the style
126flag as passed to the Create method.
09397bc6 127
3755cfa6 128wxToolBar::Realize is called immediately after returning from this function.
09397bc6 129
09397bc6
VS
130\membersection{wxHtmlHelpFrame::Create}\label{wxhtmlhelpframecreate}
131
576507e2 132\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{const wxString\& }{title = wxEmptyString}, \param{int }{style = wxHF\_DEFAULT\_STYLE}}
09397bc6 133
576507e2 134Creates the frame. See \helpref{the constructor}{wxhtmlhelpframewxhtmlhelpframe}
3755cfa6
JS
135for a description of the parameters.
136
137\membersection{wxHtmlHelpFrame::GetController}\label{wxhtmlhelpframegetcontroller}
138
139\constfunc{wxHtmlHelpController* }{GetController}{\void}
140
141Returns the help controller associated with the frame.
142
143\membersection{wxHtmlHelpFrame::ReadCustomization}\label{wxhtmlhelpframereadcustomization}
144
145\func{void}{ReadCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
146
147Reads the user's settings for this frame see \helpref{wxHtmlHelpController::ReadCustomization}{wxhtmlhelpcontrollerreadcustomization})
09397bc6 148
3755cfa6
JS
149\membersection{wxHtmlHelpFrame::SetController}\label{wxhtmlhelpframesetcontroller}
150
151\func{void}{SetController}{\param{wxHtmlHelpController* }{contoller}}
152
153Sets the help controller associated with the frame.
154
155\membersection{wxHtmlHelpFrame::SetTitleFormat}\label{wxhtmlhelpframesettitleformat}
156
157\func{void}{SetTitleFormat}{\param{const wxString\& }{format}}
158
159Sets the frame's title format. {\it format} must contain exactly one "\%s"
160(it will be replaced by the page title).
161
162\membersection{wxHtmlHelpFrame::WriteCustomization}\label{wxhtmlhelpframewritecustomization}
163
164\func{void}{WriteCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
165
166Saves the user's settings for this frame (see \helpref{wxHtmlHelpController::WriteCustomization}{wxhtmlhelpcontrollerwritecustomization}).
167
168\section{\class{wxHtmlHelpWindow}}\label{wxhtmlhelpwindow}
169
170This class is used by \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller}
171to display help within a frame or dialog, but you can use it yourself to create an embedded HTML help window.
172
173For example:
174
175\begin{verbatim}
176 // m_embeddedHelpWindow is a wxHtmlHelpWindow
177 // m_embeddedHtmlHelp is a wxHtmlHelpController
178
179 // Create embedded HTML Help window
180 m_embeddedHelpWindow = new wxHtmlHelpWindow;
181 m_embeddedHtmlHelp.UseConfig(config, rootPath); // Set your own config object here
182 m_embeddedHtmlHelp.SetHelpWindow(m_embeddedHelpWindow);
183 m_embeddedHelpWindow->Create(this,
0a42e3b6 184 wxID_ANY, wxDefaultPosition, GetClientSize(), wxTAB_TRAVERSAL|wxBORDER_NONE, wxHF_DEFAULT_STYLE);
3755cfa6
JS
185 m_embeddedHtmlHelp.AddBook(wxFileName(_T("doc.zip")));
186\end{verbatim}
187
188You should pass the style wxHF\_EMBEDDED to the style parameter of wxHtmlHelpController to allow
189the embedded window to be destroyed independently of the help controller.
190
191\wxheading{Derived from}
192
7376079d
VZ
193\helpref{wxWindow}{wxwindow}\\
194\helpref{wxEvtHandler}{wxevthandler}\\
195\helpref{wxObject}{wxobject}
3755cfa6
JS
196
197\wxheading{Include files}
198
f3e156ef 199<wx/html/helpwnd.h>
3755cfa6 200
a7af285d
VZ
201\wxheading{Library}
202
203\helpref{wxHtml}{librarieslist}
204
3755cfa6
JS
205\latexignore{\rtfignore{\wxheading{Members}}}
206
207\membersection{wxHtmlHelpWindow::wxHtmlHelpWindow}\label{wxhtmlhelpwindowwxhtmlhelpwindow}
208
209\func{}{wxHtmlHelpWindow}{\param{wxHtmlHelpData* }{data = NULL}}
210
0a42e3b6 211\func{}{wxHtmlHelpWindow}{\param{wxWindow* }{parent}, \param{int }{wxWindowID}, \param{const wxPoint\&}{ pos = wxDefaultPosition}, \param{const wxSize\&}{ pos = wxDefaultSize}, \param{int }{style = wxTAB\_TRAVERSAL|wxBORDER\_NONE}, \param{int }{helpStyle = wxHF\_DEFAULT\_STYLE}, \param{wxHtmlHelpData* }{data = NULL}}
3755cfa6
JS
212
213Constructor.
214
df794ecc 215Constructor. For the values of {\it helpStyle}, please see the documentation for \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller}.
3755cfa6
JS
216
217\membersection{wxHtmlHelpWindow::Create}\label{wxhtmlhelpwindowcreate}
218
0a42e3b6 219\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{const wxPoint\&}{ pos = wxDefaultPosition}, \param{const wxSize\&}{ pos = wxDefaultSize}, \param{int }{style = wxTAB\_TRAVERSAL|wxBORDER\_NONE}, \param{int }{helpStyle = wxHF\_DEFAULT\_STYLE}, \param{wxHtmlHelpData* }{data = NULL}}
3755cfa6 220
df794ecc 221Creates the help window. See \helpref{the constructor}{wxhtmlhelpwindowwxhtmlhelpwindow}
3755cfa6
JS
222for a description of the parameters.
223
224\membersection{wxHtmlHelpWindow::CreateContents}\label{wxhtmlhelpwindowcreatecontents}
09397bc6 225
f6e9a818 226\func{void}{CreateContents}{\void}
09397bc6
VS
227
228Creates contents panel. (May take some time.)
229
f6e9a818
RN
230Protected.
231
3755cfa6 232\membersection{wxHtmlHelpWindow::CreateIndex}\label{wxhtmlhelpwindowcreateindex}
09397bc6 233
f6e9a818 234\func{void}{CreateIndex}{\void}
09397bc6
VS
235
236Creates index panel. (May take some time.)
237
f6e9a818
RN
238Protected.
239
3755cfa6 240\membersection{wxHtmlHelpWindow::CreateSearch}\label{wxhtmlhelpwindowcreatesearch}
09397bc6
VS
241
242\func{void}{CreateSearch}{\void}
243
244Creates search panel.
245
3755cfa6 246\membersection{wxHtmlHelpWindow::Display}\label{wxhtmlhelpwindowdisplay}
09397bc6
VS
247
248\func{bool}{Display}{\param{const wxString\& }{x}}
249
250\func{bool}{Display}{\param{const int }{id}}
251
457e6c54 252Displays page x. If not found it will give the user the choice of
09397bc6
VS
253searching books.
254Looking for the page runs in these steps:
457e6c54
JS
255
256\begin{enumerate}\itemsep=0pt
257\item try to locate file named x (if x is for example "doc/howto.htm")
258\item try to open starting page of book x
259\item try to find x in contents (if x is for example "How To ...")
260\item try to find x in index (if x is for example "How To ...")
261\end{enumerate}
09397bc6
VS
262
263The second form takes numeric ID as the parameter.
264(uses extension to MS format, <param name="ID" value=id>)
265
b32c6ff0
RD
266\pythonnote{The second form of this method is named DisplayId in
267wxPython.}
268
3755cfa6 269\membersection{wxHtmlHelpWindow::DisplayContents}\label{wxhtmlhelpwindowdisplaycontents}
09397bc6
VS
270
271\func{bool}{DisplayContents}{\void}
272
273Displays contents panel.
274
3755cfa6 275\membersection{wxHtmlHelpWindow::DisplayIndex}\label{wxhtmlhelpwindowdisplayindex}
09397bc6
VS
276
277\func{bool}{DisplayIndex}{\void}
278
279Displays index panel.
280
3755cfa6 281\membersection{wxHtmlHelpWindow::GetData}\label{wxhtmlhelpwindowgetdata}
09397bc6
VS
282
283\func{wxHtmlHelpData*}{GetData}{\void}
284
3755cfa6 285Returns the wxHtmlHelpData object, which is usually a pointer to the controller's data.
09397bc6 286
3755cfa6 287\membersection{wxHtmlHelpWindow::KeywordSearch}\label{wxhtmlhelpwindowkeywordsearch}
09397bc6 288
69b5cec2 289\func{bool}{KeywordSearch}{\param{const wxString\& }{keyword}, \param{wxHelpSearchMode }{mode = wxHELP\_SEARCH\_ALL}}
09397bc6 290
69b5cec2
VS
291Search for given keyword. Optionally it searches through the index (mode =
292wxHELP\_SEARCH\_INDEX), default the content (mode = wxHELP\_SEARCH\_ALL).
09397bc6 293
3755cfa6 294\membersection{wxHtmlHelpWindow::ReadCustomization}\label{wxhtmlhelpwindowreadcustomization}
09397bc6
VS
295
296\func{void}{ReadCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
297
3755cfa6 298Reads the user's settings for this window (see \helpref{wxHtmlHelpController::ReadCustomization}{wxhtmlhelpcontrollerreadcustomization})
09397bc6 299
3755cfa6 300\membersection{wxHtmlHelpWindow::RefreshLists}\label{wxhtmlhelpwindowrefreshlists}
09397bc6 301
f6e9a818 302\func{void}{RefreshLists}{\void}
09397bc6 303
7b28757f 304Refresh all panels. This is necessary if a new book was added.
09397bc6 305
f6e9a818
RN
306Protected.
307
3755cfa6 308\membersection{wxHtmlHelpWindow::SetTitleFormat}\label{wxhtmlhelpwindowsettitleformat}
09397bc6
VS
309
310\func{void}{SetTitleFormat}{\param{const wxString\& }{format}}
311
7b28757f
JS
312Sets the frame's title format. {\it format} must contain exactly one "\%s"
313(it will be replaced by the page title).
09397bc6 314
3755cfa6 315\membersection{wxHtmlHelpWindow::UseConfig}\label{wxhtmlhelpwindowuseconfig}
09397bc6
VS
316
317\func{void}{UseConfig}{\param{wxConfigBase* }{config}, \param{const wxString\& }{rootpath = wxEmptyString}}
318
3755cfa6 319Associates a wxConfig object with the help window. It is recommended that you use \helpref{wxHtmlHelpController::UseConfig}{wxhtmlhelpcontrolleruseconfig} instead.
09397bc6 320
3755cfa6 321\membersection{wxHtmlHelpWindow::WriteCustomization}\label{wxhtmlhelpwindowwritecustomization}
09397bc6
VS
322
323\func{void}{WriteCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
324
3755cfa6 325Saves the user's settings for this window(see \helpref{wxHtmlHelpController::WriteCustomization}{wxhtmlhelpcontrollerwritecustomization}).
09397bc6 326
3755cfa6 327\membersection{wxHtmlHelpWindow::AddToolbarButtons}\label{wxhtmlhelpwindowaddtoolbarbuttons}
b854b7b8
VS
328
329\func{virtual void}{AddToolbarButtons}{\param{wxToolBar *}{toolBar}, \param{int }{style}}
330
3755cfa6 331You may override this virtual method to add more buttons to the help window's
457e6c54 332toolbar. {\it toolBar} is a pointer to the toolbar and {\it style} is the style
3755cfa6 333flag as passed to the Create method.
b854b7b8
VS
334
335wxToolBar::Realize is called immediately after returning from this function.
336
337See {\it samples/html/helpview} for an example.
457e6c54 338
3755cfa6
JS
339\section{\class{wxHtmlModalHelp}}\label{wxhtmlmodalhelp}
340
341This class uses \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller}
342to display help in a modal dialog. This is useful on platforms such as wxMac
343where if you display help from a modal dialog, the help window must itself be a modal
344dialog.
345
346Create objects of this class on the stack, for example:
347
348\begin{verbatim}
349 // The help can be browsed during the lifetime of this object; when the user quits
350 // the help, program execution will continue.
351 wxHtmlModalHelp help(parent, wxT("help"), wxT("My topic"));
352\end{verbatim}
353
354\wxheading{Derived from}
355
356None
357
358\wxheading{Include files}
359
360<wx/html/helpctrl.h>
361
a7af285d
VZ
362\wxheading{Library}
363
364\helpref{wxHtml}{librarieslist}
365
3755cfa6
JS
366\latexignore{\rtfignore{\wxheading{Members}}}
367
368\membersection{wxHtmlModalHelp::wxHtmlModalHelp}\label{wxhtmlmodalhelpctor}
369
370\func{}{wxHtmlModalHelp}{\param{wxWindow* }{parent}, \param{const wxString\& }{helpFile}, \param{const wxString\& }{topic = wxEmptyString},
371 \param{int }{style = wxHF\_DEFAULT\_STYLE | wxHF\_DIALOG | wxHF\_MODAL}}
372
373\wxheading{Parameters}
374
375{\it parent} is the parent of the dialog.
376
377{\it helpFile} is the HTML help file to show.
378
379{\it topic} is an optional topic. If this is empty, the help contents will be shown.
380
381{\it style} is a combination of the flags described in the \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller} documentation.
382
383