Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » tracking GridCtrl selection
tracking GridCtrl selection [message #32709] Thu, 02 June 2011 19:01 Go to previous message
bushman is currently offline  bushman
Messages: 134
Registered: February 2009
Experienced Member
Please bear in mind that I'm totally newbie in using
GridCtrl, when considering the folowing questions:

Is there a way to track selections in a GridCtrl?
I mean, some method like
Point GetSelectionBegin()

or
Point Get SelectionEnd()


, which returns the (col, row) coordinates for the
selection begin and selection end, respectively.
Unless I'm mistaken, I didn't see any GridCtrl method
that does it, while browsing GridCtrl with Assist.
Apparently, the only public methods related to selection
tracking are GetSelectedCount(), GetSelectedItemsCount()
and GetSelectionData(), which I assume return the number of
rows selected, the number of cells selected and the
selected data, respectively, allthough I do not have
the slightest idea on how to use the third one to retrieve
selected data.
BTW, method GetSelectedItemsCount() returns different
results to the selection count, depending whether you do either
a CTRL+LMB or a Shift+LMB selection (they differ by 1).
In other words, how can I walk through a selection path in GridCtrl,
checking each selected cell content, cell state, etc.,
one by one, once
a user finishes making a selection with the mouse?

Help appreciated, thanks in advance

 
Read Message
Read Message
Read Message
Previous Topic: No preprocessor output
Next Topic: How to set GridCtrl header font size?
Goto Forum:
  


Current Time: Fri Jul 18 19:31:41 CEST 2025

Total time taken to generate the page: 0.04663 seconds