search progress bar has smooth gauge under win95 now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -476,7 +476,7 @@ bool wxHtmlHelpFrame::KeywordSearch(const wxString& keyword)
|
|||||||
|
|
||||||
wxProgressDialog progress(_("Searching..."), _("No matching page found yet"),
|
wxProgressDialog progress(_("Searching..."), _("No matching page found yet"),
|
||||||
status.GetMaxIndex(), this,
|
status.GetMaxIndex(), this,
|
||||||
wxPD_APP_MODAL | wxPD_CAN_ABORT | wxPD_AUTO_HIDE);
|
wxPD_APP_MODAL | wxPD_CAN_ABORT | wxPD_AUTO_HIDE | wxGA_SMOOTH);
|
||||||
|
|
||||||
while (status.IsActive()) {
|
while (status.IsActive()) {
|
||||||
curi = status.GetCurIndex();
|
curi = status.GetCurIndex();
|
||||||
@@ -510,6 +510,7 @@ void wxHtmlHelpFrame::CreateContents(bool show_progress)
|
|||||||
wxProgressDialog *progress = NULL;
|
wxProgressDialog *progress = NULL;
|
||||||
wxString proginfo;
|
wxString proginfo;
|
||||||
|
|
||||||
|
wxLogDebug("building context");
|
||||||
m_ContentsBox->Clear();
|
m_ContentsBox->Clear();
|
||||||
|
|
||||||
int cnt = m_Data->GetContentsCnt();
|
int cnt = m_Data->GetContentsCnt();
|
||||||
@@ -559,6 +560,7 @@ void wxHtmlHelpFrame::CreateContents(bool show_progress)
|
|||||||
if (show_progress)
|
if (show_progress)
|
||||||
delete progress;
|
delete progress;
|
||||||
m_ContentsBox -> Expand(roots[0]);
|
m_ContentsBox -> Expand(roots[0]);
|
||||||
|
wxLogDebug("...done");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user