View and scrolling 3D and module print in CvPcb

Bug #942604 reported by gautier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Unassigned

Bug Description

Kicad Version:2012-01-19 BZR3256
On CvPcb when you want to display the footprint and 3D, you clic on "selected foot print" and you scroll foot print by arrows, footprint and 3D windows disappear behind the CvPcb windows and the arrow scolling function changes.

Scrolling footprint, viewing foot print and 3D ran correctly in Kicad Version (2011-07-08 BZR3044)

OS: windows 7

Tags: cvpcb
Revision history for this message
gautier (gautier-vincent) wrote :
Martin Errenst (imp-d)
tags: added: cvpcb
Revision history for this message
xzcvczx (xzcvczx) wrote :

I have created a patch that will SetFocus() back to the footprint after the viewer is updated, I haven't found anywhere this causes a problem

xzcvczx (xzcvczx)
Changed in kicad:
status: New → Confirmed
Revision history for this message
jean-pierre charras (jp-charras) wrote :

"3D windows disappear behind the CvPcb windows" is the normal behavior.
(It was asked a long time ago, when the behavior was not this current behavior)

But what is the meaning of:
"and the arrow scrolling function changes" ?

Changed in kicad:
status: Confirmed → Incomplete
Revision history for this message
xzcvczx (xzcvczx) wrote :

If you are focussed on the list of footprints then you used to be able to use the up and down arrow key on the keyboard to look at each footprint which would be shown in the modview and footprint view windows, This would allow you to preview every footprint in the list if you so chose without having to use the mouse.

Apparently this behaviour changed at some point and when you you the modview and footprint view windows open the footprint list loses focus. As i can not think of a better widget to recieve focus in this case the patch sets focus back to the footprint list so the arrow keys can be used there

xzcvczx (xzcvczx)
Changed in kicad:
status: Incomplete → Confirmed
Revision history for this message
jean-pierre charras (jp-charras) wrote :

I do not have any issue, both on W7 and Kubuntu 14.04 when using arrow keys.
I can use them to explore the footprint list (or the component list) and see the footprint and 3d viewer updated.

What is exactly the issue?
It could be specific to a WM and/or an OS.

Revision history for this message
xzcvczx (xzcvczx) wrote :

In the attached screenshot even though the cvpcb window is in focus the right most pane is not focused (as seen by it being grey highlight instead of blue, I will try and take a screenshot of it patched soon) so that when i hit the up and down arrows on the keyboard nothing happens.

As this bug was originally filed under windows and i am on a mac i assumed it was multi-platform, Does the patch cause issues on other platforms (unfortunately i only have osx so i am unable to test it on other platforms)

Revision history for this message
xzcvczx (xzcvczx) wrote :

this is with patch applied

Revision history for this message
jean-pierre charras (jp-charras) wrote :

Simon,
Your patch does not work well: it gives the focus to the footprint list box even if an other listbox (the component list box) has the focus.
It make impossible the component list box scrolling by arrow keys.
Attached a modified patch.
Can you test it?

Revision history for this message
xzcvczx (xzcvczx) wrote :

ok i will test it soon, I am surprised that its able to steal focus from any other widget as the code is only in the footprint event widget. Must be a difference between platforms

thanks jp

Revision history for this message
jean-pierre charras (jp-charras) wrote :

This is not surprising, and there is no a difference between platforms.
This is a normal behavior.
When a new component is selected in component listlist, the footprint specified in the component is selected in the footprint list, and a footprint event selection is generated, (al least if the selection has changed) even if the footprint listbox has not the focus.

Revision history for this message
xzcvczx (xzcvczx) wrote :

ah, there is the problem that was catching me out... On when you select a component in the middle listbox that has a footprint already assigned to it the right-most(footprint) listbox will scroll to put the footprint selected in the view but doesn't select it.

Revision history for this message
xzcvczx (xzcvczx) wrote :

On OSX

Revision history for this message
xzcvczx (xzcvczx) wrote :

And your patch fixes this bug on OSX, Thanks

Revision history for this message
jean-pierre charras (jp-charras) wrote :

Focus issue on scrolling fixed in rev 6836

Changed in kicad:
status: Confirmed → Fix Committed
Revision history for this message
gautier (gautier-vincent) wrote : RE: [Bug 942604] Re: View and scrolling 3D and module print in CvPcb

Thanks I used Kicad 4.02 now.

-----Message d'origine-----
De : <email address hidden> [mailto:<email address hidden>] De la part de
Simon Wells
Envoyé : 27 May 2016 15:33
À : <email address hidden>
Objet : [Bug 942604] Re: View and scrolling 3D and module print in CvPcb

On OSX

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/942604

Title:
  View and scrolling 3D and module print in CvPcb

Status in KiCad:
  Confirmed

Bug description:
  Kicad Version:2012-01-19 BZR3256
  On CvPcb when you want to display the footprint and 3D, you clic on
"selected foot print" and you scroll foot print by arrows, footprint and 3D
windows disappear behind the CvPcb windows and the arrow scolling function
changes.

  Scrolling footprint, viewing foot print and 3D ran correctly in Kicad
  Version (2011-07-08 BZR3044)

  OS: windows 7

To manage notifications about this bug go to:
https://bugs.launchpad.net/kicad/+bug/942604/+subscriptions

Revision history for this message
xzcvczx (xzcvczx) wrote :

it has been backported to 4.0 branch so it should be in 4.0.3 when its released

Revision history for this message
gilou (netbomo) wrote :

Hi,
I'm using Kicad V5 rc1 :

Application: kicad
Version: (5.0.0-rc2-dev-45-ge3c71efbe), release build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.52.1 OpenSSL/1.0.2l zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Platform: Linux 4.9.0-4-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.62.0
    Curl: 7.52.1
    Compiler: GCC 6.3.0 with C++ ABI 1010

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_ACTION_MENU=OFF
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_SPICE=ON

When I'm on cvpcb, if the footprint window is open, I can't use arrows key in the footprint list (right list). the mouse focus is directly putted in the footprint view and move by arrow clic in it.

I'm on debian stretch.

Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.