Solved

Run the Image.Mousedown event code from a button click

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

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

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 242
Working with hours 3 65
Tvertscrollbox like a whatsapp layout 5 36
how to make 2 step back? ..\..\ ExtractFilePath (paramstr(0)) 5 52
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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 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