Drawing a grid

Discussions about document viewing.
Post Reply
DBr
Posts: 21
Joined: Thu Dec 09, 2010 8:21 pm

Drawing a grid

Post by DBr » Tue May 24, 2011 11:40 am

Hi Loic,

I am trying to solve a problem and wondered if there is a more comfortable way to do it. The requirement is to get some coordintes on a document by drawing a grid by hand. The resulting rects should be the outcome.
Right now the idea is to initially draw a region to define the size of the grid. Then I would have to check for the mouse positions after further clicks to draw a set of new regions inside the main rect and by that was create columns and rows (for example: draw the main region and save the coordinates, then click inside the region and draw 2 new regions from the most left point of the main region up to the mouse position and the second one from mouse position to right border and adjusting the regions as long as the mouse button is pressed).
Is there a functionality to solve this problem more easily or do you have another idea?

Greetz
Dominik Braun

DBr
Posts: 21
Joined: Thu Dec 09, 2010 8:21 pm

Re: Drawing a grid

Post by DBr » Fri May 27, 2011 11:48 am

And another question that would help here: is it possible to define new objects for the context menu? (ItemMenu)

Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests