Reduce minimum size of the top level frame to let it be used on 1024 x 600 displays.
authorwittend99 <wittend99@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 26 Mar 2013 15:22:07 +0000 (15:22 +0000)
committerwittend99 <wittend99@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 26 Mar 2013 15:22:07 +0000 (15:22 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@1228 01035d8c-6547-0410-b346-abe4f91aad63

fdmdv2/src/fdmdv2_main.cpp

index 7c4ef9cc81e338ae128bacc0fd0e2dad0ce114de..ac144cd030f1d5e80a09c01f0eaea747e1b992d5 100644 (file)
@@ -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/");