mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-17 06:11:49 +01:00
taille minimale pour les fentres dans Reload()
This commit is contained in:
parent
c7899d0807
commit
22b196f8e9
1 changed files with 13 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
/* along with this program; if not, write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||
|
||||
/* $Id: auxframes.cc,v 1.1 2004/04/08 09:43:06 afrab Exp $ */
|
||||
/* $Id: auxframes.cc,v 1.2 2004/06/20 20:00:09 afrab Exp $ */
|
||||
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
@ -81,8 +81,19 @@ AuxFrame::SwitchDisplay()
|
|||
void
|
||||
AuxFrame::Reload()
|
||||
{
|
||||
#define MINW 50
|
||||
#define MINH 50
|
||||
|
||||
wxSize size;
|
||||
Move(config.getFramePos(classname));
|
||||
SetClientSize(config.getFrameSize(classname));
|
||||
size = config.getFrameSize(classname);
|
||||
|
||||
if (size.GetWidth() < MINW)
|
||||
size.SetWidth(MINW);
|
||||
if (size.GetHeight() < MINH)
|
||||
size.SetHeight(MINH);
|
||||
|
||||
SetClientSize(size);
|
||||
Refresh();
|
||||
if (show) { Show(FALSE); Show(TRUE); }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue