Subject RE: [IBO] IB_ComboBox
Author Alan McDonald
Thanks Helen, I thought as much
Alan

-----Original Message-----
From: Helen Borrie [mailto:helebor@...]
Sent: Wednesday, 5 March 2003 12:06 AM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] IB_ComboBox


At 11:12 PM 4/03/2003 +1100, you wrote:
>Is there no way to plug a datasource into the Items property of an
>IB_ComboBox?

No - like a TDBComboBox, it is "single-datasource-aware". As you know, its
Datasource property targets the IB_Datasource that points to the parent
column that is polling the combobox's editbox for a value.

I normally just populate the items from an ib_cursor via a little procedure
that is called from FormCreate and any other events where I want to refresh
it.

>Or is there another control I should be using?

TIB_LookupCombo is double-datasource-aware. Unlike IB_ComboBox, its
Datasource property points to a dataset which populates its equivalent of
the IB_ComboBox's Items property. Its DisplayField selects the field in
this dataset that you want to see in the editbox.

To use it as a double-data-aware control, as you know, you use the
Keysource property of the dataset and point its KeyLinks to the parent
column, with the option to embed it in the parent IB_Grid.

But you can optionally use this control without Keysource and KeyLinks
(non-embeddable, of course) as a "reverse combo box".

Helen




___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/