How to declare mouse-events in a component-unit

Dear Experts,

I am working on a own component.
How do you declare the MouseDown,
MouseUp and MouseMove events in
a component-unit. Can someone show
me how to do that?

Peter
LVL 1
peterkiersAsked:
Who is Participating?
 
diniludConnect With a Mentor Commented:
If you derivied your component from TCustomPanel, just publish your Mouse events.

eg:

type
  TCustomPanel1 = class(TCustomPanel)
  private
    { Private declarations }
  protected
    { Protected declarations }
  public
    { Public declarations }
  published
    property OnMouseDown;
    property OnMouseUp;
    property OnMouseMove;

    { Published declarations }

  end;
0
 
peterkiersAuthor Commented:
Thanks

Peter Kiers
0
All Courses

From novice to tech pro — start learning today.