Author Topic: Bug in GUI  (Read 5275 times)

daniloz

  • Guest
Bug in GUI
« on: February 08, 2011, 08:59:47 am »
I am seeing a very particular behavior...

To reproduce it:
1- load the example attached
2- hover the cursor over "func" in test.cpp and do a "Find declaration of 'func'" -> a window will pop-up with the possible matches
3- move the window so that the OK button is in the tabs region of "Logs & others" (see attached screenshot)
4- press OK

-> the active editor will change to test.h, as expected, but as soon as you move the mouse, it switches back
to test.cpp

-> if the OK button is in the editor area, this doesn't happen

Hope that helps making C::B better. I love it ! :-)

Info:
- Win Vista 32-bit
- C::B compiled from trunk svn r.6976

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Bug in GUI
« Reply #1 on: February 08, 2011, 09:30:46 am »
This only happens if the okay button is over the tabs of the infopane.
I know the reason, but I'm not sure how easy it is to fix.

daniloz

  • Guest
Re: Bug in GUI
« Reply #2 on: February 08, 2011, 09:37:41 am »
This only happens if the okay button is over the tabs of the infopane.
I know the reason, but I'm not sure how easy it is to fix.
Yes, only if the okay button is over the tabs... This is ok for me, just wanting to make C::B better...

I'm curious, what's the reason??

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Bug in GUI
« Reply #3 on: February 08, 2011, 10:08:25 am »
A windows-hack to make mousewheel-scrolling possible.
It stores the actual focus and sets the focus on the tabcontrol in mouse-enter event and restores the focus in mouseleave-event.
The editor does not have the focus immediately after closing it, so the former focus is restored.