Quoting peter Fodrek <[EMAIL PROTECTED]>:

> Dear Xlib experts,

  Hi,

> I am to write program which may to draw Lines and Arcs on the place
> where
> instance of coreWidgetClass is displayed ...
> 
> I am not to find what I am doing wrong...
> 
> Can Anyone help me,please?
> 
> thank you for any help...
> 
> yours faithfully
> 
> Peter Fodrek
> 
> P.S. source code of my failed attempt to do so is included..
> 
> 
> file grafika contains tezt, which shows that function init_kresliaca
> was
> called, but nothing was displayed on the white coreWidgetClass
> instance

[snip]

  From the sample it is not possible to know if your application is
calling XtAppMainLoop. If it is not, you may still get the drawings
on the screen by calling XFlush(), but what you should do is probably
one of:
 o use XtAddEventHandler to handle Expose events
 o add a XtActionProc to handle Expose events and define a translation
   table like:
   <Expose>: my-expose-handler()
 o Add a subclass of the core widget and set the XtExposeProc field
 o Draw to a pixmap and set the backgroundPixmap resource

Just some options from what I could understand from the small code sample.

Paulo
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to