how to set focus to a field |
Post Reply |
Author | |
vjedlicka
Senior Member Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
Posted: 11 October 2017 at 5:43am |
How do I set focus to a text field in a property grid? This code does not work: CXTPPropertyGridItem* l_pItem = m_wndPropertyGrid.FindItem(pt_IDS_PROP_WIRE_NAME); if (l_pItem) { l_pItem->SetFocusToInplaceControl(); } |
|
Thank you
Vaclav --------------------- ToolkitPro 20.1.0 VS2010-2022, Windows 11 |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello,
You need call OnSelect() before SetFocusToInplaceControl(), However OnSelect() is protected, you need to inherit CXTPPropertyGridItem and add method to public call this method.
Regards, Oleksandr Lebed |
|
vjedlicka
Senior Member Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
|
It works,
Thanks Vaclav |
|
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 |