mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-18 10:26:15 +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 */
|
/* along with this program; if not, write to the Free Software */
|
||||||
/* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
/* 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>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@ -81,8 +81,19 @@ AuxFrame::SwitchDisplay()
|
||||||
void
|
void
|
||||||
AuxFrame::Reload()
|
AuxFrame::Reload()
|
||||||
{
|
{
|
||||||
|
#define MINW 50
|
||||||
|
#define MINH 50
|
||||||
|
|
||||||
|
wxSize size;
|
||||||
Move(config.getFramePos(classname));
|
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();
|
Refresh();
|
||||||
if (show) { Show(FALSE); Show(TRUE); }
|
if (show) { Show(FALSE); Show(TRUE); }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue