this->gArchive = XRCCTRL(* this, "gArchive", wxGauge);\r
this->fCancel = false;\r
this->nOverwriteMode = wxID_OK;\r
+ this->Update();\r
g_procDlg = this;\r
\r
::wxXmlResource::Get()->Unload(L_DIR_S_XRC wxT("dlg_process.xrc"));\r
this->ebSource->ChangeValue(piInfo->fiInfo.fnFileName.GetFullPath());\r
this->gArchive->SetRange(piInfo->fiInfo.nUnpackedSize);\r
this->gArchive->SetValue(0);\r
+ this->Update();\r
s_nInterval = piInfo->fiInfo.nUnpackedSize / 10;\r
break;\r
case 0x1001:\r
}\r
case TPI_PARAM_NEXTVOLUME:\r
{\r
- wxFileDialog fd(this, _("Select next volume of: ") + piInfo->fiInfo.fnFileName.GetFullName());\r
- fd.SetWindowStyleFlag(wxFD_FILE_MUST_EXIST);\r
+ wxFileDialog fd(this, _("Choose next volume of: ") + piInfo->fiInfo.fnFileName.GetFullName(), piInfo->fiInfo.fnFileName.GetPath(), wxEmptyString, wxFileSelectorDefaultWildcardStr, wxFD_OPEN | wxFD_FILE_MUST_EXIST);\r
if (fd.ShowModal() == wxID_CANCEL)\r
{\r
this->fCancel = true;\r
\r
void OverwriteDialog::OnBtnBrowse(wxCommandEvent&)\r
{\r
- wxFileDialog fd(this);\r
- fd.SetWindowStyleFlag(wxFD_SAVE | wxFD_OVERWRITE_PROMPT);\r
- fd.SetPath(this->ebTarget->GetValue());\r
+ wxFileName fn(this->ebTarget->GetValue());\r
+ wxFileDialog fd(this, _("Choose a file"), fn.GetPath(), fn.GetFullName(), wxFileSelectorDefaultWildcardStr, wxFD_SAVE | wxFD_OVERWRITE_PROMPT);\r
if (fd.ShowModal() == wxID_OK)\r
{\r
this->ebTarget->SetValue(fd.GetPath());\r