Update of /cvsroot/audacity/audacity-src/src/prefs
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv26771
Modified Files:
PrefsDialog.cpp
Log Message:
Allow preferences dialog resizing...still limiting to 800x600 maximum size.
Index: PrefsDialog.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/prefs/PrefsDialog.cpp,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- PrefsDialog.cpp 27 May 2009 05:52:03 -0000 1.63
+++ PrefsDialog.cpp 7 Jun 2009 11:24:12 -0000 1.64
@@ -69,16 +69,20 @@
END_EVENT_TABLE()
PrefsDialog::PrefsDialog(wxWindow * parent)
-: wxDialog(parent, wxID_ANY, wxString(_("Audacity Preferences")))
+: wxDialog(parent, wxID_ANY, wxString(_("Audacity Preferences")),
+ wxDefaultPosition,
+ wxDefaultSize,
+ wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
{
ShuttleGui S(this, eIsCreating);
S.StartVerticalLay(true);
{
- S.StartHorizontalLay(wxALIGN_LEFT);
+ S.StartHorizontalLay(wxALIGN_LEFT | wxEXPAND, true);
{
mCategories = new wxTreebook(this, wxID_ANY);
- S.AddWindow(mCategories);
+ S.Prop(1);
+ S.AddWindow(mCategories, wxEXPAND);
wxWindow *w;
// Parameters are: AppPage( page, name, IsSelected, imageId)
@@ -121,10 +125,11 @@
mCategories->GetTreeCtrl()->EnsureVisible(mCategories->GetTreeCtrl()->GetRootItem());
#endif
- mCategories->SetSizeHints(-1, -1, 790, 600); // 790 = 800 - (border * 2)
+// mCategories->SetSizeHints(-1, -1, 790, 600); // 790 = 800 - (border * 2)
Layout();
Fit();
- SetSizeHints(-1, -1, 800, 600);
+ wxSize sz = GetSize();
+ SetSizeHints(sz.x, sz.y, 800, 600);
// Center after all that resizing, but make sure it doesn't end up
// off-screen
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs