DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
   Reply to topic    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
hadipardis
Member


Joined: 17 Jul 2004
Posts: 13

PostPosted: 11/09/04 07:47    Post subject: How to show an adjustable Grid(net) on a form? Reply with quote

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
View user's profile
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 158

PostPosted: 13/09/04 05:35    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> Delphi Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group