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.
Re: Newbie question: ArrayCtrl::IsModified(int ii) not work at expected. [message #31652 is a reply to message #31555] Fri, 18 March 2011 20:40 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14255
Registered: November 2005
Ultimate Member
Lance wrote on Mon, 14 March 2011 01:07

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.

Lance


Well, I know for sure it works. So I guess something else is wrong; hard to say without seeing more of your code.
 
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: Mon Apr 28 13:41:45 CEST 2025

Total time taken to generate the page: 0.00659 seconds