Subject Re: [IBO] TIB_Grid.DefaultRowHeight
Author Jason Wharton
I found and fixed this problem.

Thanks,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Geoff Worboys" <geoff@...>
To: <IBObjects@yahoogroups.com>
Sent: Saturday, April 07, 2001 1:05 AM
Subject: Re: [IBO] TIB_Grid.DefaultRowHeight


> > The problem is the default row height in TIB_Grid is too
> > small. If I change it at design time it does not stay, but
> > drops back to 17. I can override at runtime and everthing is
> > fine, but now I have a list of DefaultRowHeight entries.
> >
> > Am I doing something wrong or is this by design?
>
> Any chance you are trying to set DefaultRowHeight to 24?
>
> I just noticed that TCustomGrid declares this as the default.
> TIB_Grid overrides the default in its constructor but does not declare
> the default in the interface. As a result, any attempt to set a value
> of 24 will not be stored in the DFM and the TIB_Grid assigned value
> (of 17) will be used.
>
> If you set 23 or 25 you should be able to work around the problem - or
> add the default declaration of 17 to the TIB_CustomGrid interface (in
> IBG_Custom.INT) which will be the fix for this problem.
>
> Geoff Worboys
> Telesis Computing