Page 1 of 1

Incremental Combobox

Posted: Tue Aug 26, 2014 11:42 pm
by TimStone
The Combobox class from 08/2013 handles incremental search as the user enters characters. The exact same code with the current version of combobox does not.

PRG code:

Code: Select all | Expand


    REDEFINE COMBOBOX oCbx VAR oClir:clicty ITEMS aCit ID 865 OF oDcl ;
        STYLE CBS_DROPDOWN  MESSAGE "Enter the clients city" UPDATE
 


RC Code:

Code: Select all | Expand


  CONTROL "", 865, "ComboBox", WS_BORDER|CBS_DROPDOWN|WS_VSCROLL|WS_TABSTOP, 58, 100, 154, 191
 


What changed in the class, and what do I need to do to get it to work with the lastest code ?

Re: Incremental Combobox

Posted: Wed Aug 27, 2014 2:03 pm
by James Bott
Tim,

Try setting:

Code: Select all | Expand

oCbx:lIncremental:=.t.


I think it defaults to .f.

James

Re: Incremental Combobox

Posted: Wed Aug 27, 2014 4:32 pm
by TimStone
That was the first thing I tried before doing the post, and it was not working for me.

It actually has to be lIncSearch := .t.

Tim

Re: Incremental Combobox

Posted: Wed Aug 27, 2014 9:00 pm
by James Bott
Tim,

Then I would suggest doing a file compare on the current and previous version.

James

Re: Incremental Combobox

Posted: Wed Aug 27, 2014 9:04 pm
by TimStone
I did that and there are a series of modifications to the incremental search. I'm assuming there is a shift in either the rc parameters, or the flag(s) I need to set, and that is not documented in the comparison.

I figured Antonio would know ...

Tim

Re: Incremental Combobox

Posted: Thu Aug 28, 2014 10:11 pm
by TimStone
Please respond !

Re: Incremental Combobox

Posted: Fri Aug 29, 2014 8:14 am
by Antonio Linares
Tim,

Please compile And link The combobox.prg of The previous version that worked fine as another prg of your app until we check it, thanks

Re: Incremental Combobox

Posted: Fri Aug 29, 2014 3:41 pm
by TimStone
That is what I'm doing for now.