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
}
21 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxHtmlHelpDialog::wxHtmlHelpDialog
}\label{wxhtmlhelpdialogwxhtmlhelpdialog
}
25 \func{}{wxHtmlHelpDialog
}{\param{wxHtmlHelpData*
}{data = NULL
}}
27 \func{}{wxHtmlHelpDialog
}{\param{wxWindow*
}{parent
},
\param{int
}{wxWindowID
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE},
\param{wxHtmlHelpData*
}{data = NULL
}}
29 Constructor. For the values of
{\it style
}, please see the documentation for
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}.
31 \membersection{wxHtmlHelpDialog::AddToolbarButtons
}\label{wxhtmlhelpdialogaddtoolbarbuttons
}
33 \func{virtual void
}{AddToolbarButtons
}{\param{wxToolBar *
}{toolBar
},
\param{int
}{style
}}
35 You may override this virtual method to add more buttons to the help window's
36 toolbar.
{\it toolBar
} is a pointer to the toolbar and
{\it style
} is the style
37 flag as passed to the Create method.
39 wxToolBar::Realize is called immediately after returning from this function.
41 \membersection{wxHtmlHelpDialog::Create
}\label{wxhtmlhelpdialogcreate
}
43 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE}}
45 Creates the dialog. See
\helpref{the constructor
}{wxhtmlhelpdialogwxhtmlhelpdialog
}
46 for a description of the parameters.
48 \membersection{wxHtmlHelpDialog::GetController
}\label{wxhtmlhelpdialoggetcontroller
}
50 \constfunc{wxHtmlHelpController*
}{GetController
}{\void}
52 Returns the help controller associated with the dialog.
54 \membersection{wxHtmlHelpDialog::ReadCustomization
}\label{wxhtmlhelpdialogreadcustomization
}
56 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
58 Reads the user's settings for this dialog see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
60 \membersection{wxHtmlHelpDialog::SetController
}\label{wxhtmlhelpdialogsetcontroller
}
62 \func{void
}{SetController
}{\param{wxHtmlHelpController*
}{contoller
}}
64 Sets the help controller associated with the dialog.
66 \membersection{wxHtmlHelpDialog::SetTitleFormat
}\label{wxhtmlhelpdialogsettitleformat
}
68 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
70 Sets the dialog's title format.
{\it format
} must contain exactly one "\%s"
71 (it will be replaced by the page title).
73 \membersection{wxHtmlHelpDialog::WriteCustomization
}\label{wxhtmlhelpdialogwritecustomization
}
75 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
77 Saves the user's settings for this dialog (see
\helpref{wxHtmlHelpController::WriteCustomization
}{wxhtmlhelpcontrollerwritecustomization
}).
79 \section{\class{wxHtmlHelpFrame
}}\label{wxhtmlhelpframe
}
81 This class is used by
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}
83 It is an internal class and should not be used directly - except for the case
84 when you're writing your own HTML help controller.
86 \wxheading{Derived from
}
88 \helpref{wxFrame
}{wxframe
}
90 \wxheading{Include files
}
94 \latexignore{\rtfignore{\wxheading{Members
}}}
96 \membersection{wxHtmlHelpFrame::wxHtmlHelpFrame
}\label{wxhtmlhelpframewxhtmlhelpframe
}
98 \func{}{wxHtmlHelpFrame
}{\param{wxHtmlHelpData*
}{data = NULL
}}
100 \func{}{wxHtmlHelpFrame
}{\param{wxWindow*
}{parent
},
\param{int
}{wxWindowID
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE},
\param{wxHtmlHelpData*
}{data = NULL
}}
102 Constructor. For the values of
{\it style
}, please see the documentation for
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}.
104 \membersection{wxHtmlHelpFrame::AddToolbarButtons
}\label{wxhtmlhelpframeaddtoolbarbuttons
}
106 \func{virtual void
}{AddToolbarButtons
}{\param{wxToolBar *
}{toolBar
},
\param{int
}{style
}}
108 You may override this virtual method to add more buttons to the help window's
109 toolbar.
{\it toolBar
} is a pointer to the toolbar and
{\it style
} is the style
110 flag as passed to the Create method.
112 wxToolBar::Realize is called immediately after returning from this function.
114 \membersection{wxHtmlHelpFrame::Create
}\label{wxhtmlhelpframecreate
}
116 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE}}
118 Creates the frame. See
\helpref{the constructor
}{wxhtmlhelpframewxhtmlhelpframe
}
119 for a description of the parameters.
121 \membersection{wxHtmlHelpFrame::GetController
}\label{wxhtmlhelpframegetcontroller
}
123 \constfunc{wxHtmlHelpController*
}{GetController
}{\void}
125 Returns the help controller associated with the frame.
127 \membersection{wxHtmlHelpFrame::ReadCustomization
}\label{wxhtmlhelpframereadcustomization
}
129 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
131 Reads the user's settings for this frame see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
133 \membersection{wxHtmlHelpFrame::SetController
}\label{wxhtmlhelpframesetcontroller
}
135 \func{void
}{SetController
}{\param{wxHtmlHelpController*
}{contoller
}}
137 Sets the help controller associated with the frame.
139 \membersection{wxHtmlHelpFrame::SetTitleFormat
}\label{wxhtmlhelpframesettitleformat
}
141 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
143 Sets the frame's title format.
{\it format
} must contain exactly one "\%s"
144 (it will be replaced by the page title).
146 \membersection{wxHtmlHelpFrame::WriteCustomization
}\label{wxhtmlhelpframewritecustomization
}
148 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
150 Saves the user's settings for this frame (see
\helpref{wxHtmlHelpController::WriteCustomization
}{wxhtmlhelpcontrollerwritecustomization
}).
152 \section{\class{wxHtmlHelpWindow
}}\label{wxhtmlhelpwindow
}
154 This class is used by
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}
155 to display help within a frame or dialog, but you can use it yourself to create an embedded HTML help window.
160 // m_embeddedHelpWindow is a wxHtmlHelpWindow
161 // m_embeddedHtmlHelp is a wxHtmlHelpController
163 // Create embedded HTML Help window
164 m_embeddedHelpWindow = new wxHtmlHelpWindow;
165 m_embeddedHtmlHelp.UseConfig(config, rootPath); // Set your own config object here
166 m_embeddedHtmlHelp.SetHelpWindow(m_embeddedHelpWindow);
167 m_embeddedHelpWindow->Create(this,
168 wxID_ANY, wxDefaultPosition, GetClientSize(), wxTAB_TRAVERSAL|wxNO_BORDER, wxHF_DEFAULT_STYLE);
169 m_embeddedHtmlHelp.AddBook(wxFileName(_T("doc.zip")));
172 You should pass the style wxHF
\_EMBEDDED to the style parameter of wxHtmlHelpController to allow
173 the embedded window to be destroyed independently of the help controller.
175 \wxheading{Derived from
}
177 \helpref{wxWindow
}{wxwindow
}
179 \wxheading{Include files
}
183 \latexignore{\rtfignore{\wxheading{Members
}}}
185 \membersection{wxHtmlHelpWindow::wxHtmlHelpWindow
}\label{wxhtmlhelpwindowwxhtmlhelpwindow
}
187 \func{}{wxHtmlHelpWindow
}{\param{wxHtmlHelpData*
}{data = NULL
}}
189 \func{}{wxHtmlHelpWindow
}{\param{wxWindow*
}{parent
},
\param{int
}{wxWindowID
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE},
\param{wxHtmlHelpData*
}{data = NULL
}}
193 Constructor. For the values of
{\it style
}, please see the documentation for
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}.
195 \membersection{wxHtmlHelpWindow::Create
}\label{wxhtmlhelpwindowcreate
}
197 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE}}
199 Creates the frame. See
\helpref{the constructor
}{wxhtmlhelpwindowwxhtmlhelpwindow
}
200 for a description of the parameters.
202 \membersection{wxHtmlHelpWindow::CreateContents
}\label{wxhtmlhelpwindowcreatecontents
}
204 \func{void
}{CreateContents
}{\void}
206 Creates contents panel. (May take some time.)
210 \membersection{wxHtmlHelpWindow::CreateIndex
}\label{wxhtmlhelpwindowcreateindex
}
212 \func{void
}{CreateIndex
}{\void}
214 Creates index panel. (May take some time.)
218 \membersection{wxHtmlHelpWindow::CreateSearch
}\label{wxhtmlhelpwindowcreatesearch
}
220 \func{void
}{CreateSearch
}{\void}
222 Creates search panel.
224 \membersection{wxHtmlHelpWindow::Display
}\label{wxhtmlhelpwindowdisplay
}
226 \func{bool
}{Display
}{\param{const wxString\&
}{x
}}
228 \func{bool
}{Display
}{\param{const int
}{id
}}
230 Displays page x. If not found it will give the user the choice of
232 Looking for the page runs in these steps:
234 \begin{enumerate
}\itemsep=
0pt
235 \item try to locate file named x (if x is for example "doc/howto.htm")
236 \item try to open starting page of book x
237 \item try to find x in contents (if x is for example "How To ...")
238 \item try to find x in index (if x is for example "How To ...")
241 The second form takes numeric ID as the parameter.
242 (uses extension to MS format, <param name="ID" value=id>)
244 \pythonnote{The second form of this method is named DisplayId in
247 \membersection{wxHtmlHelpWindow::DisplayContents
}\label{wxhtmlhelpwindowdisplaycontents
}
249 \func{bool
}{DisplayContents
}{\void}
251 Displays contents panel.
253 \membersection{wxHtmlHelpWindow::DisplayIndex
}\label{wxhtmlhelpwindowdisplayindex
}
255 \func{bool
}{DisplayIndex
}{\void}
257 Displays index panel.
259 \membersection{wxHtmlHelpWindow::GetData
}\label{wxhtmlhelpwindowgetdata
}
261 \func{wxHtmlHelpData*
}{GetData
}{\void}
263 Returns the wxHtmlHelpData object, which is usually a pointer to the controller's data.
265 \membersection{wxHtmlHelpWindow::KeywordSearch
}\label{wxhtmlhelpwindowkeywordsearch
}
267 \func{bool
}{KeywordSearch
}{\param{const wxString\&
}{keyword
},
\param{wxHelpSearchMode
}{mode = wxHELP
\_SEARCH\_ALL}}
269 Search for given keyword. Optionally it searches through the index (mode =
270 wxHELP
\_SEARCH\_INDEX), default the content (mode = wxHELP
\_SEARCH\_ALL).
272 \membersection{wxHtmlHelpWindow::ReadCustomization
}\label{wxhtmlhelpwindowreadcustomization
}
274 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
276 Reads the user's settings for this window (see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
278 \membersection{wxHtmlHelpWindow::RefreshLists
}\label{wxhtmlhelpwindowrefreshlists
}
280 \func{void
}{RefreshLists
}{\void}
282 Refresh all panels. This is necessary if a new book was added.
286 \membersection{wxHtmlHelpWindow::SetTitleFormat
}\label{wxhtmlhelpwindowsettitleformat
}
288 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
290 Sets the frame's title format.
{\it format
} must contain exactly one "\%s"
291 (it will be replaced by the page title).
293 \membersection{wxHtmlHelpWindow::UseConfig
}\label{wxhtmlhelpwindowuseconfig
}
295 \func{void
}{UseConfig
}{\param{wxConfigBase*
}{config
},
\param{const wxString\&
}{rootpath = wxEmptyString
}}
297 Associates a wxConfig object with the help window. It is recommended that you use
\helpref{wxHtmlHelpController::UseConfig
}{wxhtmlhelpcontrolleruseconfig
} instead.
299 \membersection{wxHtmlHelpWindow::WriteCustomization
}\label{wxhtmlhelpwindowwritecustomization
}
301 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
303 Saves the user's settings for this window(see
\helpref{wxHtmlHelpController::WriteCustomization
}{wxhtmlhelpcontrollerwritecustomization
}).
305 \membersection{wxHtmlHelpWindow::AddToolbarButtons
}\label{wxhtmlhelpwindowaddtoolbarbuttons
}
307 \func{virtual void
}{AddToolbarButtons
}{\param{wxToolBar *
}{toolBar
},
\param{int
}{style
}}
309 You may override this virtual method to add more buttons to the help window's
310 toolbar.
{\it toolBar
} is a pointer to the toolbar and
{\it style
} is the style
311 flag as passed to the Create method.
313 wxToolBar::Realize is called immediately after returning from this function.
315 See
{\it samples/html/helpview
} for an example.
317 \section{\class{wxHtmlModalHelp
}}\label{wxhtmlmodalhelp
}
319 This class uses
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}
320 to display help in a modal dialog. This is useful on platforms such as wxMac
321 where if you display help from a modal dialog, the help window must itself be a modal
324 Create objects of this class on the stack, for example:
327 // The help can be browsed during the lifetime of this object; when the user quits
328 // the help, program execution will continue.
329 wxHtmlModalHelp help(parent, wxT("help"), wxT("My topic"));
332 \wxheading{Derived from
}
336 \wxheading{Include files
}
340 \latexignore{\rtfignore{\wxheading{Members
}}}
342 \membersection{wxHtmlModalHelp::wxHtmlModalHelp
}\label{wxhtmlmodalhelpctor
}
344 \func{}{wxHtmlModalHelp
}{\param{wxWindow*
}{parent
},
\param{const wxString\&
}{helpFile
},
\param{const wxString\&
}{topic = wxEmptyString
},
345 \param{int
}{style = wxHF
\_DEFAULT\_STYLE | wxHF
\_DIALOG | wxHF
\_MODAL}}
347 \wxheading{Parameters
}
349 {\it parent
} is the parent of the dialog.
351 {\it helpFile
} is the HTML help file to show.
353 {\it topic
} is an optional topic. If this is empty, the help contents will be shown.
355 {\it style
} is a combination of the flags described in the
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
} documentation.