At 03:05 pm 8/01/01 +1300, Mark Derricutt said:
>Hi, is it possible to limit what is shown in the drop-down of a
>DBLookupCombo?

Two ways,

way 1: Attach the DBLookupCombo to a query that returns only the records
you require.

way 2: Use a normal combo pre-filled at TForm.OnCreate() with the required
records.

Steve

>I'm guess I'm wanting some behaviour similiar to a normal combo where you
>can type whatever you want in the edit box, but select from a list of
>predefineds...  is this possible?  Or will I have to look at my own lookup
>somehow?

That's a second question - use the Style property to set the combo to use
csDropDownList to restrict users to only use what is in the combobox, or
csDropDown to allow the user to type in an entry that does not exist in the
list.

Steve


Steve Peacocke
With the Vizslas Amongst Kiwifruit, Avacados, Pheasants and Quail in the
sunny Bay of Plenty
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to