Draw a Line Object

rburn

New member
Joined
Mar 11, 2004
Messages
1
Location
Northern Calif
Im looking for some input. I want to create a program to
draw lines circles shapes etc. I know how to draw them
generally but here are my specifics

drawing a rectangle... using real numbers not integers.


I want to be able to click on the line or circle drawn and be able to get the
information used to draw it... xy values etc....

i have all the information saved in the program so i could match information
picked from selecting with the mouse etc...

Somehow i need the lines circles etc to be smart... objects?

Think of autocad or microstation drawing programs... something like that
but my program is fairly simple

any examples or sites or things to read would be helpful.. Thanks
 
in the form1_paint method you culd do:

e.graphics.FillRectangle(x,y,width,height) off the top of my head,
if you wanted them to be smart, just in form1_mouse down, change the X and the Y coordinates (if you clicked the object and dragged it somewhre) as you move the mouse

not sure what youd do for width and height

same for circles, e.graphics.fillcircle(x,y,radius).. something like that :-)
 
Back
Top