From ce77f4b0675b0279ed1e3484d1dd26db2891299c Mon Sep 17 00:00:00 2001 From: wittend99 Date: Tue, 26 Mar 2013 15:22:07 +0000 Subject: [PATCH] Reduce minimum size of the top level frame to let it be used on 1024 x 600 displays. git-svn-id: https://svn.code.sf.net/p/freetel/code@1228 01035d8c-6547-0410-b346-abe4f91aad63 --- fdmdv2/src/fdmdv2_main.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/fdmdv2/src/fdmdv2_main.cpp b/fdmdv2/src/fdmdv2_main.cpp index 7c4ef9cc..ac144cd0 100644 --- a/fdmdv2/src/fdmdv2_main.cpp +++ b/fdmdv2/src/fdmdv2_main.cpp @@ -189,9 +189,9 @@ MainFrame::MainFrame(wxWindow *parent) : TopFrame(parent) wxConfigBase *pConfig = wxConfigBase::Get(); // restore frame position and size - int x = pConfig->Read(wxT("/MainFrame/top"), 50); - int y = pConfig->Read(wxT("/MainFrame/left"), 50); - int w = pConfig->Read(wxT("/MainFrame/width"), 650); + int x = pConfig->Read(wxT("/MainFrame/top"), 20); + int y = pConfig->Read(wxT("/MainFrame/left"), 20); + int w = pConfig->Read(wxT("/MainFrame/width"), 550); int h = pConfig->Read(wxT("/MainFrame/height"), 400); // note: run DebugView program to see this message under windows @@ -1548,6 +1548,15 @@ void MainFrame::OnHelpAbout(wxCommandEvent& event) wxMessageBox(msg, wxT("About"), wxOK | wxICON_INFORMATION, this); #endif // _USE_ABOUT_DIALOG +#ifdef USE_SIMPLE_ABOUT_DIALOG + wxUnusedVar(event); + wxAboutDialogInfo info; + info.SetCopyright(_("HAMLib Test")); + info.SetLicence(_("GPL v2 or later")); + info.SetDescription(_("Short description goes here")); + ::wxAboutBox(info); +#endif // USE_SIMPLE_ABOUT_DIALOG + } //bool wxLaunchDefaultBrowser(http:("http://freedv.org/"); -- 2.25.1