Solved

Can't perform event OnMouseDown on Form1

Posted on 2007-12-03
1
160 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now