Subject Re: [IBO] Aesthetics mistake in the IB_Edit control
Author Helen Borrie (TeamIBO)
At 02:21 PM 12-04-02 +0200, you wrote:
>If I setting my column onto ReadOnly as follows:
> FieldsReadOnly.Strings = (
>and ReadOnlyColor = clSilver
>and the table is fully empty and the table is in browse mode
>then the control color switches automatically over to clWindow,
>but in other cases it is good.
>What is the reason of this?

An empty dataset is..well...empty. It contains no data. Therefore, there
are no data from which to read attributes. IBO does not create persistent
TField objects to which you can apply attributes. Once the TIB_Column
objects exist, they acquire the attributes you have defined for them and
the behaviour of the controls is directed by the data.

>I experienced this problem with the D5, IBO 3.6Di
>and IB tools.

If it is an aesthetic problem for you, why don't you test your dataset's
IsEmpty property and paint the controls accordingly?

Are you writing applications that usually present empty datasets when the
datasets are opened? If so, it would be good coding economy to write your
own descendant controls that react to this condition in the way you prefer.

Helen Borrie (TeamIBO Support)

** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at