Subject Re: [IBO] Colors for IB_LookupCombo in an IB_Grid
Author Svein Erling Tysvær
>Anyone else noted this problem and solved it?

Well, I once had a problem with two IB_LookupCombos in a grid. I thought it
was because of both of them referencing the same table and started writing
a message to this list. But I decided to write a short demo before sending
the question, and my demo ended up working! Yet another close look at my
original program revealed that I'd forgotten to assign one property (cannot
remember which one), and that IBO was "not guilty".

My guess is that you haven't set up your datasets/LookupCombo correctly
(that should at least explain why the text is empty). Maybe you've
forgotten something simple like DataSource/DisplayField on the LookupCombo
or KeySource/KeyLinks (remember to set KeyLinksAutoDefine to false) on your
detail query.


At 15:41 06.02.2001 +1300, you wrote:
>> Look in the IB_Grid.pas unit and all the linked include files that start
>> with IBG_XXXX.IMP
>Hello Jason
>The color scheme for an IB_LookupCombo (LC) inside an IB_Grid appears OK.
>The LC takes its background and font colors as clHighlighted and
>clHighlightedText respectively.
>The problem I am experiencing is, upon looking deeper, not with the color
>scheme but with the variable Text fed to wmPaint() in file
>IBG_LookupCombo.IMP. When the LC is selected Text is '', the empty string
>and it should contain the text of the selected field in the selected row.
>As far as I can tell I have mimiced every feature of the Sample - Contact
>app into my app. The Contact app works and mine does not. I am missing one
>thing, it seems, in placing an IB_LookupCombo in an IB_Grid (Yes, I have
>read the example in the Getting Started Guide).
>This is not urgent.
>Anyone else noted this problem and solved it?