Subject | Re: [IBO] SessionProps / Colorchange |
---|---|
Author | Geoff Worboys |
Post date | 2001-04-28T13:28:32Z |
> Geoff,I thought you might be testing me :-)
> sorry, but would i ask if it works? ;-)
> Tedit.color := TIB_edit.colorOK, this is your problem. Instead test the dataset state directly and
use a simple case statement.
procedure QryOnChange( Sender: TIB_DataSource;
ADataset: TIB_Dataset ) of object;
begin
case ADataset.State of
dssInsert:
TEdit.Color := ADataset.IB_Session.InsertingColor;
dssEdit:
TEdit.Color := ADataset.IB_Session.EditingColor;
<etc>
end;
HTH
Geoff Worboys
Telesis Computing