I am designing a drawing package for my uni project
At the moment i have a scrollable canvas with a grid on it
I have buttons that when pressed i can drop a rectangular object on to the canvas
where my cursor is
What i would now like to do is include some code to get the rectangles to line up next to each other
easily, when i move them around they have to much freedom and it is really hard to line
the edges up
I think what i need is some snap to grid type function but i cant find any example code
anywhere
Can anyone help ?
Cheers Steve
At the moment i have a scrollable canvas with a grid on it
I have buttons that when pressed i can drop a rectangular object on to the canvas
where my cursor is
What i would now like to do is include some code to get the rectangles to line up next to each other
easily, when i move them around they have to much freedom and it is really hard to line
the edges up
I think what i need is some snap to grid type function but i cant find any example code
anywhere
Can anyone help ?
Cheers Steve