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