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: detecting a change of a search string
Re: GridCtrl: detecting a change of a search string [message #32968 is a reply to message #32965] Sun, 26 June 2011 15:17 Go to previous message
Novo is currently offline  Novo
Messages: 1430
Registered: December 2006
Ultimate Contributor
unodgs wrote on Sun, 26 June 2011 07:11

Could you explain what you mean by "find.WhenEnter it also will be reset when search options change"?


void GridCtrl::SetFindOpts(int n)
{
	switch(n)
	{
		case 0:
			search_immediate = !search_immediate;
			if(!search_immediate)
			{
				find <<= THISBACK(Nothing);
				find.WhenEnter = THISBACK(DoFind);
			}
			else
			{
				find <<= THISBACK(DoFind);
				find.WhenEnter = THISBACK(Nothing);
			}
			break;
		case 1:
			search_hide = !search_hide;
			if(!String(~find).IsEmpty())
			{
				if(!search_hide)
					ShowRows();
				else
					DoFind();
			}
			break;
		case 2:
			search_highlight = !search_highlight;
			if(!search_highlight)
			{
				ClearFound(false);
				Refresh();
			}
			else
				DoFind();
			break;
		case 3:
			search_case = !search_case;
			DoFind();
			break;
	}
}


GridCtrl::SetFindOpts() resets find.WhenEnter and find.WhenAction when search_immediate option is changed. Sorry, it is just one option.

I believe member find was made public by mistake.


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Simpler way to access Option in GridCtrl
Next Topic: GridCtrl paste and WhenAction
Goto Forum:
  


Current Time: Sat Aug 30 04:21:05 CEST 2025

Total time taken to generate the page: 0.03853 seconds