Solved

How to declare mouse-events in a component-unit

Posted on 2007-04-04
2
187 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Wininet read php file from internet issue 6 92
add combobox item based on numbers 9 144
oracle global variables 4 70
how can i search if string exist in array ? 3 59
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

831 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