Solved

Run the Image.Mousedown event code from a button click

Posted on 2002-05-17
4
144 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month6 days, 19 hours left to enroll

623 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