2 % automatically generated by HelpGen from
3 % helpfrm.h at 24/Oct/99 18:03:10
6 \section{\class{wxHtmlHelpDialog
}}\label{wxhtmlhelpdialog
}
8 This class is used by
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}
10 It is an internal class and should not be used directly - except for the case
11 when you're writing your own HTML help controller.
13 \wxheading{Derived from
}
15 \helpref{wxFrame
}{wxframe
}
17 \wxheading{Include files
}
23 \helpref{wxHtml
}{librarieslist
}
25 \latexignore{\rtfignore{\wxheading{Members
}}}
27 \membersection{wxHtmlHelpDialog::wxHtmlHelpDialog
}\label{wxhtmlhelpdialogwxhtmlhelpdialog
}
29 \func{}{wxHtmlHelpDialog
}{\param{wxHtmlHelpData*
}{data = NULL
}}
31 \func{}{wxHtmlHelpDialog
}{\param{wxWindow*
}{parent
},
\param{int
}{wxWindowID
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE},
\param{wxHtmlHelpData*
}{data = NULL
}}
33 Constructor. For the values of
{\it style
}, please see the documentation for
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}.
35 \membersection{wxHtmlHelpDialog::AddToolbarButtons
}\label{wxhtmlhelpdialogaddtoolbarbuttons
}
37 \func{virtual void
}{AddToolbarButtons
}{\param{wxToolBar *
}{toolBar
},
\param{int
}{style
}}
39 You may override this virtual method to add more buttons to the help window's
40 toolbar.
{\it toolBar
} is a pointer to the toolbar and
{\it style
} is the style
41 flag as passed to the Create method.
43 wxToolBar::Realize is called immediately after returning from this function.
45 \membersection{wxHtmlHelpDialog::Create
}\label{wxhtmlhelpdialogcreate
}
47 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE}}
49 Creates the dialog. See
\helpref{the constructor
}{wxhtmlhelpdialogwxhtmlhelpdialog
}
50 for a description of the parameters.
52 \membersection{wxHtmlHelpDialog::GetController
}\label{wxhtmlhelpdialoggetcontroller
}
54 \constfunc{wxHtmlHelpController*
}{GetController
}{\void}
56 Returns the help controller associated with the dialog.
58 \membersection{wxHtmlHelpDialog::ReadCustomization
}\label{wxhtmlhelpdialogreadcustomization
}
60 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
62 Reads the user's settings for this dialog see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
64 \membersection{wxHtmlHelpDialog::SetController
}\label{wxhtmlhelpdialogsetcontroller
}
66 \func{void
}{SetController
}{\param{wxHtmlHelpController*
}{contoller
}}
68 Sets the help controller associated with the dialog.
70 \membersection{wxHtmlHelpDialog::SetTitleFormat
}\label{wxhtmlhelpdialogsettitleformat
}
72 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
74 Sets the dialog's title format.
{\it format
} must contain exactly one "\%s"
75 (it will be replaced by the page title).
77 \membersection{wxHtmlHelpDialog::WriteCustomization
}\label{wxhtmlhelpdialogwritecustomization
}
79 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
81 Saves the user's settings for this dialog (see
\helpref{wxHtmlHelpController::WriteCustomization
}{wxhtmlhelpcontrollerwritecustomization
}).
83 \section{\class{wxHtmlHelpFrame
}}\label{wxhtmlhelpframe
}
85 This class is used by
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}
87 It is an internal class and should not be used directly - except for the case
88 when you're writing your own HTML help controller.
90 \wxheading{Derived from
}
92 \helpref{wxFrame
}{wxframe
}
94 \wxheading{Include files
}
100 \helpref{wxHtml
}{librarieslist
}
102 \latexignore{\rtfignore{\wxheading{Members
}}}
104 \membersection{wxHtmlHelpFrame::wxHtmlHelpFrame
}\label{wxhtmlhelpframewxhtmlhelpframe
}
106 \func{}{wxHtmlHelpFrame
}{\param{wxHtmlHelpData*
}{data = NULL
}}
108 \func{}{wxHtmlHelpFrame
}{\param{wxWindow*
}{parent
},
\param{int
}{wxWindowID
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE},
\param{wxHtmlHelpData*
}{data = NULL
}}
110 Constructor. For the values of
{\it style
}, please see the documentation for
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}.
112 \membersection{wxHtmlHelpFrame::AddToolbarButtons
}\label{wxhtmlhelpframeaddtoolbarbuttons
}
114 \func{virtual void
}{AddToolbarButtons
}{\param{wxToolBar *
}{toolBar
},
\param{int
}{style
}}
116 You may override this virtual method to add more buttons to the help window's
117 toolbar.
{\it toolBar
} is a pointer to the toolbar and
{\it style
} is the style
118 flag as passed to the Create method.
120 wxToolBar::Realize is called immediately after returning from this function.
122 \membersection{wxHtmlHelpFrame::Create
}\label{wxhtmlhelpframecreate
}
124 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE}}
126 Creates the frame. See
\helpref{the constructor
}{wxhtmlhelpframewxhtmlhelpframe
}
127 for a description of the parameters.
129 \membersection{wxHtmlHelpFrame::GetController
}\label{wxhtmlhelpframegetcontroller
}
131 \constfunc{wxHtmlHelpController*
}{GetController
}{\void}
133 Returns the help controller associated with the frame.
135 \membersection{wxHtmlHelpFrame::ReadCustomization
}\label{wxhtmlhelpframereadcustomization
}
137 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
139 Reads the user's settings for this frame see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
141 \membersection{wxHtmlHelpFrame::SetController
}\label{wxhtmlhelpframesetcontroller
}
143 \func{void
}{SetController
}{\param{wxHtmlHelpController*
}{contoller
}}
145 Sets the help controller associated with the frame.
147 \membersection{wxHtmlHelpFrame::SetTitleFormat
}\label{wxhtmlhelpframesettitleformat
}
149 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
151 Sets the frame's title format.
{\it format
} must contain exactly one "\%s"
152 (it will be replaced by the page title).
154 \membersection{wxHtmlHelpFrame::WriteCustomization
}\label{wxhtmlhelpframewritecustomization
}
156 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
158 Saves the user's settings for this frame (see
\helpref{wxHtmlHelpController::WriteCustomization
}{wxhtmlhelpcontrollerwritecustomization
}).
160 \section{\class{wxHtmlHelpWindow
}}\label{wxhtmlhelpwindow
}
162 This class is used by
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}
163 to display help within a frame or dialog, but you can use it yourself to create an embedded HTML help window.
168 // m_embeddedHelpWindow is a wxHtmlHelpWindow
169 // m_embeddedHtmlHelp is a wxHtmlHelpController
171 // Create embedded HTML Help window
172 m_embeddedHelpWindow = new wxHtmlHelpWindow;
173 m_embeddedHtmlHelp.UseConfig(config, rootPath); // Set your own config object here
174 m_embeddedHtmlHelp.SetHelpWindow(m_embeddedHelpWindow);
175 m_embeddedHelpWindow->Create(this,
176 wxID_ANY, wxDefaultPosition, GetClientSize(), wxTAB_TRAVERSAL|wxBORDER_NONE, wxHF_DEFAULT_STYLE);
177 m_embeddedHtmlHelp.AddBook(wxFileName(_T("doc.zip")));
180 You should pass the style wxHF
\_EMBEDDED to the style parameter of wxHtmlHelpController to allow
181 the embedded window to be destroyed independently of the help controller.
183 \wxheading{Derived from
}
185 \helpref{wxWindow
}{wxwindow
}
187 \wxheading{Include files
}
193 \helpref{wxHtml
}{librarieslist
}
195 \latexignore{\rtfignore{\wxheading{Members
}}}
197 \membersection{wxHtmlHelpWindow::wxHtmlHelpWindow
}\label{wxhtmlhelpwindowwxhtmlhelpwindow
}
199 \func{}{wxHtmlHelpWindow
}{\param{wxHtmlHelpData*
}{data = NULL
}}
201 \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
}}
205 Constructor. For the values of
{\it helpStyle
}, please see the documentation for
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}.
207 \membersection{wxHtmlHelpWindow::Create
}\label{wxhtmlhelpwindowcreate
}
209 \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
}}
211 Creates the help window. See
\helpref{the constructor
}{wxhtmlhelpwindowwxhtmlhelpwindow
}
212 for a description of the parameters.
214 \membersection{wxHtmlHelpWindow::CreateContents
}\label{wxhtmlhelpwindowcreatecontents
}
216 \func{void
}{CreateContents
}{\void}
218 Creates contents panel. (May take some time.)
222 \membersection{wxHtmlHelpWindow::CreateIndex
}\label{wxhtmlhelpwindowcreateindex
}
224 \func{void
}{CreateIndex
}{\void}
226 Creates index panel. (May take some time.)
230 \membersection{wxHtmlHelpWindow::CreateSearch
}\label{wxhtmlhelpwindowcreatesearch
}
232 \func{void
}{CreateSearch
}{\void}
234 Creates search panel.
236 \membersection{wxHtmlHelpWindow::Display
}\label{wxhtmlhelpwindowdisplay
}
238 \func{bool
}{Display
}{\param{const wxString\&
}{x
}}
240 \func{bool
}{Display
}{\param{const int
}{id
}}
242 Displays page x. If not found it will give the user the choice of
244 Looking for the page runs in these steps:
246 \begin{enumerate
}\itemsep=
0pt
247 \item try to locate file named x (if x is for example "doc/howto.htm")
248 \item try to open starting page of book x
249 \item try to find x in contents (if x is for example "How To ...")
250 \item try to find x in index (if x is for example "How To ...")
253 The second form takes numeric ID as the parameter.
254 (uses extension to MS format, <param name="ID" value=id>)
256 \pythonnote{The second form of this method is named DisplayId in
259 \membersection{wxHtmlHelpWindow::DisplayContents
}\label{wxhtmlhelpwindowdisplaycontents
}
261 \func{bool
}{DisplayContents
}{\void}
263 Displays contents panel.
265 \membersection{wxHtmlHelpWindow::DisplayIndex
}\label{wxhtmlhelpwindowdisplayindex
}
267 \func{bool
}{DisplayIndex
}{\void}
269 Displays index panel.
271 \membersection{wxHtmlHelpWindow::GetData
}\label{wxhtmlhelpwindowgetdata
}
273 \func{wxHtmlHelpData*
}{GetData
}{\void}
275 Returns the wxHtmlHelpData object, which is usually a pointer to the controller's data.
277 \membersection{wxHtmlHelpWindow::KeywordSearch
}\label{wxhtmlhelpwindowkeywordsearch
}
279 \func{bool
}{KeywordSearch
}{\param{const wxString\&
}{keyword
},
\param{wxHelpSearchMode
}{mode = wxHELP
\_SEARCH\_ALL}}
281 Search for given keyword. Optionally it searches through the index (mode =
282 wxHELP
\_SEARCH\_INDEX), default the content (mode = wxHELP
\_SEARCH\_ALL).
284 \membersection{wxHtmlHelpWindow::ReadCustomization
}\label{wxhtmlhelpwindowreadcustomization
}
286 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
288 Reads the user's settings for this window (see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
290 \membersection{wxHtmlHelpWindow::RefreshLists
}\label{wxhtmlhelpwindowrefreshlists
}
292 \func{void
}{RefreshLists
}{\void}
294 Refresh all panels. This is necessary if a new book was added.
298 \membersection{wxHtmlHelpWindow::SetTitleFormat
}\label{wxhtmlhelpwindowsettitleformat
}
300 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
302 Sets the frame's title format.
{\it format
} must contain exactly one "\%s"
303 (it will be replaced by the page title).
305 \membersection{wxHtmlHelpWindow::UseConfig
}\label{wxhtmlhelpwindowuseconfig
}
307 \func{void
}{UseConfig
}{\param{wxConfigBase*
}{config
},
\param{const wxString\&
}{rootpath = wxEmptyString
}}
309 Associates a wxConfig object with the help window. It is recommended that you use
\helpref{wxHtmlHelpController::UseConfig
}{wxhtmlhelpcontrolleruseconfig
} instead.
311 \membersection{wxHtmlHelpWindow::WriteCustomization
}\label{wxhtmlhelpwindowwritecustomization
}
313 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
315 Saves the user's settings for this window(see
\helpref{wxHtmlHelpController::WriteCustomization
}{wxhtmlhelpcontrollerwritecustomization
}).
317 \membersection{wxHtmlHelpWindow::AddToolbarButtons
}\label{wxhtmlhelpwindowaddtoolbarbuttons
}
319 \func{virtual void
}{AddToolbarButtons
}{\param{wxToolBar *
}{toolBar
},
\param{int
}{style
}}
321 You may override this virtual method to add more buttons to the help window's
322 toolbar.
{\it toolBar
} is a pointer to the toolbar and
{\it style
} is the style
323 flag as passed to the Create method.
325 wxToolBar::Realize is called immediately after returning from this function.
327 See
{\it samples/html/helpview
} for an example.
329 \section{\class{wxHtmlModalHelp
}}\label{wxhtmlmodalhelp
}
331 This class uses
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}
332 to display help in a modal dialog. This is useful on platforms such as wxMac
333 where if you display help from a modal dialog, the help window must itself be a modal
336 Create objects of this class on the stack, for example:
339 // The help can be browsed during the lifetime of this object; when the user quits
340 // the help, program execution will continue.
341 wxHtmlModalHelp help(parent, wxT("help"), wxT("My topic"));
344 \wxheading{Derived from
}
348 \wxheading{Include files
}
354 \helpref{wxHtml
}{librarieslist
}
356 \latexignore{\rtfignore{\wxheading{Members
}}}
358 \membersection{wxHtmlModalHelp::wxHtmlModalHelp
}\label{wxhtmlmodalhelpctor
}
360 \func{}{wxHtmlModalHelp
}{\param{wxWindow*
}{parent
},
\param{const wxString\&
}{helpFile
},
\param{const wxString\&
}{topic = wxEmptyString
},
361 \param{int
}{style = wxHF
\_DEFAULT\_STYLE | wxHF
\_DIALOG | wxHF
\_MODAL}}
363 \wxheading{Parameters
}
365 {\it parent
} is the parent of the dialog.
367 {\it helpFile
} is the HTML help file to show.
369 {\it topic
} is an optional topic. If this is empty, the help contents will be shown.
371 {\it style
} is a combination of the flags described in the
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
} documentation.