U++ framework
Do not panic. Ask here before giving up.

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: 740
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: Tue May 05 13:28:28 GMT+2 2026

Total time taken to generate the page: 0.00571 seconds