Subject | Re: [IBO] FieldsDisplayLabel |
---|---|
Author | Geoff Worboys |
Post date | 2001-01-24T02:27:21Z |
> In my App I'm using your old FieldDisplayLabel very oftenIf you need an independant label then yes, I do suggest you change
> and I want to switch to IB_Label next time.
over to IB_Label as I will eventually drop the old TLabelEnh from the
EnhComponents collection. Since some of the defaults are different in
IB_Label I have thought that I may create a derivation that implements
a variation of IB_Label with the same defaults that I had in the old
TLabelEnh - does this matter to you?
> The problem I have, is that, when my app starts I'm doingMy first question would be:
> a lot of initializiations before the Queries are prepared
> and one thing I need, is the DisplayLabel of a field.
> Please tell me, what you think.
Why not use AutoLabel? It implements TIB_Label internally, and so has
all the same features but, as you have seen, is much more dynamic. If
there is a problem or shortfall in AutoLabel Tobias and I would like
to know about it.
> Is it possible to implement this feature in yourI guess the question is; What exactly are you looking for?
> IB_Label-Component ?
There are two possibilities (non-exclusive)...
1. I could implement a "UseDataLink" option that would default to
false. If you set it to true then it will create its own internal
datalink - copy the relevant details from the associated control and
then receive dynamic updates. Of course, whileever the dataset is not
prepared, you are still stuck with the raw field name.
2. I could implement the setup so that, when the dataset is not
prepared, the label will automatically search the associated
FieldsDisplayLabel properties for a matching label value. As long as
the names are associated with the field name and not the domain or
sqltype then this should work.
If you think its worth it (you cant use AutoLabel for some reason)
then I am willing to give either or both of the above a go.
Geoff Worboys
Telesis Computing