.developing rainbow

git-svn-id: svn://ultimatepp.org/upp/trunk@3609 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-07-05 10:02:44 +00:00
parent e713b6ff5b
commit e057acbf48
3 changed files with 8 additions and 2 deletions

View file

@ -352,6 +352,12 @@ TopWindow& TopWindow::Title(const char *s)
return Title(WString(s));
}
void TopWindow::SetMinSize(Size sz)
{
minsize = sz;
SyncSizeHints();
}
TopWindow& TopWindow::Sizeable(bool b)
{
sizeable = b;

View file

@ -108,7 +108,7 @@ public:
TopWindow& CenterOwner() { center = 1; return *this; }
TopWindow& CenterScreen() { center = 2; return *this; }
void SetMinSize(Size sz) { minsize = sz; }
void SetMinSize(Size sz);
void Open(Ctrl *owner);
void Open();

View file

@ -854,7 +854,7 @@ void Ctrl::EventLoop0(Ctrl *ctrl)
bool quit = false;
ProcessEvents(&quit);
while(!EndSession() && !quit && ctrl ? ctrl->IsOpen() && ctrl->InLoop() : GetTopCtrls().GetCount())
while(!EndSession() && !quit && (ctrl ? ctrl->IsOpen() && ctrl->InLoop() : GetTopCtrls().GetCount()))
{
// LLOG(GetSysTime() << " % " << (unsigned)msecs() % 10000 << ": EventLoop / GuiSleep");
SyncCaret();