Turtle: Fixed initial focus issue #677

git-svn-id: svn://ultimatepp.org/upp/trunk@6891 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-02-09 17:32:50 +00:00
parent 77da65c2a7
commit f322b58d41
3 changed files with 3 additions and 2 deletions

View file

@ -158,7 +158,7 @@ void Ctrl::DoKillFocus(Ptr<Ctrl> pfocusCtrl, Ptr<Ctrl> nfocusCtrl)
GuiLock __;
if(pfocusCtrl && !pfocusCtrl->destroying) {
pfocusCtrl->StateH(FOCUS);
LLOG("LostFocus: " << Desc(pfocusCtrl));
LLOG("LostFocus: " << Name(pfocusCtrl));
pfocusCtrl->LostFocus();
}
if(pfocusCtrl && pfocusCtrl->parent && !pfocusCtrl->parent->destroying)

View file

@ -2,7 +2,7 @@
NAMESPACE_UPP
#define LLOG(x) // DLOG(x)
#define LLOG(x) // DLOG(x)
String TopWindow::GetDesc() const
{

View file

@ -84,6 +84,7 @@ void TopWindow::Open(Ctrl *owner)
popup = false;
SetRect(frame->GetClient());
SyncCaption();
PlaceFocus();
if(state == MAXIMIZED)
frame->Maximize();
}