Solved

Run the Image.Mousedown event code from a button click

Posted on 2002-05-17
4
138 Views
Last Modified: 2010-04-04
Can anyone assist??

I have a image control populated with gridlines and can run the image.mousedown event code to place the TShapes images onto the grid co-ordinates and two text boxes showing the X and Y positions of the image.mousedown event.

If I add a  new X and Y values into the text boxes, I like to click on the button to take the X & Y values from the textbox and run the image.Mousedown event code to paint a new TShape image onto the grid in the image control  - how can I do this

Thanks
0
Comment
Question by:Mervyn
  • 2
4 Comments
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 7017801
try this? Image1.OnMouseDown(mbLeft, [], XVal, YVal);
0
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 50 total points
ID: 7017802
hmm.. bad display on screen...

the [] is actually a opening square bracket '[' and a closing square bracket ']'
0
 

Author Comment

by:Mervyn
ID: 7028915
Thanks, your tip certainly help a lot in my understanding

Have a nice day
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9005948
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from DragonSlayer

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
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…

757 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

20 Experts available now in Live!

Get 1:1 Help Now