- if (style & wxHF_CONTENTS) {
- wxWindow *dummy = new wxPanel(m_NavigPan, wxID_HTML_INDEXPAGE);
-
- if (style & wxHF_BOOKMARKS) {
- wxLayoutConstraints *b1 = new wxLayoutConstraints;
- wxBitmapButton *bmpbt = new wxBitmapButton(dummy, wxID_HTML_BOOKMARKSREMOVE, wxBITMAP(wbkdel), wxDefaultPosition, wxSize(20,20));
-
- b1 -> top.SameAs (dummy, wxTop, 10);
- b1 -> right.SameAs (dummy, wxRight, 10);
- b1 -> height.AsIs();
- b1 -> width.AsIs();
- bmpbt -> SetConstraints(b1);
-
- wxLayoutConstraints *b2 = new wxLayoutConstraints;
- wxBitmapButton *bmpbt2 = new wxBitmapButton(dummy, wxID_HTML_BOOKMARKSADD, wxBITMAP(wbkadd), wxDefaultPosition, wxSize(20,20));
-
- b2 -> top.SameAs (dummy, wxTop, 10);
- b2 -> right.LeftOf (bmpbt, 2);
- b2 -> height.AsIs();
- b2 -> width.AsIs();
- bmpbt2 -> SetConstraints(b2);
-
-#if wxUSE_TOOLTIPS
- bmpbt -> SetToolTip(_("Remove current page from bookmarks"));
- bmpbt2 -> SetToolTip(_("Add current page to bookmarks"));
-#endif //wxUSE_TOOLTIPS
-
- wxLayoutConstraints *b3 = new wxLayoutConstraints;
- m_Bookmarks = new wxComboBox(dummy, wxID_HTML_BOOKMARKSLIST, wxEmptyString,
- wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY | wxCB_SORT);
- m_Bookmarks -> Append(_("(bookmarks)"));
+ if ( style & wxHF_CONTENTS )
+ {
+ wxWindow *dummy = new wxPanel(m_NavigNotebook, wxID_HTML_INDEXPAGE);
+ wxSizer *topsizer = new wxBoxSizer(wxVERTICAL);
+
+ topsizer->Add(0, 10);
+
+ dummy->SetAutoLayout(TRUE);
+ dummy->SetSizer(topsizer);
+
+ if ( style & wxHF_BOOKMARKS )
+ {
+ m_Bookmarks = new wxComboBox(dummy, wxID_HTML_BOOKMARKSLIST,
+ wxEmptyString,
+ wxDefaultPosition, wxDefaultSize,
+ 0, NULL, wxCB_READONLY | wxCB_SORT);
+ m_Bookmarks->Append(_("(bookmarks)"));