HDTenEightyP/NetNews huggingface dataset:
From: snail@lsl.co.uk
Newsgroups: fj.mail-lists.x-window
Subject: Re: How to let the pointer disappeared?
Date: 4 Jan 93 20:28:55 GMT
Distribution: fj
Organization: Laser-Scan Ltd., Cambridge

Date: 4 Jan 93 16:50:28 GMT
Message-Id: <1993Jan4.165028.2882@lsl.co.uk>
Newsgroups: comp.windows.x

In article <1992Dec25.181545.21726@sparc4.ncu.edu.tw>, u438813@ba.ncu.edu.tw (Lin Wei-Ting) writes:
> I want to let the pointer disaooeared when the pointer enters a canvas.
> How should I do ?
> 
> Thanks..

Create a pixmap which has no pixels set in it. Do this using 

   Pixmap  pixmap;
   Display *display;
   Window  window;
   char    *bitmapdata;
   int     width, height;

   pixmap = XCreatePixmapFromBitmapData(display,
                                        window,
                                        bitmapdata,
                                        width, height,
                                        (unsigned long)1, (unsigned long)0,
                                        1);

Note that if bitmapdata points to some memory that contains all 0 data then
this provides you with no pixels set in it. Set Width and Height as
appropriate.

Now (for completeness) get the foreground and background colours...
This is not needed if you're setting a blank pixmap, but really your code
should be reusable and this lot should be part of something greater....

   Screen *screen;
   XColor bg, fg;

   screen = ScreenOfDisplay(con_get_frontend_display(),
                            DefaultScreen(con_get_frontend_display()));
   fg.pixel = BlackPixelOfScreen(screen);
   bg.pixel = WhitePixelOfScreen(screen);

   if (fg.pixel == bg.pixel)
   {
      printf("Black and white default pixels are the same");

      /* handle your error here */

      return;
   }

   fg.flags = (char)(DoRed | DoGreen | DoBlue);
   bg.flags = (char)(DoRed | DoGreen | DoBlue);

   /* now query to get the correct RGB for these pixel values, we       */
   /* query the default colour map                                      */

   XQueryColor(con_get_frontend_display(),
               DefaultColormap(con_get_frontend_display(),
                               DefaultScreen(con_get_frontend_display())),
               &bg);

Then set this pixmap as the pixmap cursor using

int hotspot_x, hotspot_y;

XCreatePixmapCursor(display, pixmap, pixmap,
                    &fg,
                    &bg,
                    hotspot_x, hotspot_y);

hotspot_x and hotspot_y specify where the hotspot goes, often set this to
width/2 and height/2 respectively.

OK? All this has been selected and edited from code we have here.... at least
    I don't think I've added typos in the editing..
-- 
snail@lsl.co.uk      

"Washing one's hands of the conflict between the powerful and the powerless
 means to side with the powerful, not to be Neutral."
                                                     Quote by Freire.
                                                     Poster by OXFAM.
From: cek@sdc.boeing.com (Conrad Kimball)
Newsgroups: fj.mail-lists.x-window
Subject: Re: xmail fails on compilation: get_wmShellWidgetClass error - Help
Date: 6 Jan 93 18:21:43 GMT
Distribution: fj
Organization: Boeing Computer Services, Seattle, WA

Date: 5 Jan 93 20:17:53 GMT
Message-Id: <7724@fury.BOEING.COM>
Newsgroups: comp.windows.x

In article <1992Dec31.085819.2817@elroy.jpl.nasa.gov>, earle@elroy.jpl.nasa.gov (Greg Earle - Gainfully Unemployed) writes:
|> In article <1992Dec30.222431.1694@sol.ctr.columbia.edu> hiren@teknetix.com(Hiren Shah) writes:
|> >I am trying to compile xmail on a Sun SPARCstation IPX.
|> > 
|> >I am running version X11R4.
|> >I received the source files via ftp, and used xmkmf to create the makefile.
|> >
|> >make
|> ...
|> >rm -f xmail
|> >cc -o xmail Mailwatch.o HelpText.o actions.o callMail.o callbacks.o confirm.o\
|> >directory.o environs.o
|> >handler.o mail.o parser.o  utils.o windows.o xmail.o -O   -lXaw -lXmu -lXt\
|> >-lXext -lX11 -lm
|> >ld: Undefined symbol
|> >   _get_wmShellWidgetClass
|> >   _get_applicationShellWidgetClass
|> >*** Error code 2
|> >make: Fatal error: Command failed for target `xmail'
|> ...
|> >I tried to change the position of libXmu on the compile line, but that doesn't
|> >help.
|> 
|> Canonical answer:
|> 
|> (1) If you have MIT X11 R4, you'll probably need to recompile your libraries.
|>     Advise immediate upgrade to R5 pl 21 (-:

Good advice, but if for some reason you need/want to stay with MIT X11 R4,
get file "contrib/X11R4_sunos4.1.2_patch_version3.Z" from export.lcs.mit.edu,
which retrofits R5 library build changes into R4.

|> (2) If you are using OpenWindows 3.0/3.0.1, you'll need to get two patches
|>     from Sun, I think they are 100512 and 100573.  One supplies a new libXt
|>     and the other supplies a new libXmu which work around the problem caused
|>     by the new (4.1.1+patches/4.1.2/4.1.3) SunOS 4.1.x linker.
|> 
|> (3) Quick-fix workaround:  Change
|> 
|> 	" ... -lXaw -lXmu -lXt" to " ... -lXaw -Bstatic -lXmu -Bdynamic -lXt"
|> 
|>     and recompile/re-link.
|> 
|>     Using "-Bstatic" before "-lXmu" will get you the 2 symbols you found in
|>     the statically-linked libXmu.a library.

--
Conrad Kimball       | Client Server Tech Services, Boeing Computer Services
cek@sdc.boeing.com   | P.O. Box 24346, MS 7A-35
(206) 865-6410       | Seattle, WA  98124-0346
From: J.K.Wight@newcastle.ac.uk (Jim Wight)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Xt question. Where are the pushbuttons?
Date: 5 Jan 93 15:57:38 GMT
Distribution: fj
Organization: University of Newcastle upon Tyne, UK, NE1 7RU

Date: 4 Jan 93 16:24:00 GMT
Message-Id: <C0C880.Mw2@newcastle.ac.uk>
Newsgroups: comp.windows.x

br762@cleveland.Freenet.Edu (Tim Werner) writes:

>Please Help.

>Trying to enter the "goodbye, world" program from "X Window System Toolkit",
>by Asente & Swick.

>It says,

>   #include "Pushbutton.h"

>I can't find this file anywhere. Is it a misprint? 

The Pushbutton widget is discussed in the book. In my copy the implementation
starts in section 10.6. You could type the source up from the book but it would
be better to pick up asente-swick.examples.tar.Z from an ftp site, e.g. 
export.lcs.mit.edu. 

Jim
---
J.K.Wight@newcastle.ac.uk
Department of Computing Science, University of Newcastle,  Tel: +44 91 222 8238
Newcastle upon Tyne, NE1 7RU, United Kingdom.              Fax: +44 91 222 8232
From: ian@hobbes.ds.boeing.com (Ian R. Searle)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Best WM? Vote for ctwm, plus good .ctwmrc file, HELP
Date: 12 Jan 93 02:46:55 GMT
Distribution: fj
Organization: Boeing Defense & Space Group

Date: 11 Jan 93 16:58:03 GMT
Message-Id: <C0p8Gr.CJ4@plato.ds.boeing.com>
Newsgroups: comp.windows.x

Peter Mutsaers (muts@estec.esa.nl) wrote:
: >>On Mon, 4 Jan 93 11:35:19 GMT, sinkwitz@ifi.unizh.ch (Rainer Sinkwitz) said:

:   Rainer> One vote for olvwm, you get the virtual screens and much
:   Rainer> more, and it's free !!!

: One vote against olvwm. It is open look. (typing this on a SUN with
: ^&*%#$ open look completely removed; I use plain X11R5 instead). Use
: ctwm, it is like twm, thus completely customizable (the standard
: customization is not very nice) but offers virtual screens as well. I
: shall append my .ctwmrc file, which is quite nice:

Since you all seem to be pretty good with ctwm maybe you can help me?
I just picked up ctwm (2.1) from export. Compiled it on my DECstation 3100
(X11r4, compile goes smoothly). When I fire up ctwm the workspace manager
buttons are nowhere to be found. I have twiddled with the .ctwmrc file
(workspacemanagergeometry) add-nauseum. I have tried the system.ctwmrc file.

Thanks in advance
Ian Searle (ian@hobbes.ds.boeing.com)
From: dror@netcom.com (Oz Dror)
Newsgroups: fj.mail-lists.x-window
Subject: Re: xconsole client cannot open console..
Date: 5 Jan 93 04:40:54 GMT
Distribution: fj
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

Date: 5 Jan 93 03:00:33 GMT
Message-Id: <1993Jan5.030033.10539@netcom.com>
Newsgroups: comp.windows.x

I have changed the ownership of xconsole. It did not solve  the problem.
-- 
NAME   Oz Dror, Los Angeles, California
SMAIL  dror@netcom.com
PHONE  (213) 874-7978  Fax (213) 667-6908
From: mark@trident.datasys.swri.edu (Mark D. Collier)
Newsgroups: fj.mail-lists.x-window
Subject: Plotting packages
Date: 12 Jan 93 06:53:49 GMT
Distribution: fj
Organization: Southwest Research Institute

Date: 11 Jan 93 19:47:00 GMT
Message-Id: <264@trident.datasys.swri.edu>
Newsgroups: comp.windows.x,comp.windows.x.motif

My sponsor is looking for an X/Motif-based plotting package to
be used for post-mission analysis of spacecraft telemetry data.
My expertise is mainly in real-time plotting (DataViews, SAMMI,
SL, etc.) and I really don't have a good idea of what is out
there for this application. Any vendor info or user opinions are
greatly appreciated.

Our system requirements are X/Motif, Unix/POSIX, and low-cost
for an environment consisting of over 300 workstations.

Note that we are looking for both complete applications and tools
(widgets for example), which we could build upon for the final
application.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mark D. Collier                      Southwest Research Institute
Senior Research Analyst              Automation and Data Systems Division
Voice: (512) 522-3437                Data Systems Department
FAX:   (512) 522-5499                Software Engineering Section
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: sandy@amoco.com (Sandy Rattray)
Newsgroups: fj.mail-lists.x-window
Subject: Any Experiences with X over serial lines
Date: 6 Jan 93 22:43:51 GMT
Distribution: fj
Organization: Amoco

Date: Wed, 6 Jan 1993 18:05:38 GMT
Message-Id: <C0G29F.J17@trc.amoco.com>
Newsgroups: comp.windows.x,amoco.tech.transfer



Has anyone had any experience using Workstations over serial lines  ?

It would be nice to be able to have dial up access to do support etc;

( Home working perhaps ?? )

I'm aware of simple dial-up giving terminal emulation but I am really           

interested in using X applications / NFS - I believe this can be done   

with SLIP | PPP to give IP over the thin wire and that Xremote | LBX

is available in X11R6 and Xvision.

        
It may also be desirable if the "remote" client were a portable

do any comments on the Tadpole Sparcbook would be of interest 

(or indeed intel portables running sunos perhaps ?? )

I suppose that the telecoms links would be key in such set-up

and would be especially keen to hear from anyone thats  
        
achieved reasonable response over public lines detailing

their set-up. (Modems , baud-rate etc)  


Regards Sandy.

---
------------------------------------------------------------------------
Sandy Rattray (Programmer/Analyst)              | phone      081-8495554 
Exploration & Production Applications           | fax        081-8497329 
Amoco Services Inc. London                      | email  sandy@amoco.com
From: aad@siemens.com (Anthony Datri)
Newsgroups: fj.mail-lists.x-window
Subject: Re: more dumb questions from a dumb beginner
Date: 9 Jan 93 06:28:39 GMT
Distribution: fj
Organization: Siemens Corporate Research, Princeton (Plainsboro), NJ

Date: Sat, 9 Jan 1993 03:26:18 GMT
Message-Id: <1993Jan9.032618.27463@siemens.com>
Newsgroups: comp.windows.x

>telnetting does not "carry across" the connection the terminal type of
>the local tty.

I believe that it's an option.  Some telnets will, some won't.


>environment variable is "dialup," "network," or similar and that
>	$ stty -a
>reports rows = 0 and columns = 0.  more, vi, and emacs depend on these 

>Set "TERM=xterm" and "stty rows xx columns yy" after telnetting to machine B.

Leave the stty values at 0.  termcap and SIGWINCH should do the rest.

-- 

======================================================================8--<
From: vlad@dkbfpny.com (Vladimir Stavitsky)
Newsgroups: fj.mail-lists.x-window
Subject: xview scrolling text problem
Date: 12 Jan 93 21:00:54 GMT
Distribution: fj
Organization: DKB Financial Products, Inc.

Date: 12 Jan 93 19:13:18 GMT
Message-Id: <1993Jan12.191318.24791@dkbfpny.com>
Newsgroups: comp.windows.x

Hi,
we have a problem with xview: we were trying to use TEXTSW package to display
some file; everything works ok, but TEXTSW window has just one (default) scrollbar,
and it is vertical; 

we needed a horizontal scrollbar for the same window along with the vertical one;
manual says explicitly that you can not do that with TEXTSW; still, we were able to
attach the second (horizontal scrollbar); it is visible - but it does not feel the related
events;

also we tried to use multiline text panel - same problem persists (just one scrollbar).

So the question is: what to use to display some big (long & wide) file?
Would you please send us email?
Thanks in advance.
Vlad
From: ftms!brown@bloom-beacon.MIT.EDU (Vidiot)
Newsgroups: fj.mail-lists.x-window
Subject: Re: XAPPLRESDIR
Date: 12 Jan 93 09:42:28 GMT
Distribution: fj
Organization: Vidiot's Other Hangout

Date: 11 Jan 93 20:44:08 GMT
Message-Id: <430@ftms.UUCP>
Newsgroups: comp.windows.x.motif,comp.windows.x,comp.windows.open-look

In article <1355@pivot-sts.sbi.com> ray@rann.sbi.com writes:
<Hi All
<  I'm trying to get my resource file via the XAPPLRESDIR environment variable and am not having much luck. Based on info in the OSF/Motif programmer's guide, I believe that I can use this var as follows
<  "setenv XAPPLRESDIR = $APPLHOME/etc"

The csh doesn't use the = sign in the assignment of environment variables.
It should be:

	setenv XAPPLRESDIR $APPLHOME/etc

This assumes that you are using csh.
-- 
harvard\
  ucbvax!uwvax!astroatc!ftms!brown  or  uu2.psi.com!ftms!brown
rutgers/
INTERNET: brown@wi.extrel.com  or  ftms!brown%astroatc.UUCP@cs.wisc.edu
From: kasajian@netcom.com (Kenneth Kasajian)
Newsgroups: fj.mail-lists.x-window
Subject: xwindows terminal program for DOS
Date: 11 Jan 93 21:54:57 GMT
Distribution: fj
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

Date: 11 Jan 93 07:38:16 GMT
Message-Id: <1993Jan11.073816.21298@netcom.com>
Newsgroups: comp.windows.x


I'm looking for a free xwindows terminal program to run under ms-dos
so that I can call Netcom more interactively.  Anyone know where I
can find such a beast?  Dirk doesn't know.

Kenny
From: lecom@slhp1.epfl.ch (Claude Lecommandeur)
Newsgroups: fj.mail-lists.x-window
Subject: Re: CTWM icons
Date: 11 Jan 93 11:18:11 GMT
Distribution: fj
Organization: Ecole Polytechnique Federale de Lausanne

Date: 11 Jan 93 08:46:29 GMT
Message-Id: <4586@sicsun.epfl.ch>
Newsgroups: comp.windows.x

In article <z##3mvb@rpi.edu>, shannp@vccnw14.its.rpi.edu (Patrick L Shannon) writes:
|> Hi there
|> 
|> I realize this is a silly question but...
|> 
|> I am running CTWM2.1 and I am wondering if the is any way to use
|> different icons when iconifying two windows that have the same
|> Class.res_name and Class.res_class but have two different names
|> on the title bar
|> 
|> Thanks,
|> 
|> Pat Shannon
|> shannp@rpi.edu

   Yes, you can use window titles in the Icons statement in .ctwmrc.

Claude.

-- 


                    Claude Lecommandeur
                    Service Informatique Central
                    Ecole Polytechnique Federale de Lausanne
                    1015 LAUSANNE (SWITZERLAND)
                    E-Mail : lecom@sic.epfl.ch
                    Tel : (41 21) 693-22-97
From: azaria@black.BGU.AC.IL
Newsgroups: fj.mail-lists.x-window
Subject: Help Request in X.
Date: 7 Jan 93 21:02:52 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Thu, 7 Jan 93 22:20:39-020
Message-Id: <9301080020.AA19079@black.bgu.ac.il>

I`m writing an aplication and I have a problem.

How do i get a font name if all i have is a pointer to a XFontStruct ?

so what i`m looking for is how to write a function like this:

	char *NameOfFontInStruct(XFontStruct *ptr)
	{

  	 	:
	  	:
	    return (FontName);
	}

Or is there a ready made thing like that?


thanX in advance.

-Azi.
  <azaria@ivory.bgu.ac.il>
From: dwex@cbnewsj.cb.att.com (david.e.wexelblat)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Can't compile X11R5 with gcc 2.3.3 on SVR4
Date: 6 Jan 93 07:37:27 GMT
Distribution: fj
Organization: AT&T

Date: 6 Jan 93 02:21:25 GMT
Message-Id: <1993Jan6.022125.26896@cbnewsj.cb.att.com>
Newsgroups: gnu.gcc.help,comp.windows.x

In article <1993Jan4.175438.16561@hal.nbg.sub.org> bodo@hal.nbg.sub.org (Bodo Bauer) writes:
> Hello to everyone out there!
> 
> The subject says it all. I tried to build X11R5 Pl.21 / XFree86
> and got the following errors:

Well, for one thing, XFree86 only handles X11R5 PL17.  If you went to PL21
before applying the patches, something is bound to be screwed up.  XFree86
1.2 will be out soon, and will support up to PL21.

> 
> make World BOOTSTRAPCFLAGS='-DSVR4 -DSYSV386' >& World.log &
> 
> [...]
> 
>         gcc -c -ansi -O2 -m486 -fpcc-struct-return -Di386   -I../../.  -DSVR4 -D
> SYSV386    -DUNIXCONN -DTCPCONN -DSERVER_LOCALCONN -DSVR4_ACP   -fPIC XConnIM.c
> XConnIM.c: In function `_XipConnectIM':
> XConnIM.c:101: `asm' needs too many reloads
> gcc: Internal compiler error: program cc1 got fatal signal 6
> *** Error code 1 (bu21)
> 
> [...]
>         gcc -c -ansi -O2 -m486 -fpcc-struct-return -Di386 -I.  -I../include -I..
> /.././X11 -I../.././lib/Xau  -I../../.  -DSVR4 -DSYSV386  -DXDMCP -DSHAPE -DMULT
> IBUFFER -DMITMISC  -DMITSHM  -DXTESTEXT1   -DUNIXCONN -DTCPCONN -DSERVER_LOCALCO
> NN -DSVR4_ACP       xdmcp.c
> xdmcp.c: In function `XdmcpRegisterBroadcastAddress':
> xdmcp.c:173: `asm' needs too many reloads
> gcc: Internal compiler error: program cc1 got fatal signal 6
> *** Error code 1 (bu21)
> 
> [...]
> 
> Any Idea? Gcc is version 2.3.3, compiled with target=i386-sysv4, I build
> the stage3 compliler wich was identical to stage2, should I try 'gas'
> instead of the supplied assembler? (BTW this is ATT SYSV386 Rel 4.0)

Well, I've built the server several times since upgrading to GCC 2.3.3,
and have not had this problem.  GAS has nothing to do with this; the
compiler itself is dying.  I'm really rather clueless about this.

> 
> 
> Any hint is welcome!
> 
> Ciao,
> 	BB
> 
> -- 
> -- Bodo Bauer * Nuernberger Str.81 * 8510 Fuerth * Germany *


--
David Wexelblat <dwex@mtgzfs3.att.com>  (908) 957-5871
AT&T Bell Laboratories, 200 Laurel Ave - 3F-428, Middletown, NJ  07748

"The meaning of life?  That's simple.  Try to be happy, try not to hurt
 other people, and hope to fall in love."  -- Mallory Keaton
From: ray@rann.sbi.com (Raymond Blum)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X question: How to I raise a window?
Date: 7 Jan 93 01:36:51 GMT
Distribution: fj
Organization: Salomon Inc.

Date: 6 Jan 93 19:22:08 GMT
Message-Id: <1350@pivot-sts.sbi.com>
Newsgroups: comp.windows.x


  Hi Alan
    Sorry that I can't answer your question, but I would appreciate it if you could forward the answer or post it when you find out.
  Thanks
---Raymond
---
------------------------------------------------------------------------
-----                                                              -----
-----                                                              -----
----                  \\\\\\\                                       ----
----                 \\\    \\   People ask me                      ----
----                  \\ o o       "Why are you smiling?"           ----
----                             I'm just happy!                    ----
----                     \_/                                        ----
----                                                                ----
----   Raymond Blum                                                 ----
----   ray@rann.sbi.com                                             ----
----   (201) 896-7594                                               ----

  Of course these are MY opinions! Whattya think, my EMPLOYER 
  could've thought this stuff up?
From: snail@lsl.co.uk
Newsgroups: fj.mail-lists.x-window
Subject: Re: Too Big XCreatePixmap returns ?
Date: 7 Jan 93 13:46:36 GMT
Distribution: fj
Organization: Laser-Scan Ltd., Cambridge

Date: 7 Jan 93 12:42:58 GMT
Message-Id: <1993Jan7.124258.2899@lsl.co.uk>
Newsgroups: comp.windows.x

In article <1993Jan4.195342.13271@news.dfrf.nasa.gov>, todd@fred.dfrf.nasa.gov (Todd Vernon) writes:
> 
> O'Reilly VII (page 108)  - XCreatePixmap returns a pixmap ID
> 
> Also BadAlloc, BadDrawable, BadValue can result.  I think I have
> an idea why however my question is a follows.
> 
> How do I trap for instance BadAlloc as would happen if I ask for
> a pixmap that is too big ?  This seems like a common problem
> since off screen memory in X Servers is often limited ?
> 
> Is BadAlloc returned in place of the pixmap id ?

No, any error and you end up in the XErrorHandler, the default behaviour of
which is to kill you program.

>  is zero 
> returned ? help how do I do this ?

Just before you make the pixmap install an XErrorHandler using
XSetErrorHandler(). If you get an X error the program will go to the function
you've declared. Remove the error handler afterwards tho!

I'd be surprised if you make a pixmap this big, the server has paging space
too!

We have one in place all the time (for debugging, put a breakpoint in the
error handler and step up through the trace, useful in synchronise mode,
although sometime the stack trace is sheepdip), we don't use it to trap
specifics though.
-- 
snail@lsl.co.uk      

"Washing one's hands of the conflict between the powerful and the powerless
 means to side with the powerful, not to be Neutral."
                                                     Quote by Freire.
                                                     Poster by OXFAM.
From: shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X question: How to I raise a window?
Date: 6 Jan 93 00:08:22 GMT
Distribution: fj
Organization: IBM Rochester, MN

Date: Tue, 05 Jan 1993 18:44:21 GMT
Message-Id: <1993Jan05.184421.14791@rchland.ibm.com>
Newsgroups: comp.windows.x

In article <1993Jan5.152033.13520@kodak.kodak.com>, sengillo@music.Kodak.COM (Alan Sengillo) writes:
|> How can I make an application raise it's window so that it is the top window on
|> a display? I tried XRaiseWindow, but that only works on windows with the same

XMapRaised()

-- 
: jay          jay@vnet.ibm.com    My opinions and ideas, not my employer's.
: shmdgljd@rchland.vnet.ibm.com    (c) Copyright 1992.  All rights reserved.
From: beck@irs131.inf.tu-dresden.de (Andre Beck)
Newsgroups: fj.mail-lists.x-window
Subject: Re: An Open Challenge (it can't be done!)
Date: 4 Jan 93 18:46:52 GMT
Distribution: fj
Organization: Dept. of Computer Science, TU Dresden, Germany.

Date: 4 Jan 1993 15:26:22 GMT
Message-Id: <1i9kuuINNcr6@irz401.inf.tu-dresden.de>
Newsgroups: comp.windows.x


The Problem was:
>Here's the short form:
> - 8 bit image in backing pixmap used to update window
> - Image drawn in 8 bit X window
> - Want to draw diagonal lines on top of image that can
>   be removed quickly (i.e. replace them with the data they so
>   recently covered)
> - Can't do server extensions (too many platforms to support)

If you already have the backing pixmap, why not do the following:

Keep a list of all lines.

To redraw, XCopyArea the pixmap to the window, then draw the line list to
the window.

To add/remove lines, simply add/remove them to/from your list, then redraw.

(I understand you the way, that you are drawing the lines to the pixmap,
 if not, it will get simple for you).

Another but not so good way would be a proper selected PlaneMask.


--
+-o-+--------------------------------------------------------------+-o-+
| o | Your .signature timeout has expired, please choose a new one | o |
| o | This one is dedicated to all copy-and-edit-my-sign-guys...   | o |
| o |                        \\\----///                            | o |
| o | Andre' Beck (ABPSoft) mehl: Andre_Beck@IRS.Inf.TU-Dresden.DE | o |
+-o-+--------------------------------------------------------------+-o-+