snap to grid
Posted: Thu Aug 11, 2011 12:50 am
Now that I am working on Groove Blox, I need to implement a snap to grid system.
I am also utilizing tracks. I need to figure out how to add/delete tracks (right now, I am using a data grid - in form mode - have a check box and everything that would constitute a track grouped). I assume I just copy the group and delete the selected tracks? Each track needs to be a audio player so it can play back the groove blox.
So, the user will drag and drop a colored rectangle (that also needs to be figured out) into the track in question and I need the rectangle to SNAP to the previous rectangle, if any. If none exist, then it snaps to a placeholder rectangle I put in there. I will eventually hide the placeholder rectangle so all you see are the blocks.
How would I go about setting up the snap to grid?
Mike
I am also utilizing tracks. I need to figure out how to add/delete tracks (right now, I am using a data grid - in form mode - have a check box and everything that would constitute a track grouped). I assume I just copy the group and delete the selected tracks? Each track needs to be a audio player so it can play back the groove blox.
So, the user will drag and drop a colored rectangle (that also needs to be figured out) into the track in question and I need the rectangle to SNAP to the previous rectangle, if any. If none exist, then it snaps to a placeholder rectangle I put in there. I will eventually hide the placeholder rectangle so all you see are the blocks.
How would I go about setting up the snap to grid?
Mike