Hi,
Somewhere to start might be the following (if you're actually wanting to
define new events):
Delphi Help contents -> Creating Custom Components -> Creating Events ->
Defining your own events.
That is assuming that you've compiled the Component Writers Guide into your
Delphi help.
However, just reading the Creating Custom Components section gives plenty of
information on exposing events on components if you can use existing event
types (e.g TNotifyEvent) for your new event, such as:
type
TMyControl = class(TComponent)
private
FOnMyEvent: TNotifyEvent; { declare a field to hold the method pointer
}
...
protected
property OnMyEvent: TNotifyEvent read FOnMyEvent write FOnMyEvent;
end;
HTH,
Conor
-----Original Message-----
From: Allan, Samuel [mailto:[EMAIL PROTECTED]
I want to create a component with some events of my own. So people using my
component can put their own code against them in the object inspector the
same way that I put code against a button's OnClick event.
How do I do this? I looked in the help, but couldn't find any; obviously I
don't know what words to use.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/