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
}\\
16 \helpref{wxTopLevelWindow
}{wxtoplevelwindow
}\\
17 \helpref{wxWindow
}{wxwindow
}\\
18 \helpref{wxEvtHandler
}{wxevthandler
}\\
19 \helpref{wxObject
}{wxobject
}
21 \wxheading{Include files
}
27 \helpref{wxHtml
}{librarieslist
}
29 \latexignore{\rtfignore{\wxheading{Members
}}}
31 \membersection{wxHtmlHelpDialog::wxHtmlHelpDialog
}\label{wxhtmlhelpdialogwxhtmlhelpdialog
}
33 \func{}{wxHtmlHelpDialog
}{\param{wxHtmlHelpData*
}{data = NULL
}}
35 \func{}{wxHtmlHelpDialog
}{\param{wxWindow*
}{parent
},
\param{int
}{wxWindowID
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE},
\param{wxHtmlHelpData*
}{data = NULL
}}
37 Constructor. For the values of
{\it style
}, please see the documentation for
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}.
39 \membersection{wxHtmlHelpDialog::AddToolbarButtons
}\label{wxhtmlhelpdialogaddtoolbarbuttons
}
41 \func{virtual void
}{AddToolbarButtons
}{\param{wxToolBar *
}{toolBar
},
\param{int
}{style
}}
43 You may override this virtual method to add more buttons to the help window's
44 toolbar.
{\it toolBar
} is a pointer to the toolbar and
{\it style
} is the style
45 flag as passed to the Create method.
47 wxToolBar::Realize is called immediately after returning from this function.
49 \membersection{wxHtmlHelpDialog::Create
}\label{wxhtmlhelpdialogcreate
}
51 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE}}
53 Creates the dialog. See
\helpref{the constructor
}{wxhtmlhelpdialogwxhtmlhelpdialog
}
54 for a description of the parameters.
56 \membersection{wxHtmlHelpDialog::GetController
}\label{wxhtmlhelpdialoggetcontroller
}
58 \constfunc{wxHtmlHelpController*
}{GetController
}{\void}
60 Returns the help controller associated with the dialog.
62 \membersection{wxHtmlHelpDialog::ReadCustomization
}\label{wxhtmlhelpdialogreadcustomization
}
64 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
66 Reads the user's settings for this dialog see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
68 \membersection{wxHtmlHelpDialog::SetController
}\label{wxhtmlhelpdialogsetcontroller
}
70 \func{void
}{SetController
}{\param{wxHtmlHelpController*
}{contoller
}}
72 Sets the help controller associated with the dialog.
74 \membersection{wxHtmlHelpDialog::SetTitleFormat
}\label{wxhtmlhelpdialogsettitleformat
}
76 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
78 Sets the dialog's title format.
{\it format
} must contain exactly one "\%s"
79 (it will be replaced by the page title).
81 \membersection{wxHtmlHelpDialog::WriteCustomization
}\label{wxhtmlhelpdialogwritecustomization
}
83 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
85 Saves the user's settings for this dialog (see
\helpref{wxHtmlHelpController::WriteCustomization
}{wxhtmlhelpcontrollerwritecustomization
}).
87 \section{\class{wxHtmlHelpFrame
}}\label{wxhtmlhelpframe
}
89 This class is used by
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}
91 It is an internal class and should not be used directly - except for the case
92 when you're writing your own HTML help controller.
94 \wxheading{Derived from
}
96 \helpref{wxFrame
}{wxframe
}\\
97 \helpref{wxTopLevelWindow
}{wxtoplevelwindow
}\\
98 \helpref{wxWindow
}{wxwindow
}\\
99 \helpref{wxEvtHandler
}{wxevthandler
}\\
100 \helpref{wxObject
}{wxobject
}
102 \wxheading{Include files
}
108 \helpref{wxHtml
}{librarieslist
}
110 \latexignore{\rtfignore{\wxheading{Members
}}}
112 \membersection{wxHtmlHelpFrame::wxHtmlHelpFrame
}\label{wxhtmlhelpframewxhtmlhelpframe
}
114 \func{}{wxHtmlHelpFrame
}{\param{wxHtmlHelpData*
}{data = NULL
}}
116 \func{}{wxHtmlHelpFrame
}{\param{wxWindow*
}{parent
},
\param{int
}{wxWindowID
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE},
\param{wxHtmlHelpData*
}{data = NULL
}}
118 Constructor. For the values of
{\it style
}, please see the documentation for
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}.
120 \membersection{wxHtmlHelpFrame::AddToolbarButtons
}\label{wxhtmlhelpframeaddtoolbarbuttons
}
122 \func{virtual void
}{AddToolbarButtons
}{\param{wxToolBar *
}{toolBar
},
\param{int
}{style
}}
124 You may override this virtual method to add more buttons to the help window's
125 toolbar.
{\it toolBar
} is a pointer to the toolbar and
{\it style
} is the style
126 flag as passed to the Create method.
128 wxToolBar::Realize is called immediately after returning from this function.
130 \membersection{wxHtmlHelpFrame::Create
}\label{wxhtmlhelpframecreate
}
132 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULT\_STYLE}}
134 Creates the frame. See
\helpref{the constructor
}{wxhtmlhelpframewxhtmlhelpframe
}
135 for a description of the parameters.
137 \membersection{wxHtmlHelpFrame::GetController
}\label{wxhtmlhelpframegetcontroller
}
139 \constfunc{wxHtmlHelpController*
}{GetController
}{\void}
141 Returns the help controller associated with the frame.
143 \membersection{wxHtmlHelpFrame::ReadCustomization
}\label{wxhtmlhelpframereadcustomization
}
145 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
147 Reads the user's settings for this frame see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
149 \membersection{wxHtmlHelpFrame::SetController
}\label{wxhtmlhelpframesetcontroller
}
151 \func{void
}{SetController
}{\param{wxHtmlHelpController*
}{contoller
}}
153 Sets the help controller associated with the frame.
155 \membersection{wxHtmlHelpFrame::SetTitleFormat
}\label{wxhtmlhelpframesettitleformat
}
157 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
159 Sets the frame's title format.
{\it format
} must contain exactly one "\%s"
160 (it will be replaced by the page title).
162 \membersection{wxHtmlHelpFrame::WriteCustomization
}\label{wxhtmlhelpframewritecustomization
}
164 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
166 Saves the user's settings for this frame (see
\helpref{wxHtmlHelpController::WriteCustomization
}{wxhtmlhelpcontrollerwritecustomization
}).
168 \section{\class{wxHtmlHelpWindow
}}\label{wxhtmlhelpwindow
}
170 This class is used by
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}
171 to display help within a frame or dialog, but you can use it yourself to create an embedded HTML help window.
176 // m_embeddedHelpWindow is a wxHtmlHelpWindow
177 // m_embeddedHtmlHelp is a wxHtmlHelpController
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,
184 wxID_ANY, wxDefaultPosition, GetClientSize(), wxTAB_TRAVERSAL|wxBORDER_NONE, wxHF_DEFAULT_STYLE);
185 m_embeddedHtmlHelp.AddBook(wxFileName(_T("doc.zip")));
188 You should pass the style wxHF
\_EMBEDDED to the style parameter of wxHtmlHelpController to allow
189 the embedded window to be destroyed independently of the help controller.
191 \wxheading{Derived from
}
193 \helpref{wxWindow
}{wxwindow
}\\
194 \helpref{wxEvtHandler
}{wxevthandler
}\\
195 \helpref{wxObject
}{wxobject
}
197 \wxheading{Include files
}
203 \helpref{wxHtml
}{librarieslist
}
205 \latexignore{\rtfignore{\wxheading{Members
}}}
207 \membersection{wxHtmlHelpWindow::wxHtmlHelpWindow
}\label{wxhtmlhelpwindowwxhtmlhelpwindow
}
209 \func{}{wxHtmlHelpWindow
}{\param{wxHtmlHelpData*
}{data = NULL
}}
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
}}
215 Constructor. For the values of
{\it helpStyle
}, please see the documentation for
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}.
217 \membersection{wxHtmlHelpWindow::Create
}\label{wxhtmlhelpwindowcreate
}
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
}}
221 Creates the help window. See
\helpref{the constructor
}{wxhtmlhelpwindowwxhtmlhelpwindow
}
222 for a description of the parameters.
224 \membersection{wxHtmlHelpWindow::CreateContents
}\label{wxhtmlhelpwindowcreatecontents
}
226 \func{void
}{CreateContents
}{\void}
228 Creates contents panel. (May take some time.)
232 \membersection{wxHtmlHelpWindow::CreateIndex
}\label{wxhtmlhelpwindowcreateindex
}
234 \func{void
}{CreateIndex
}{\void}
236 Creates index panel. (May take some time.)
240 \membersection{wxHtmlHelpWindow::CreateSearch
}\label{wxhtmlhelpwindowcreatesearch
}
242 \func{void
}{CreateSearch
}{\void}
244 Creates search panel.
246 \membersection{wxHtmlHelpWindow::Display
}\label{wxhtmlhelpwindowdisplay
}
248 \func{bool
}{Display
}{\param{const wxString\&
}{x
}}
250 \func{bool
}{Display
}{\param{const int
}{id
}}
252 Displays page x. If not found it will give the user the choice of
254 Looking for the page runs in these steps:
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 ...")
263 The second form takes numeric ID as the parameter.
264 (uses extension to MS format, <param name="ID" value=id>)
266 \pythonnote{The second form of this method is named DisplayId in
269 \membersection{wxHtmlHelpWindow::DisplayContents
}\label{wxhtmlhelpwindowdisplaycontents
}
271 \func{bool
}{DisplayContents
}{\void}
273 Displays contents panel.
275 \membersection{wxHtmlHelpWindow::DisplayIndex
}\label{wxhtmlhelpwindowdisplayindex
}
277 \func{bool
}{DisplayIndex
}{\void}
279 Displays index panel.
281 \membersection{wxHtmlHelpWindow::GetData
}\label{wxhtmlhelpwindowgetdata
}
283 \func{wxHtmlHelpData*
}{GetData
}{\void}
285 Returns the wxHtmlHelpData object, which is usually a pointer to the controller's data.
287 \membersection{wxHtmlHelpWindow::KeywordSearch
}\label{wxhtmlhelpwindowkeywordsearch
}
289 \func{bool
}{KeywordSearch
}{\param{const wxString\&
}{keyword
},
\param{wxHelpSearchMode
}{mode = wxHELP
\_SEARCH\_ALL}}
291 Search for given keyword. Optionally it searches through the index (mode =
292 wxHELP
\_SEARCH\_INDEX), default the content (mode = wxHELP
\_SEARCH\_ALL).
294 \membersection{wxHtmlHelpWindow::ReadCustomization
}\label{wxhtmlhelpwindowreadcustomization
}
296 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
298 Reads the user's settings for this window (see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
300 \membersection{wxHtmlHelpWindow::RefreshLists
}\label{wxhtmlhelpwindowrefreshlists
}
302 \func{void
}{RefreshLists
}{\void}
304 Refresh all panels. This is necessary if a new book was added.
308 \membersection{wxHtmlHelpWindow::SetTitleFormat
}\label{wxhtmlhelpwindowsettitleformat
}
310 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
312 Sets the frame's title format.
{\it format
} must contain exactly one "\%s"
313 (it will be replaced by the page title).
315 \membersection{wxHtmlHelpWindow::UseConfig
}\label{wxhtmlhelpwindowuseconfig
}
317 \func{void
}{UseConfig
}{\param{wxConfigBase*
}{config
},
\param{const wxString\&
}{rootpath = wxEmptyString
}}
319 Associates a wxConfig object with the help window. It is recommended that you use
\helpref{wxHtmlHelpController::UseConfig
}{wxhtmlhelpcontrolleruseconfig
} instead.
321 \membersection{wxHtmlHelpWindow::WriteCustomization
}\label{wxhtmlhelpwindowwritecustomization
}
323 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
325 Saves the user's settings for this window(see
\helpref{wxHtmlHelpController::WriteCustomization
}{wxhtmlhelpcontrollerwritecustomization
}).
327 \membersection{wxHtmlHelpWindow::AddToolbarButtons
}\label{wxhtmlhelpwindowaddtoolbarbuttons
}
329 \func{virtual void
}{AddToolbarButtons
}{\param{wxToolBar *
}{toolBar
},
\param{int
}{style
}}
331 You may override this virtual method to add more buttons to the help window's
332 toolbar.
{\it toolBar
} is a pointer to the toolbar and
{\it style
} is the style
333 flag as passed to the Create method.
335 wxToolBar::Realize is called immediately after returning from this function.
337 See
{\it samples/html/helpview
} for an example.
339 \section{\class{wxHtmlModalHelp
}}\label{wxhtmlmodalhelp
}
341 This class uses
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}
342 to display help in a modal dialog. This is useful on platforms such as wxMac
343 where if you display help from a modal dialog, the help window must itself be a modal
346 Create objects of this class on the stack, for example:
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"));
354 \wxheading{Derived from
}
358 \wxheading{Include files
}
364 \helpref{wxHtml
}{librarieslist
}
366 \latexignore{\rtfignore{\wxheading{Members
}}}
368 \membersection{wxHtmlModalHelp::wxHtmlModalHelp
}\label{wxhtmlmodalhelpctor
}
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}}
373 \wxheading{Parameters
}
375 {\it parent
} is the parent of the dialog.
377 {\it helpFile
} is the HTML help file to show.
379 {\it topic
} is an optional topic. If this is empty, the help contents will be shown.
381 {\it style
} is a combination of the flags described in the
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
} documentation.