Subject Re: [IBO] Re: Cannot get TIB_LookupCombo to do incremental searching
Author Jason Wharton
Michael,

Seems to me this should be OK. Go ahead and add in a property and then send
me the modified files and I will see about adding it in.

Thanks,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Michael L. Horne" <guardian@...>
To: <IBObjects@yahoogroups.com>
Sent: Wednesday, March 14, 2001 3:44 PM
Subject: [IBO] Re: Cannot get TIB_LookupCombo to do incremental searching


> Hello Jason,
>
> Last summer, I asked you about adding a way for the
> LookUpCombo to automatically clear its selection, kind
> a like a "AllowTimeOut" that fires when you exit the
> control. So that when you return to the control it
> expects you to start typing at the start instead of
> taking up where you stopped.
>
> I finally got around to doing some research into it
> and found that if I added a "ClearSelection(False)" to
> the Exit event of the control (see code below) it seems
> to do what I am expecting. Is the change safe and the
> right place to do this?
>
> If so I will do the other code to add a property to
> the control and send you a list of changes so it can
> be added to IBO.
>
> Thanks
> Michael L. Horne
>
> From IBG_LoookupCompb.IMP - Line 1002
> procedure TIB_CustomCombo.CMExit(var Message: TCMGotFocus);
> var
> tmpKey: char;
> begin
> inherited;
> try
> if FSearchText <> '' then begin
> tmpKey := #9;
> DoIncSearchKeyPress( tmpKey );
> end;
> ClearSelection( False ); <-------- Added this line
> Invalidate;
> except
> SetFocus;
> raise;
> end;
> end;
>
> On Tue, 30 May 2000 13:19:08 -0700, "Jason Wharton"
> <jwharton@...> wrote:
>
> >You want a ClearOnExit property is what you are saying?
> >
> >Jason Wharton
> >CPS - Mesa AZ
> >http://www.ibobjects.com
> >
> >
> >----- Original Message -----
> >From: "Michael L. Horne" <guardian@...>
> >To: <ibobjects@...>
> >Sent: Tuesday, May 30, 2000 1:09 PM
> >Subject: RE: Cannot get TIB_LookupCombo to do incremental searching
> >
> >
> >> Yes, I did figure out what was going wrong on the typing.
> >>
> >> However, I notice that on the LookUpCombo, when you type
> >> into it, then tab to another field then return instead
> >> of reseting the entry to the beginning, it puts you right
> >> back where you where in the field. Is there any way to
> >> have it reset on exit, so the next time you enter you
> >> start typing at the beginning of the field.
> >>
> >> Thanks
> >> Michael L. Horne
> >>
> >>
> >> -----Original Message-----
> >> From: ibobjects-admin@... [mailto:ibobjects-admin@...]On
> >> Behalf Of Jason Wharton
> >> Sent: Sunday, May 28, 2000 2:01 AM
> >> To: ibobjects@...
> >> Subject: Re: Cannot get TIB_LookupCombo to do incremental searching
> >>
> >>
> >> Did you figure it out by now?
> >>
> >> Jason Wharton
> >> CPS - Mesa AZ
> >> http://www.ibobjects.com
> >>
> >>
> >> ----- Original Message -----
> >> From: "Michael L. Horne" <guardian@...>
> >> To: <ibobjects@...>
> >> Sent: Saturday, May 20, 2000 8:01 PM
> >> Subject: Cannot get TIB_LookupCombo to do incremental searching
> >>
> >>
> >> > Hello
> >> >
> >> > Got the LookupCombo to let me choose items with the mouse
> >> > or arrow keys, but it will not let me type into it.
> >> >
> >> > Any ideals on what I am setting wrong.
> >> >
> >> > Thanks
> >> >
> >> > Michael L. Horne
> >> >
> >>
> >>
> >> _______________________________________________
> >> Ibobjects mailing list
> >> Ibobjects@...
> >> http://mers.com/mailman/listinfo/ibobjects
> >
> >
>
>
> _______________________________________________
> Ibobjects mailing list
> Ibobjects@...
> http://mers.com/mailman/listinfo/ibobjects
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>