snakefoot/cgridlistctrlex

Button click events consumed by control?

Closed this issue · 3 comments

What steps will reproduce the problem?
1. Using the latest demo project, go into edit mode on a cell, any cell. 
2. While on edit mode press the OK or Cancel or any other button.
3. You shall notice that u actually need two clicks to press the button. 
4. In normal MFC controls, e.g. a combobox , even if it has focus, when you 
click on a button the button will be clicked, regardless of where the focus is.

What is the expected output? What do you see instead?
I expect that when I click the button, even if it does not have focus, it 
should be clicked.

What version of the product are you using? On what operating system?
Windows XP 32 bit , Windows 7 64 bit, version 2.0

Please provide any additional information below.


Original issue reported on code.google.com by stef.ana...@gmail.com on 4 May 2012 at 11:31

Thank you for reporting this. It has apparently been an old bug. Annoying that 
I have just released 2.0. Well I guess there will also be a ver. 2.1 next year 
:)

I have fixed the bug at Google Code, so just recompile latest source and the 
behavior should be as you expect.

Original comment by sweaty1 on 4 May 2012 at 2:32

  • Changed state: Fixed
Just tested it. Works as intended. Good job :) 

Original comment by stef.ana...@gmail.com on 4 May 2012 at 2:43

Found a small bug, when using the CComboBox column editor, where the focus is 
not properly returned to the grid-list-ctrl. The bug has been fixed.

Be aware that the very latest commits includes changes to support a new column 
trait for HyperLinks, which you might not be interested in.

Original comment by sweaty1 on 7 May 2012 at 10:41