Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to declare mouse-events in a component-unit

Posted on 2007-04-04
2
188 Views
Last Modified: 2010-04-05
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
0
Comment
Question by:peterkiers
2 Comments
 
LVL 10

Accepted Solution

by:
dinilud earned 500 total points
ID: 18855736
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
 
LVL 1

Author Comment

by:peterkiers
ID: 18856550
Thanks

Peter Kiers
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question