- b1 -> top.SameAs (dummy, wxTop, 0);
- b1 -> left.SameAs (dummy, wxLeft, 0);
- b1 -> width.PercentOf (dummy, wxWidth, 100);
- b1 -> bottom.SameAs (dummy, wxBottom, 0);
- m_IndexBox = new wxListBox(dummy, wxID_HTML_INDEXLIST, wxDefaultPosition,
- wxDefaultSize, 0, NULL, wxLB_SINGLE | wxLB_ALWAYS_SB);
- m_IndexBox -> SetConstraints(b1);
+ m_IndexText = new wxTextCtrl(dummy, wxID_HTML_INDEXTEXT, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER);
+ b1 -> top.SameAs (dummy, wxTop, 10);
+ b1 -> left.SameAs (dummy, wxLeft, 10);
+ b1 -> right.SameAs (dummy, wxRight, 10);
+ b1 -> height.AsIs();
+ m_IndexText -> SetConstraints(b1);
+
+ wxLayoutConstraints *b4 = new wxLayoutConstraints;
+ m_IndexButtonAll = new wxButton(dummy, wxID_HTML_INDEXBUTTONALL, _("Show all"));
+
+ b4 -> top.Below (m_IndexText, 10);
+ b4 -> right.SameAs (dummy, wxRight, 10);
+ b4 -> width.AsIs();
+ b4 -> height.AsIs();
+ m_IndexButtonAll -> SetConstraints(b4);
+
+ wxLayoutConstraints *b2 = new wxLayoutConstraints;
+ m_IndexButton = new wxButton(dummy, wxID_HTML_INDEXBUTTON, _("Find"));
+ b2 -> top.Below (m_IndexText, 10);
+ b2 -> right.LeftOf (m_IndexButtonAll, 10);
+ b2 -> width.AsIs();
+ b2 -> height.AsIs();
+ m_IndexButton -> SetConstraints(b2);
+
+ wxLayoutConstraints *b3 = new wxLayoutConstraints;
+ m_IndexList = new wxListBox(dummy, wxID_HTML_INDEXLIST, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_SINGLE | wxLB_ALWAYS_SB);
+ b3 -> top.Below (m_IndexButton, 10);
+ b3 -> left.SameAs (dummy, wxLeft, 0);
+ b3 -> right.SameAs (dummy, wxRight, 0);
+ b3 -> bottom.SameAs (dummy, wxBottom, 0);
+ m_IndexList -> SetConstraints(b3);
+
+#if wxUSE_TOOLTIPS
+ m_IndexButtonAll -> SetToolTip(_("Show all items in index"));
+ m_IndexButton -> SetToolTip(_("Display all index items that contain given substring. Note that this is case sensitive, so 'window' and 'Window' is something else!"));
+#endif //wxUSE_TOOLTIPS
+