Re: [Gtk-sharp-list] DrawingArea - allocating needed space



White Spirit wrote:

If you're able to move the drawn elements, another possibility is to destroy the drawing area and recreate it with the new dimensions, and then redraw from your starting point.

Well, it's a kind of what I've been planning to do but I thought there may be a slicker way. If I want to move everything I have to recalculate positions of all elements and that costs time.

Assuming you're using a Gdk.Pixmap, it'll be a simple matter of displaying the contents again.

Actually, I'm using Cairo to draw in the DrawingArea and that is one of the reasons why I'm trying to keep it as slick as possible elsewhere.

Thanks,
Piotr



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]