Hi, I do understand the advantage of "expose" but I wanted to understand the fundamentals first. Therefore, i wanted to draw the drawline like this. Thanks for all the help.
BTW, I have now drawn the line with "expose" event. But I am slightly confused, becuase it calls the expose function three times. This is how I tested it. I just put a statement in the "expose" function call as; int static turn=0 g_print turn++; And I found that when I first draw the line this command prints 0,1 and 2. That means that it has been exposed three times. I thought that it is only being exposed when it is created. Any comments on that? I am now grappling with drawing the line in color. And the tutorial does not talk about color. The "ref" does talk about it but no example is available. I did find some examples from other sources, but they are too complicated. I would first like to understand the basics and then go on to complexities. So, if there is a simple 10 line program to draw a line in color I shall welcome it. Thanks and bye Shiraz --- Sven Neumann <[EMAIL PROTECTED]> wrote: > Hi, > > Shiraz Baig <[EMAIL PROTECTED]> writes: > > > I changed the parameters as suggested by Mr > Neumann > > and viola! I am drawing the lines without "expose" > > event and only with pushing a button. > > now move your mouse over the line you've just drawn > or obscure the window by moving another window over > it. Assuming you are using a drawing_area to draw on > directly, X will clear the area you've just painted > on and since you aren't redrawing in your expose > event handler, the line you've just drawn will be > gone. > > > Salut, Sven __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list