how to draw with fore-and background

2005-08-24 Thread abent
hi, can somebody tell me how to draw a rectangle on a pixmap with only one graphic context (gc) and the functions ... gdk_gc_set_foreground (gc, &blue); gdk_gc_set_background (gc, &red); the colors blue and red i have allocated in a colormap thats not the probl. but when i draw with gdk_draw_rectan

expose-event

2005-06-22 Thread abent
hi, first of all ... thanks for competend answers anytime! now my question: an expose-event signal works to a window widget. why does the expose-event activate 2 times when i resize my window. i wanna redraw a drawingarea after i resize the window. but in this case my drawing-function do her work,

logical problem

2005-06-20 Thread abent
hi, please help me i have a logic problem. i write a application that draws CADpoints from a Cadfile (x,y coord.) on a drawingarea. so far so good. now i wanna align this points to the windowsize. my idea was, add the windows x-y coord. to the pointcoord. but this is not very suggestive. i know