Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Question about GridCtrl
Question about GridCtrl [message #20182] |
Tue, 24 February 2009 09:54 |
MatthiasG
Messages: 27 Registered: January 2008 Location: Germany
|
Promising Member |
|
|
Hello,
i have a layout consisting of a few EditStrings and a GridCtrl.
How can i get the GridCtrl to set the first cell on input, if the user TABs into it? I mean, focus is first on an EditString field, and user hits TAB. Now the focus gets to the GridCtrl, and i want the GridCtrl to immediately activate the first Cell, without the user having to hit Enter first?
Greetings,
Matthias
|
|
|
Re: Question about GridCtrl [message #20186 is a reply to message #20182] |
Tue, 24 February 2009 11:51 |
|
MatthiasG wrote on Tue, 24 February 2009 03:54 | Hello,
i have a layout consisting of a few EditStrings and a GridCtrl.
How can i get the GridCtrl to set the first cell on input, if the user TABs into it? I mean, focus is first on an EditString field, and user hits TAB. Now the focus gets to the GridCtrl, and i want the GridCtrl to immediately activate the first Cell, without the user having to hit Enter first?
Greetings,
Matthias
|
Hi
There is no direct support for this action in GridCtrl, but here's what you can do:
struct MyGridCtrl : GridCtrl {
virtual void GotFoucs() {
GridCtrl::GotFocus();
StartEdit();
}
}
|
|
|
Goto Forum:
Current Time: Mon Apr 29 08:35:19 CEST 2024
Total time taken to generate the page: 0.03838 seconds
|