kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #04002
Re: TODO.txt item L1)
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"jeanpierre_charras" <jean-pierre.charras@...>
-
Date:
Fri, 22 Jan 2010 14:43:49 -0000
-
In-reply-to:
<4B58DB28.1040903@...>
-
User-agent:
eGroups-EW/0.82
--- In kicad-devel@xxxxxxxxxxxxxxx, Dick Hollenbeck <dick@...> wrote:
>
> Can somebody spend some time and do some research on this L1) problem
> for me please?
>
> See TODO.txt.
>
Dick,
I believe wxWidget has no problem:
the bug is in passOnFocus()
passOnFocus() assume this is the parent that had the focus:
void LAYER_WIDGET::passOnFocus()
{
wxWindow* parent = GetParent();
parent->SetFocus();
}
This is false, and the focus is not set to the right window.
Here is a change in layer_widget.cpp that fixes this problem:
1)
parent->SetFocus();
changed to
// parent->SetFocus();
2) Line 630
wxWindow* w = FindFocus();
getLayerComp( newNdx + 1 /* 1 is column */ )->SetFocus();
if ( w ) w->SetFocus();
This is an ugly hack, that needs to be more tested, but it works.
Jean-Pierre Charras
Follow ups
References