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 » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Retrieving column index like a row
Re: Retrieving column index like a row [message #40583 is a reply to message #40484] Sun, 18 August 2013 16:40 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
crydev wrote on Wed, 07 August 2013 07:31

Hello,

I am using the following code to retrieve the data from the currently selected row in an ArrayCtrl.

const int row = this->mUserAddressList.GetCursor();
if (row >= 0 && mUserAddressList.GetCount() > 0)
{
     // The selected row is not -1, so no error will occur when data retrieval is attempted.
}


I am wondering, is it possible to also retrieve the column the cursor is in? I would like to implement different behavior between different columns.



ArrayCtrl does not have selectable columns, just rows.

However, there is GetClickColumn, which returns the last column you have clicked on.

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: [BUG] GridCtrl uses wrong sorting icon order.
Next Topic: ArrayCtrl.AsQtf bug?
Goto Forum:
  


Current Time: Thu May 16 00:07:29 CEST 2024

Total time taken to generate the page: 0.02229 seconds