Solved

Run the Image.Mousedown event code from a button click

Posted on 2002-05-17
4
140 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi - replicating a form 8 74
Correct Component for Shopping Cart. 2 105
Adoquery sql  left join does not work 25 91
Graphics32 under Delphi 10.1 Berlin 2 66
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

777 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