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.