[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Aug 31 15:09:08 1993 
Subject:X and POP 
From:Robin Popplestone 
Volume-ID:930831.03 

> Anthony.Worrall writes:
> I have some C code linked into pop11 which uses XDrawLine.
> I want to get this code to draw on the XpwGraphic Widget in the rc_window.
> It draws the lines in the corrct place but does not use the colour as set by
> XpwSetColor. Also my lines do not get redisplayed.
> Can any one suggest what I am doing wrong or how to use the XpwDrawline
> method from C.

I had supposed that somebody more informed than I would respond... but as
I understand the problem (a) when a widget gets uncovered the X server
does not itself redraw the widget, but asks the client to do so. (b) The
Poplog Widget set offers a friendly service, whereby IT redraws the widget
when asked to do so by X. It can only do this if the Xpw... capabilities
have been used to do the drawing, otherwise it has no means of knowing
what has been done.

I presume the Xpw... stuff should be used from C. Since it is all written in
C, I presume also that the link-names exist, and that somewhere in
$usepop/pop/x one can find what to do. No doubt Jon Meyer can give a much more
comprehensive answer

Robin Popplestone.