]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/hthlpfrm.tex
Fixed crash-on-exit bug due to status bar being deleted twice (MDI apps);
[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
09397bc6
VS
6\section{\class{wxHtmlHelpFrame}}\label{wxhtmlhelpframe}
7
7b28757f 8This class is used by \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller}
09397bc6 9to display help.
457e6c54
JS
10It is an internal class and should not be used directly - except for the case
11when you're writing your own HTML help controller.
09397bc6
VS
12
13\wxheading{Derived from}
14
15\helpref{wxFrame}{wxframe}
16
9704b250
VS
17\wxheading{Include files}
18
19<wx/html/helpfrm.h>
20
09397bc6
VS
21\latexignore{\rtfignore{\wxheading{Members}}}
22
09397bc6
VS
23\membersection{wxHtmlHelpFrame::wxHtmlHelpFrame}\label{wxhtmlhelpframewxhtmlhelpframe}
24
25\func{}{wxHtmlHelpFrame}{\param{wxHtmlHelpData* }{data = NULL}}
26
27\func{}{wxHtmlHelpFrame}{\param{wxWindow* }{parent}, \param{int }{wxWindowID}, \param{const wxString\& }{title = wxEmptyString}, \param{int }{style = wxHF\_DEFAULTSTYLE}, \param{wxHtmlHelpData* }{data = NULL}}
28
29Constructor.
30
31{\it style} is combination of these flags:
32
457e6c54 33\begin{twocollist}\itemsep=0pt
09397bc6
VS
34\twocolitem{\windowstyle{wxHF\_TOOLBAR}}{Help frame has toolbar.}
35\twocolitem{\windowstyle{wxHF\_CONTENTS}}{Help frame has contents panel.}
36\twocolitem{\windowstyle{wxHF\_INDEX}}{Help frame has index panel.}
37\twocolitem{\windowstyle{wxHF\_SEARCH}}{Help frame has search panel.}
c914a1a2 38\twocolitem{\windowstyle{wxHF\_BOOKMARKS}}{Help frame has bookmarks controls.}
ecacdf8f
VS
39\twocolitem{\windowstyle{wxHF\_OPENFILES}}{Allow user to open arbitrary HTML document.}
40\twocolitem{\windowstyle{wxHF\_PRINT}}{Toolbar contains "print" button.}
09397bc6
VS
41\end{twocollist}
42
09397bc6
VS
43\membersection{wxHtmlHelpFrame::Create}\label{wxhtmlhelpframecreate}
44
45\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{const wxString\& }{title = wxEmptyString}, \param{int }{style = wxHF\_DEFAULTSTYLE}}
46
47Creates the frame.
48
49{\it style} is combination of these flags:
50
457e6c54 51\begin{twocollist}\itemsep=0pt
09397bc6
VS
52\twocolitem{\windowstyle{wxHF\_TOOLBAR}}{Help frame has toolbar.}
53\twocolitem{\windowstyle{wxHF\_CONTENTS}}{Help frame has contents panel.}
54\twocolitem{\windowstyle{wxHF\_INDEX}}{Help frame has index panel.}
55\twocolitem{\windowstyle{wxHF\_SEARCH}}{Help frame has search panel.}
56\end{twocollist}
57
09397bc6
VS
58\membersection{wxHtmlHelpFrame::CreateContents}\label{wxhtmlhelpframecreatecontents}
59
60\func{void}{CreateContents}{\param{bool }{show\_progress = FALSE}}
61
62Creates contents panel. (May take some time.)
63
09397bc6
VS
64\membersection{wxHtmlHelpFrame::CreateIndex}\label{wxhtmlhelpframecreateindex}
65
66\func{void}{CreateIndex}{\param{bool }{show\_progress = FALSE}}
67
68Creates index panel. (May take some time.)
69
09397bc6
VS
70\membersection{wxHtmlHelpFrame::CreateSearch}\label{wxhtmlhelpframecreatesearch}
71
72\func{void}{CreateSearch}{\void}
73
74Creates search panel.
75
09397bc6
VS
76\membersection{wxHtmlHelpFrame::Display}\label{wxhtmlhelpframedisplay}
77
78\func{bool}{Display}{\param{const wxString\& }{x}}
79
80\func{bool}{Display}{\param{const int }{id}}
81
457e6c54 82Displays page x. If not found it will give the user the choice of
09397bc6
VS
83searching books.
84Looking for the page runs in these steps:
457e6c54
JS
85
86\begin{enumerate}\itemsep=0pt
87\item try to locate file named x (if x is for example "doc/howto.htm")
88\item try to open starting page of book x
89\item try to find x in contents (if x is for example "How To ...")
90\item try to find x in index (if x is for example "How To ...")
91\end{enumerate}
09397bc6
VS
92
93The second form takes numeric ID as the parameter.
94(uses extension to MS format, <param name="ID" value=id>)
95
b32c6ff0
RD
96\pythonnote{The second form of this method is named DisplayId in
97wxPython.}
98
09397bc6
VS
99\membersection{wxHtmlHelpFrame::DisplayContents}\label{wxhtmlhelpframedisplaycontents}
100
101\func{bool}{DisplayContents}{\void}
102
103Displays contents panel.
104
105\membersection{wxHtmlHelpFrame::DisplayIndex}\label{wxhtmlhelpframedisplayindex}
106
107\func{bool}{DisplayIndex}{\void}
108
109Displays index panel.
110
09397bc6
VS
111\membersection{wxHtmlHelpFrame::GetData}\label{wxhtmlhelpframegetdata}
112
113\func{wxHtmlHelpData*}{GetData}{\void}
114
115Return wxHtmlHelpData object.
116
117\membersection{wxHtmlHelpFrame::KeywordSearch}\label{wxhtmlhelpframekeywordsearch}
118
119\func{bool}{KeywordSearch}{\param{const wxString\& }{keyword}}
120
121Search for given keyword.
122
09397bc6
VS
123\membersection{wxHtmlHelpFrame::ReadCustomization}\label{wxhtmlhelpframereadcustomization}
124
125\func{void}{ReadCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
126
127Reads user's settings for this frame (see \helpref{wxHtmlHelpController::ReadCustomization}{wxhtmlhelpcontrollerreadcustomization})
128
129\membersection{wxHtmlHelpFrame::RefreshLists}\label{wxhtmlhelpframerefreshlists}
130
131\func{void}{RefreshLists}{\param{bool }{show\_progress = FALSE}}
132
7b28757f 133Refresh all panels. This is necessary if a new book was added.
09397bc6
VS
134
135\membersection{wxHtmlHelpFrame::SetTitleFormat}\label{wxhtmlhelpframesettitleformat}
136
137\func{void}{SetTitleFormat}{\param{const wxString\& }{format}}
138
7b28757f
JS
139Sets the frame's title format. {\it format} must contain exactly one "\%s"
140(it will be replaced by the page title).
09397bc6
VS
141
142\membersection{wxHtmlHelpFrame::UseConfig}\label{wxhtmlhelpframeuseconfig}
143
144\func{void}{UseConfig}{\param{wxConfigBase* }{config}, \param{const wxString\& }{rootpath = wxEmptyString}}
145
457e6c54 146Add books to search choice panel.
09397bc6
VS
147
148\membersection{wxHtmlHelpFrame::WriteCustomization}\label{wxhtmlhelpframewritecustomization}
149
150\func{void}{WriteCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
151
457e6c54 152Saves user's settings for this frame (see \helpref{wxHtmlHelpController::WriteCustomization}{wxhtmlhelpcontrollerwritecustomization}).
09397bc6 153
b854b7b8
VS
154\membersection{wxHtmlHelpFrame::AddToolbarButtons}\label{wxhtmlhelpframeaddtoolbarbuttons}
155
156\func{virtual void}{AddToolbarButtons}{\param{wxToolBar *}{toolBar}, \param{int }{style}}
157
158You may override this virtual method to add more buttons into help frame's
457e6c54 159toolbar. {\it toolBar} is a pointer to the toolbar and {\it style} is the style
b854b7b8
VS
160flag as passed to Create method.
161
162wxToolBar::Realize is called immediately after returning from this function.
163
164See {\it samples/html/helpview} for an example.
457e6c54 165