mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
77da65c2a7
commit
f322b58d41
3 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
NAMESPACE_UPP
|
||||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
#define LLOG(x) // DLOG(x)
|
||||
|
||||
String TopWindow::GetDesc() const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ void TopWindow::Open(Ctrl *owner)
|
|||
popup = false;
|
||||
SetRect(frame->GetClient());
|
||||
SyncCaption();
|
||||
PlaceFocus();
|
||||
if(state == MAXIMIZED)
|
||||
frame->Maximize();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue