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 » GridCtrl - WhenRemoveRow doesn't work
Re: GridCtrl - WhenRemoveRow doesn't work [message #19700 is a reply to message #19699] Tue, 06 January 2009 11:35 Go to previous messageGo to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

lokki wrote on Tue, 06 January 2009 11:49

I think, I have found a bug in GridCtrl, when trying to remove row from datasbase using GridCtrl's WhenRemoveRow callback. Fragment from GridCtrl.cpp:

if(call_whenremoverow)
{
	#ifdef LOG_CALLBACKS
	LGR(2, "WhenRemoveRow()");
	LGR(2, Format("[row: %d]", rowidx));
        WhenRemoveRow();
	#endif
}


This will call the method only in DEBUG mode. My executable is build in "Size" mode and GridCtrl doesn't call the method.



Add:
bool GridCtrl::Key(dword key, int)
{
	if(!IsReadOnly())
	switch(key)
	{
		case K_ENTER:
			ClearSelection();
			#ifdef LOG_CALLBACKS
			LGR(2, "WhenEnter()");
=>>HERE			WhenEnter();
			#endif
...
 
Read Message
Read Message
Read Message
Previous Topic: GridCtrl - crashes on UBUNTU.
Next Topic: GridCtrl: Find and Select Row after Keypress
Goto Forum:
  


Current Time: Mon Aug 25 19:59:53 CEST 2025

Total time taken to generate the page: 0.06402 seconds