Do you write programs that use a grid, say for a chess game? It's a lot of fiddly work to get the pieces to "snap" to the middle of the squares and everything changes for the next project. Here is a library containing two simple commands, CreateGrid() and Snap2Grid() that makes it easy!
http://www.networkmaestro.com/snaptogrid.zip (3.94)
http://www.networkmaestro.com/snap2grid.zip (4.00)
http://www.networkmaestro.com/snaptest.exe (tiny demo program)
			
			
													Snap to it, Soldier!! ** Version 4.00 update added **
- netmaestro
 - PureBasic Bullfrog

 - Posts: 8452
 - Joined: Wed Jul 06, 2005 5:42 am
 - Location: Fort Nelson, BC, Canada
 
Snap to it, Soldier!! ** Version 4.00 update added **
					Last edited by netmaestro on Tue Feb 21, 2006 4:32 pm, edited 5 times in total.
									
			
									BERESHEIT
						- 
				Jan Vooijs
 - Enthusiast

 - Posts: 196
 - Joined: Tue Sep 30, 2003 4:32 pm
 - Location: The Netherlands
 
Looks nice,
Will test it in an game application i'am writing, no its NOT in BETA fase like you requested (arf arf I know who/what you mean, a very known program)
Thanks
			
			
									
									Will test it in an game application i'am writing, no its NOT in BETA fase like you requested (arf arf I know who/what you mean, a very known program)
Thanks
Life goes to Fast, Enjoy!!
PB 4 is to good to be true, wake up man it is NOT a dream THIS is a reality!!!
AMD Athlon on 1.75G, 1Gb ram, 160Gb HD, NVidia FX5200, NEC ND-3500AG DVD+RW and CD+RW, in a Qbic EO3702A and Win XP Pro SP2 (registered)
						PB 4 is to good to be true, wake up man it is NOT a dream THIS is a reality!!!
AMD Athlon on 1.75G, 1Gb ram, 160Gb HD, NVidia FX5200, NEC ND-3500AG DVD+RW and CD+RW, in a Qbic EO3702A and Win XP Pro SP2 (registered)