Page 1 of 1

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

PostPosted: September 11th, 2004, 7:47 am
by hadipardis
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

PostPosted: September 13th, 2004, 5:35 am
by Johnny_Bit
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.