News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Bug in GUI

Started by daniloz, February 08, 2011, 08:59:47 AM

Previous topic - Next topic

daniloz

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

Jenna

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

Quote from: jens 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.
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??

Jenna

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.