Hi, I try to made a new extended package: TjmCheckGroup = class(TCheckGroup) and implemented some properties and functions and it works fine.
One problem I have though. The control TCheckGroup has an event OnItemClick. How can I implement this OnItemClick like:
protected
procedure ItemClick( Sender : TObject; Index : integer ); override; does not work, and i dont know how to customize
implementation
procedure TjmCheckGroup.ItemClick( Sender : TObject; Index : integer );
begin
// Here I will implement som code in the Package
if Index .... then ..
inherited ItemClick( Index );
end;
The idea is to do some work in the Control generally, and can do some work in each used control individually.
I hope somebody can help me.
Best regards
frakno
Lazarus #1.4.0 FPC #2.6.4 i386-win32-win32/win64