Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drawing in Delphi 5 2

Status
Not open for further replies.

Seawolf68

Programmer
Aug 19, 2009
2
US
I want to know how to create a window (form?) that will display a stick figure of a shape. It will be a 2D view of a 3D figure. I want to create three different perspectives. I can crunch the numbers to project the 3D object onto a 2D plane but I can't figure out how to draw the figure during run time. Let's say I have a set of 2D coordinates and I want to draw a line in order between them at run time and display it in a window. How do I do that? Thanks in advance.
 
Every TForm or Tpanel or Timage has a TCanvas associated with it on which you draw. Looking at your documentation for TCanvas will help get you started. I'm not sure if there are real good examples outside of what you will find in the documentation - I didn't find any when I searched for them.

As for drawing your models, translate your coordinate system on your models to the drawing surface in the scale you want to draw, and then draw it using the methods in TCanvas.

If you have more specific questions, feel free to ask.

Measurement is not management.
 
Yes! Thank you, Glenn9999 and Whosrdaddy! You both solved a problem I couldn't solve having worked on it for over a week. As far as I'm concerned you guys paid it forward. I will do my best to assist anyone I can at this site. Now I need to implement the solution. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top