Subject Re: [IBO] Some features
Author Geoff Worboys
> > asked why his ibolabel did not became bold when using a
> > tib_lookupcombo and the field was required.
>
> I am looking into this one. I was not happy with the change you
> sent only because I think that there is a better place for it,
> but I need to check.
>
> There is also a problem under Delphi3 where the autolabel is
> not resizing when the label is made bold. It appears to be a
> Delphi3 only problem (at least all seems ok under Delphi5). I
> think Claudio is investigating this apsect to find the best
> place to put in a Delphi3 only fix.
>
>
> > The changes i made were close to what i wanted but there
> > are still many things not ok, like:
> > after post the ibolabel remains bold,
>
> This may be another Delphi3 problem, since all appears OK
> under Dephi5.

Hmmm, I may have been a bit hasty before. If all of these questions
were specific to LookupCombo then I think the problems apply to all
versions. I also think I have found a fix.

Note: It has been my opinion that the label displayed with the lookup
should be the name/label for the DisplayField of the LookupCombo, and
not the keyfield of the lookup dataset or the foreign key field of the
main dataset. However the test for mandatory must come directly from
the foreign key field of the main dataset.

With the fix I have in place I can show the label for either the
displayfield or the foreign key of the main dataset. Unless anyone
posts otherwise in the meantime I will leave the autolabel displaying
from the displayfield.

Hope that makes sense.

Geoff Worboys
Telesis Computing