BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 BCGSuite for MFC
 BCGSuite for MFC
 grid - selected text position in cell

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Insert Smilie
   
Message:

* HTML is OFF
* Forum Code is ON

 
   

T O P I C    R E V I E W
emassicot Posted - 08/23/2021 : 11:38:55 AM
When a user is on a cell in a grid and highlights a substring in the text, do you provide an easy way to tell what has been highlighted? as in the starting character index and the length of the highlight? I need to replace what has been highlighted with another selection the user might make - they will not necessarily be typing directly into the cell to overwrite, so I will need to save the start and end indexes to overwrite once they have made a selection. Hope that makes sense. Thank you for your help.
3   L A T E S T    R E P L I E S    (Newest First)
Support Posted - 08/24/2021 : 06:48:53 AM
Thank you for the reply.

To get the indexes of the selection in the in-place edit please use CEdit::GetSel method or send EM_GETSEL message to the edit. To access an in-place edit window please use CBCGPGridCtrl::GetInPlaceWnd method.

Sincerely yours,
emassicot Posted - 08/24/2021 : 06:25:04 AM
As soon as I start to highlight text in a cell, it goes into edit mode. So yes, I need to select some or all of the text in a cell during in-place edit and know what the start and end indexes of the highlighted text are. Thanks
Support Posted - 08/24/2021 : 03:57:35 AM
Hello,

Thank you for contacting us!

Do you mean selected text in the grid cell in-place edit?

Sincerely yours,

BCGSoft Forums © Copyright (c) 1998-2022 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000