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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

custom shapes

Status
Not open for further replies.

Gigatech

Programmer
Jul 12, 2000
80
CR
I´m a Delphi 7 user. I need to use a TShape Object but I want to use my custom shape (like a triangle for example) with the same properties of the TShape Object. How can do that?

Thanks
 
I haven't used TShape or anything but one way I've drawn custom shapes for graphing purposes was by using LineTo and MoveTo routines to draw from point to point on a canvas. So basically you need to specify coordinates.

Don't know if this helps!

Clive [infinity]
Ex nihilo, nihil fit (Out of nothing, nothing comes)
 
I think you can sub-class TShape and override the Paint method. You might want to re-implement the ShapeType property to include Triangle.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top