Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 148
  • Last Modified:

Run the Image.Mousedown event code from a button click

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
Mervyn
Asked:
Mervyn
  • 2
1 Solution
 
DragonSlayerCommented:
try this? Image1.OnMouseDown(mbLeft, [], XVal, YVal);
0
 
DragonSlayerCommented:
hmm.. bad display on screen...

the [] is actually a opening square bracket '[' and a closing square bracket ']'
0
 
MervynAuthor Commented:
Thanks, your tip certainly help a lot in my understanding

Have a nice day
0
 
pnh73Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now