[lazarus] datasource - dataset

Jesus Reyes jesusrmx at yahoo.com.mx
Mon Dec 30 11:28:45 EST 2002


> There is no GetDisplayWidth function. What should it
> do according to you ?
> Something like:
> Function TField.GetDisplayWidth : Longint;
> 
> begin
>   If FDisplayWidth<>0 then
>     Result:=FDisplayWidth
>   else
>     Result:=DataSize
> end;
> 
> Or what ?

Yes, or maybe:

....
   else
      Result:=GetDefaultWidth;

which is currently implemented in TField. Some other
derivatives could override it or just let the default
that TField set, being still free of setting
DisplayWidth directly.

By the way, something like:

      property Size; default 20;

declared in TStringField really set Size:=20 when
one creates a instance of TStringField? or it has
another purpose? I'm affraid the reference manual does
not mention it






_________________________________________________________
Do You Yahoo!?
La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx






More information about the Lazarus mailing list