[comp.windows.x] Transparent Widget Problem

yu@unisql.UUCP (Yeong-Ho Yu) (02/09/91)

 I made up a new widget called "arrow" which is different from
"arrowbutton" in two respects: it can point to any direction, and
it has a stem.  I plan to use it to show some hierarchy.
Since a widget's window should be rectangular which covers the whole arrow,
I had to make the window to be "transparent" so that the background 
is not covered by the window.  I did it by putting the following line
in the initialization and set_value routines.

 mw->core.background_pixmap = None;

There are two problems right now.  One is that,
when this widget is created one by one after each one is drawn completely
on the screen, there is no problem.  However, several arrow widgets
are created at once, their windows clip each other like regular
"non-transparent" windows. 

Also, when those widgets are used in a scroll window, the scrolling
does not move the image clearly.  Instead, it leaves some traces.

I will appreciate any help.



-- 
Yeong-Ho Yu

  Internet: execu!sequoia!unisql!yu@cs.utexas.edu
      UUCP: {uunet, cs.utexas.edu!execu}!sequoia!unisql!yu