Can't perform event OnMouseDown on Form1

...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

pr2501Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ziolkoConnect With a Mentor Commented:
you can assign form's event handler to specific component like:

Panel1.OnMouseDown := Form1.OnMouseDown;

ziolko.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.