Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl, Editing and DoubleClick
GridCtrl, Editing and DoubleClick [message #39987] |
Wed, 22 May 2013 17:48  |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello Uno
In a grid with EditString columns when the user double clicks on a column without EditString I would like to:
- Get WhenDoubleLeft events
- Avoid to open the first EditString
Now if 5st field has an EditString and user double clicks over the 2nd field, the 5st field is opened. And, because of it, the grid losts the double click.
A simple solution would be to set in GridCtrl.cpp, line 6579:
UpdateCtrls(UC_SHOW | UC_CTRLS);
Is it possible?
Best regards
Iñaki
[Updated on: Wed, 22 May 2013 17:58] Report message to a moderator
|
|
|
|
|
Re: GridCtrl, Editing and DoubleClick [message #40078 is a reply to message #40076] |
Wed, 05 June 2013 23:18   |
|
koldo wrote on Wed, 05 June 2013 06:54 | Thank you Uno
Quote: | GridCtrl already has WhenLeftDouble. Have you tried it?
| Of course. The problem is that the opened EditString captures it.
|
I see.. Then the only solution is too create you own grid control and override ChildMouseEvent method. I could add callback there but IMO this is too specific case to do that.
You could also try the opposite way and react on double click in control that is attached as editor in grid's column.
|
|
|
|
Re: GridCtrl, Editing and DoubleClick [message #40869 is a reply to message #40079] |
Thu, 26 September 2013 12:48  |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello Daniel
grid.GotoFirstEdit(false) is enough. Edit is highlighted but it does not get neither the cursor nor the focus, so GridCtrl handles the WhenLeftDouble().
Best regards
Iñaki
|
|
|
Goto Forum:
Current Time: Tue Apr 29 08:44:38 CEST 2025
Total time taken to generate the page: 0.00473 seconds
|