Quote:

I want to draw a grid (every 10 pixel a line vertically and horizontally) and some rectangulars. (about 300 lines)




Good news for you! The A6 beta has the following new feature:

Quote:

Setting a panel size that exceeds the panel bitmap size creates a repeating background pattern on the panel. - If the size is smaller than the panel bitmap, the bitmap is clipped. If the size is larger, the bitmap is repeated on the panel background, and thus can be used for a background pattern.




So you could use a panel with a "grid"-tile and make the size as large as the screen or such. This is very fast of course and better than drawing these lines.

Just stay cool and wait for the public beta!