Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

OCX/ActiveX: How to create a control that can fire events

Hi there,
I was able to create an ActiveX Control having properties and
methods, but did not find a way to define events this control
can fire to be handled outside of the control.

Any hints? Thx.

Comments

  • PerranPerran Member Posts: 241
    : Hi there,
    : I was able to create an ActiveX Control having properties and
    : methods, but did not find a way to define events this control
    : can fire to be handled outside of the control.
    :
    : Any hints? Thx.
    :
    This is from the ActionList component for Kylix:

    property OnChange: TNotifyEvent read FOnChange write FOnChange;
    property OnExecute: TActionEvent read FOnExecute write FOnExecute;
    property OnUpdate: TActionEvent read FOnUpdate write FOnUpdate;

    They are properties of type subtypeEvent. Easiest thing would be too look in your VCL source code and emulate that, or right-click the above and ask to see the help file entries and declarations.
Sign In or Register to comment.