Code: Select all
long buttons = eOkButton;Code: Select all
long buttons = eHelpButton | eOkButton;Code: Select all
long buttons = eOkButton;Code: Select all
long buttons = eHelpButton | eOkButton;I'll take you up on that offer EdgarEdgar wrote:Obviously, there is no handler for the Help button but it should not be too hard to write and I would be glad to help out.
Code: Select all
Index: src/effects/BassTreble.cpp
===================================================================
--- src/effects/BassTreble.cpp (revision 12324)
+++ src/effects/BassTreble.cpp (working copy)
@@ -281,7 +281,7 @@
BassTrebleDialog::BassTrebleDialog(EffectBassTreble *effect,
wxWindow * parent):
- EffectDialog(parent, _("Bass and Treble"), PROCESS_EFFECT),
+ EffectDialog(parent, _("Bass and Treble"), PROCESS_EFFECT, wxDEFAULT_DIALOG_STYLE, eHelpButton), // stf
mEffect(effect)
{
Init();
Code: Select all
void BassTrebleDialog::OnHelp(wxCommandEvent & /* event */)
{
AudacityProject * pProj = GetActiveProject();
wxString HelpMode = pProj->mHelpPref;
wxString page = FileNames::HtmlHelpDir() + wxT("man/bass_and_treble.html");
if ((wxFileExists(page)) && (HelpMode == wxT("Local"))) {
page = wxT("file://") + page;
} else {
page = wxT("http://manual.audacityteam.org/o/man/bass_and_treble.html");
}
OpenInDefaultBrowser(page);
}
I don't think so. Each help button (dialog) will require a custom (non-translated) HTML string.steve wrote: Would it be better to move this to ErrorDialog.cpp along with void ShowHelpDialog ?