Subject | Re: [IBO] Grid Inherited problem |
---|---|
Author | Geoff Worboys |
Post date | 2001-08-27T03:37:11Z |
> I've an 3.6e IBO application with a IB_Grid componentEdit IB_Grid.pas and find the declaration for DefaultRowHeight in
> in a form. I inherit this form in oder forms. I changed
> then DefaultRowHeight property in the original form,
> and all descendant IB_Grid components changed
> correctly. BUT it doesn't happen with version 4.2Eb
>
> ( I upgrade to 4.2Eb this weekend )
>
> Do you know what I've to do ?
TIB_CustomGrid. Add the default to the declaration:
property DefaultRowHeight default 17;
After making this change you will need to open and resave all your
forms to remove the previously saved default value.
The problem is that the default is assigned but not declared so every
time you drop a grid on a form the property is saved to the DFM. This
means that loading of the grids will overwrite whatever may have been
setup via a base form.
Actually I thought this had been fixed back in April, but seems to
have come back in. Jason this default NEEDs to be applied to override
the TCustomGrid default. With the way it is at the moment it is
impossible to save a default of 24 (which was the originally reported
problem in April) since this is currently the declared default.
HTH
Geoff Worboys
Telesis Computing