Tab behaviour |
Post Reply |
Author | |
Osiris
Groupie Joined: 18 June 2007 Status: Offline Points: 29 |
Post Options
Thanks(0)
Posted: 11 July 2007 at 4:40am |
Hello,
I want to implement the following behaviour for a property grid. After a value has been altered via keyboard input and the user hits the tab key the focus shall be set to the next property item and its content shall be selected automaticaly, so that the value is overwritten as soon as a key is pressed. Does the Xtreme PropertyGrid already have this behaviour or do I have to implement it myself? If second, how would I do that (can I catch the TabPressed event and set the focus tio the next item)? Thanks Stefan |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
You can call m_wndPropertyGrid.NavigateItems(TRUE); to allow tab all items.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Osiris
Groupie Joined: 18 June 2007 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
Hi Oleg,
thank you for the fast response! But is there a way to prevent the key portion of an item (left part) from getting the focus? I want to step via the tab key through the item values only (value1->value2->value3 instead of value1->key2->value2->key3->value3). Thanks in advance Stefan |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Override
void CXTPPropertyGrid::OnNavigate(XTPPropertyGridUI nUIElement, BOOL bForward, CXTPPropertyGridItem* pItem) method.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Hello Oleg;
I need your help, how to Overwrite OnNavigate to get the results Stefan mentioned in his previous post.
Which part of OnNavigate has to be changed to tab through key1 -> key 2 -> key 3 ...
Thanks in advance
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
Barto
Groupie Joined: 27 February 2005 Location: Germany Status: Offline Points: 60 |
Post Options
Thanks(0)
|
I did something like this to move the focus to the next item upon pressing RETURN:
this is code for XTP 9.81, dunno if it still works...
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Hi Barto; Thanks for your suggestions. In my case this is to restrictive because it depends on the edit control to be activated to navigate from item key to item key. Additional, in our case we have several items that do not have CXTPPropertyGridInplaceEdit derived edit controls. This would result in code duplication or multiple inheritance. So I have to look for another solution to get the required results. |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Hi;
If someone is interrested in this. I got informed that the behaviour requested will be contained in the next release.
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |