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 » Immediate Search correction
Immediate Search correction [message #61009] Fri, 18 October 2024 17:48
Didier is currently offline  Didier
Messages: 736
Registered: November 2008
Location: France
Contributor
Hello,

The method GridCtrl::SearchImmediate(bool b) does not work as expected:
When called, I would expect the immediate search function to be activated or not depending on 'b' value
In practice, the check box displayed in the search toolbar has the correct value (so at first everything seems OK) but the real Immediate Search status hasn't change
==> So GridCtrl::SearchImmediate(0), we have inconsistent display and behaviour

I propose the following small correction :
replace :
GridCtrl& SearchImmediate(bool b = true)    { search_immediate     = b; return *this; }


with :
GridCtrl& SearchImmediate(bool b = true)    { search_immediate     = !b;  SetFindOpts(0); return *this; }


Can somebody apply this change please Smile
 
Read Message
Previous Topic: ArrayCtrl: how activated a callbak by an embedded Option
Next Topic: why ArrayCtrl::IsModified(int ii) ASSERT(IsCursor()) ?
Goto Forum:
  


Current Time: Mon Aug 25 16:45:31 CEST 2025

Total time taken to generate the page: 0.05360 seconds