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  |
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
|
|
|
Goto Forum:
Current Time: Sat Aug 30 08:54:41 CEST 2025
Total time taken to generate the page: 0.03811 seconds
|