OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Hypersonic on December 28, 2007, 05:18:16 PM

Title: Pick 0n a picture??
Post by: Hypersonic on December 28, 2007, 05:18:16 PM
is it possible to have a picture inserted into a dialog and have the user pick a portion of it?

An example might be a picture of a car, and you might ask the user to pick which part of the car to modify etc.

Thanks!
Title: Re: Pick 0n a picture??
Post by: Kerry on December 28, 2007, 11:40:50 PM
You could use a MouseUp Event of a PictureBox control to catch the X and Y mouse location and compare the result against a pre-saved index to determine the component indicated


(defun c:Project1_Form1_PictureBox1_OnMouseUp (nButton nFlags nX nY /)
     (Do Stuff )
)
Title: Re: Pick 0n a picture??
Post by: Hypersonic on December 29, 2007, 07:39:40 AM
Thanks Kerry! Where there is a will, there is a way.....