How can I share an OnEnter event for a TcxGrid ?
Posted
by Roland Bengtsson
on Stack Overflow
See other posts from Stack Overflow
or by Roland Bengtsson
Published on 2010-06-02T06:46:56Z
Indexed on
2010/06/02
7:44 UTC
Read the original article
Hit count: 348
I want to standardize the behaviour on an Devexpress TcxGrid. So I have a unit ClientData with a event:
procedure TClientData.grdOnEnter(Sender: TObject);
begin
mnuCxGridStandardMenu.Grid := TcxGrid(Sender);
end;
If I try to use that event from a TcxGrid.OnEnter event in another unit it refuse to work. If I paste in ClientData.grdOnEnter then a dialog says it is not an valid identifier.
Is it possible to share an event for several units in Delphi 2007 ?
© Stack Overflow or respective owner