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 » Newbie question: ArrayCtrl::IsModified(int ii) not work at expected.
Newbie question: ArrayCtrl::IsModified(int ii) not work at expected. [message #31555] Mon, 14 March 2011 06:07 Go to previous message
Lance is currently offline  Lance
Messages: 526
Registered: March 2007
Contributor
I need to keep track of the edit status of the current row in a ArrayCtrl. I connected a callback to its WhenUpdateRow event.

void TransactionCtrl::TransactionUpdateRow()
{

	int i;
	if(trans.IsCursor() )
	{
		i=trans.GetCursor();
		msgs.Insert(-1, String().Cat()<<"Cursor at "<<i<<"\n");
	}else
		return;
	if( trans.IsModified(i))
	{
		changed=true;
		msgs.Insert(-1, "MODIFIED - IN Update Row\n");
	}
}


It never worked as I had expected. By the way, the column I tested is using
trans.AddColumn("Name").Edit(AnEditStringObject);


Any idea?

Thanks,

Lance
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wrapping text in ArrayCtrl cells
Next Topic: GridCtrl questions
Goto Forum:
  


Current Time: Tue Apr 16 14:57:51 CEST 2024

Total time taken to generate the page: 0.01657 seconds