Mervyn
asked on
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
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
try this? Image1.OnMouseDown(mbLeft, [], XVal, YVal);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, your tip certainly help a lot in my understanding
Have a nice day
Have a nice day
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
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