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

Can't perform event OnMouseDown on Form1

Posted on 2007-12-03
1
163 Views
Last Modified: 2010-04-05
...because all the form1 is covered by many ( no way to click directly on Form1)shapes.

Haw  can i start a procedure:

OpenFolder('C:\PC1');

 by clicking on my form window?


procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
    OpenFolder('C:\PC1');
end;

Open in new window

0
Comment
Question by:pr2501
1 Comment
 
LVL 21

Accepted Solution

by:
ziolko earned 50 total points
ID: 20394922
you can assign form's event handler to specific component like:

Panel1.OnMouseDown := Form1.OnMouseDown;

ziolko.
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…

808 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