| View previous topic :: View next topic |
| Author |
Message |
hadipardis Member
Joined: 17 Jul 2004 Posts: 13
|
Posted: 11/09/04 07:47 Post subject: How to show an adjustable Grid(net) on a form? |
|
|
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 |
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 158
|
Posted: 13/09/04 05:35 Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
|