Print Page | Close Window

XTP_PGN_REQUESTEDIT

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=24494
Printed Date: 17 September 2024 at 5:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTP_PGN_REQUESTEDIT
Posted By: asparagusx
Subject: XTP_PGN_REQUESTEDIT
Date Posted: 19 August 2024 at 11:12am
Hallo

Is it possible to 'select' all the text in an inPlaceEdit control, when receiving a grid notification of the above value. I can get a handle to the underlying CEdit control, then using SetSel(0,-1), it momentarily selects the text, but then during the message processing within CJ, the focus is removed and the selection with it.

Any assistance on to how to achieve this?

Anton



Replies:
Posted By: cpede
Date Posted: 02 September 2024 at 7:42am
Have you tried to use
yourGrid.GetEditOptions()->m_bSelectTextOnEdit = TRUE;


-------------
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net