How to show an adjustable Grid(net) on a form?

Please discuss general Delphi programming topics here.

How to show an adjustable Grid(net) on a form?

Postby hadipardis » September 11th, 2004, 7:47 am

Hi
You know that Form Designer in Delphi shows a form with a grid net at design time.The space between two pixels of the net is
adjustable and this net has a property which allows user to snap objects to the grid when moving the objects.
Now I want a component or a source code to do this work at run time.Can you help me,please?
Cheers
hadipardis
Junior Member
Junior Member
 
Posts: 33
Joined: July 17th, 2004, 5:45 am

Postby Johnny_Bit » September 13th, 2004, 5:35 am

It's kinda simple, so code won't be needed... all you have to do is combine drawning dots on form's canvas at special points (can be done by scanlines) and simple component movement at runtime with snaps (few conditional instructions) and you're done.
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am


Return to Delphi Programming

Who is online

Users browsing this forum: Bing [Bot] and 23 guests

cron