HDTenEightyP/NetNews huggingface dataset:
From: josh@viewlogic.com (Josh Marantz)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Help: Smooth Animation
Date: 21 Jul 92 12:22:33 GMT
Distribution: fj
Organization: Viewlogic Systems, Inc.

Date: 21 Jul 92 03:12:19 GMT
Message-Id: <1992Jul21.031219.26852@viewlogic.com>
Newsgroups: comp.windows.x

>I am trying to to animate lines on the display using XDrawLine, erasing,
>drawing again etc.  The problem is it flickers in a major way.  I don't
>think there is any double-buffer mode in X, should I draw off-screen or
>something, then copy it onto the screen?  Man pages on X...Buffer routines
>are not very clear.  If anyone has done anything similar, could you
>let me know how this was accomplished?

I did this recently and tried 4 methods:
        1. Erasing and drawing
        2. Color-map flipping.
        3. XCopyArea to off-screen pixmap
        4. X Double-buffering extension (check XmbufQueryExtension)

My choice among these was #3, for reasons I'll explain.

One method I didn't try was using XOR mode to erase the previous
lines after the new ones are drawn.  This might work well for
you if you're only using lines, and is very simple and fast.
The only problem is that intersecting lines will meet with
the background color.  I couldn't use this because my scenes
were too complex, and were mostly composed of filled polygons,
which wouldn't have XOR'd so well.

By far, the fastest and smoothest method I used was using color
flipping.  The disadvantage was I wanted lots of colors and this
limits you to 16 colors on an 8-plane display.  In addition, if you
use all the colors, the rest of the display (window manager borders,
other windows, screen background) flash wildly back and forth during
the animation.  This can be very distracting, unless you take up the
full screen, which some window managers may not permit.  It's also
a little tricky to program, but you can check out my code if you
want.

I had the same problem you did with erasing and drawing.  It was
too flickery.  Besides, I didn't like watching the scene paint
object-by-object.

XCopyArea and Double buffering had exactly the same effect for me on a
Sparc IPX, but I don't know whether it was equipped with a GX.  This was
what I settled on for the project.  It was slow to do the full-screen
XCopyArea or double-buffer swap, but it didn't flicker too badly, and
it let me use all the colors.  Perhaps on a machine with hardware
support for double-buffering, the double-buffering extension might
work better.

I am mailing my program that does this to the poster.  If it bounces
back, or if there is any demand, I'll post it.  It's 12K bytes.

Oh yeah, one other thing.  This program repeatedly crashed X11R5
(unknown patch level) both on Sparc 2 and Sparc IPX, though it was
about 5-megabytes deep into animation data by that time, and I didn't
have time to isolate or simplify it to report a bug properly.  It
worked OK on X11R4 and OpenWindows 2 & 3.
-- 
Joshua Marantz                          You make my life and times
Viewlogic Systems,                        a book of bluesy Saturdays
josh@viewlogic.com                      And I have to choose...
From: kathy@ngc.com (Kathy Neuts)
Newsgroups: fj.mail-lists.x-window
Subject: What C++ class libraries are available for X and MS windows?
Date: 24 Jul 92 12:06:06 GMT
Distribution: fj
Organization: Network General Corporation

Date: Thu, 23 Jul 1992 19:17:47 GMT
Message-Id: <Bruw9n.JM9@ngc.com>
Newsgroups: comp.windows.ms,comp.windows.x

If this subject has been discussed before, I apologize for the rehash.

We are looking for a C++ GUI class library that is available for both
X and MS windows.  We would prefer a commercial product and one with
simple 2D graphics ( such as bar charts, graphing capabilities) but would 
consider any that are available. 

Does anyone out there know of such a product?  Please email the response
to me at  kathy@ngc.com instead of posting it.  I will then post a
summary if I receive several replys. 

Thanks in advance for the help.


		kathy@ngc.com
From: villegas@rainbow.ecn.purdue.edu (Leticia Villegas)
Newsgroups: fj.mail-lists.x-window
Subject: Tool for recording keystrokes
Date: 31 Jul 92 07:49:29 GMT
Distribution: fj
Organization: Purdue University Engineering Computer Network

Date: 30 Jul 92 19:31:32 GMT
Message-Id: <1992Jul30.193132.2371@noose.ecn.purdue.edu>
Newsgroups: comp.windows.x




     I am looking for a tool that will record keystrokes and/or  X events
     which occur in an application running under X Windows.  Does anyone know
     if such a program is available?  Please post or e-mail.  Thanks.


Letty Villegas
Purdue University
villegas@ecn.purdue.edu
From: curt@hdsc-calm.ssc.af.mil (Curtis Frazier)
Newsgroups: fj.mail-lists.x-window
Subject: Bad Atom
Date: 23 Jul 92 18:10:23 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Thu, 23 Jul 92 07:24:16 CDT
Message-Id: <9207231224.AA10345@hdsc-calm.ssc.af.mil.hdsc.ssc.af.mil>
X-Status: NSCU
 
 
    I'm working in Ada trying to do ICCCM communication using the X selection mechanism.  I keep getting a BadAtom error and have no idea what causes this error or where it is.  I wrote the same program in C with no problems at all.
    Is there anyone else out there who has experienced anything similar to this?  And are there any ftp sites or dial-up BBSes where I could possible find Ada code to do the same?  Thank you very much.
From: pedz@slack.austin.ibm.com (Perry Smith)
Newsgroups: fj.mail-lists.x-window
Subject: draw or paint progrsm for x
Date: 24 Jul 92 10:08:47 GMT
Distribution: fj
Organization: IBM AWD

Date: 23 Jul 92 04:44:22 GMT
Message-Id: <PEDZ.92Jul22234422@slack.austin.ibm.com>
Newsgroups: comp.windows.x

I have an RS/6000 so I am not sure if I have X11R4 or 5 or something
strange in between.  I'm looking for a drawing program or a paint
program.  I know about xpaint but it is a little less than I would
like plus it requires a strange library that the 6000 does not have.
I could find and get the library work but from the description of
xpaint, it doesn't sound like it is worth my time.

The idle thing it seems to me would be something that used post
script.  I have Ghostscript and all the support for that.  But I would
be happy with something that used straight X.

I have done "archie" for "draw" and "paint" but didn't find anything
definate.  There are a lot of possibilities but I would take a rather
long time if any program listed is actually something I would want.

Anyhow, I would appriciate it if someone could drop a quick note to
me.  The best place is @ibmpa.awdpa.ibm.com:pedz@slack.austin.ibm.com
or another syntax is pedz%slack.austin.ibm.com@ibmpa.awdpa.ibm.com.
If both of these fail, then you can get directly to me at
pedz@aixwiz.austin.ibm.com (which is on the internet).

Thanks
pedz
From: pcc@s1.gov (Philip C. Cox)
Newsgroups: fj.mail-lists.x-window
Subject: R5 on Solaris 2.0
Date: 24 Jul 92 03:17:39 GMT
Distribution: fj
Organization: LLNL

Date: 23 Jul 92 16:05:12 GMT
Message-Id: <1992Jul23.160512.14619@s1.gov>
Newsgroups: comp.windows.x


Has anybody done this? If so can you point me in the right direction on
how to get started?

Phil
-- 
***********************************************************************
* Philip C. Cox          |  L.L.N.L.                                  *
* E-Mail: pcc@s1.gov     |  P.O. Box 808 L-542                        *
* VOICE: (415) 423-8316  |  Livermore, CA 94550                       *
*=====================================================================*
*                     Quote of the week :                             *
*                                                                     *
* "Many a man aims at nothing, and hits it with remarkable percision" *
*                                             - unknown               *
***********************************************************************
From: roegel@loria.fr (Roegel Denis)
Newsgroups: fj.mail-lists.x-window
Subject: STOP: text translations in Athena widget
Date: 30 Jul 92 19:16:03 GMT
Distribution: fj
Organization: CRIN (CNRS) Nancy - INRIA Lorraine

Date: 30 Jul 92 11:20:48 GMT
Message-Id: <421@muller.loria.fr>
Newsgroups: comp.windows.x


Hello netters,


This is a little question about the translations (of an Athena widget). 

I have a line looking

static String   text_translationsT = "\
	<Key>Delete:    DeleteT() end-of-file() delete-previous-character()\n\
        ...


I would like to call delete-previous-character() only conditionnally, 
depending on the result of DeleteT(). Let's assume that DeleteT() sets an 
integer 'yes' either to 0 or 1, and that I want to call 
delete-previous-character() when 'yes' is equal to 1.

How can I achieve it ?

Thanks very much in advance,

Denis.  INTERNET e-mail: roegel@loria.fr
From: mcmahon@tgv.com (John 'Fast-Eddie/FuzzFace' McMahon)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X Window Security
Date: 31 Jul 92 04:36:23 GMT
Distribution: fj
Organization: TGV Incorporated (Tech Support) in Santa Cruz, CA

Date: 30 Jul 92 19:19:33 GMT
Message-Id: <1992Jul30.191933.15443@news.arc.nasa.gov>
Newsgroups: comp.windows.x


In article <1992Jul30.154314.9311@unocal.com>, stgprao@xing.unocal.com (Richard Ottolini) writes:
=Basically there is no security unless you have explicitly turned it on.
=It is not to hard to write a little deamon to eavesdrop on someone's xterm
=session or insert keystroke events into someone's xterm.  For example,
=window managers use event interception to implement their features.

=I am surprised so few serious hacks have been reported so far.

You aren't the only one...

It's important to realize that X windows security even when turned on can be
very weak.  Older version of X only use "Host Access" security.  This only controls which hosts can "touch" your server.  To borrow from the man pages for Xsecurity...  this works well where everyone trusts everyone else, or where you don't have multi-user machines.  Most people are familiar with this
type of security through the xhost command.

There are a variety of good methods available under R5 which can keep your machines reasonably secure.  The problem here is getting users to use security, as opposed to the "ease" of typing "xhost +".

A good thing to read is the man page titled Xsecurity in X11R5.

--
John 'Fast-Eddie' McMahon    ()
TGV, Incorporated            () "Any networking problem can be solved by
603 Mission Street           ()  the application of 33 miles of Unshielded 
Santa Cruz, California 95060 ()  Twisted Pair (UTP)"   
408-427-4366 or 800-TGV-3440 ()                      [InterOp Spring 1992]
E-Mail: MCMAHON@TGV.COM      ()
From: mikeq@seqp4.sequoia.com (Michael Quicquaro)
Newsgroups: fj.mail-lists.x-window
Subject: X11R5 and Motif Compatibility
Date: 28 Jul 92 18:42:54 GMT
Distribution: fj
Organization: Sequoia Systems Inc., Marlboro, Mass

Date: 28 Jul 92 15:11:19 GMT
Message-Id: <1400@seqp4.sequoia.com>
Newsgroups: comp.windows.x

Sorry if this has been discussed already on this newsgroup,
but I would like to know if X11R5 is compatible with Motif 1.1 ?

If it is not compatible programming-wise, can I use Motif 1.1 as
a window manager while using X11R5 windows ?

Thanks for the help.
From: meir@tfs.com (Meir Zaid)
Newsgroups: fj.mail-lists.x-window
Subject: Using xwd to dump menus
Date: 29 Jul 92 03:37:08 GMT
Distribution: fj
Organization: TRW Financial Systems

Date: 28 Jul 92 21:29:09 GMT
Message-Id: <1992Jul28.212909.20892@tfs.com>
Newsgroups: comp.windows.x.motif,comp.windows.x



I would like to dump an images of a menu from an application I am
writing in order to put it in the documentaion.  The problem is that
when I run xwd while the menu is posted I get the error -

xwd: error: Can't grab the mouse.

I understand why I get this error.
Is there a way I can dump the image of a menu to a file?
I just want to be able to print the menu to a printer.

-- 

Meir Zaid			meir@tfs.com
TRW Financial Systems		(510) 704-3362
Berkeley,  California		Fax: (510) 845-7311
From: marc@hemlock.cray.com (Marc Bouron)
Newsgroups: fj.mail-lists.x-window
Subject: Problems running on colour display
Date: 23 Jul 92 01:33:23 GMT
Distribution: fj
Organization: Cray Research, Inc.

Date: 22 Jul 92 04:17:40 CDT
Message-Id: <1992Jul22.041741.20412@hemlock.cray.com>
Newsgroups: comp.windows.x


Hi People,

I have an application here which has been running fine for a number of
months and is being used by a number of people.  It uses Wcl and Xaw.
Recently, I've had a couple of reports of it not working -- X complains
of not being able to create/open the toplevel window.  It turns out that
all these reports come from people with colour Sparcs -- the previous
users all have mono SLCs.  So the question: is there something blindingly
obvious (to you, but not to me) that I need to do -- in my code or in the
resources -- so that my application will run on any ol' display device?
I thought you didn't have to worry about such things with X.  Perhaps
someone can tell me otherwise.  Thanks for any information!

Cheers,

[M][a][r][c]
From: bdr@cbnewsg.cb.att.com (brian.d.reed)
Newsgroups: fj.mail-lists.x-window
Subject: Suspending a root window program
Date: 28 Jul 92 06:27:30 GMT
Distribution: fj
Organization: AT&T

Date: 27 Jul 92 23:17:47 GMT
Message-Id: <1992Jul27.231747.2726@cbfsb.cb.att.com>
Newsgroups: comp.windows.x


I posted this a while back, but then the lightning came, so I 
doubt that this ever made it out.

I'm running on a VAXstation 4000, VMS 5.5, Motif 1.0A.
Apparently there is a bug (or should I say incompatibility) from
when DEC made X run on the new 4000.  

I have a background program running (background meaning in the 
root window).  OK--it's a bunch of fishies.  Whenever I move or
resize a window, the root window gets scrambled up with my other
windows.  Not being X-literate, is there a way I could add something
to the (C) program to skip re-drawing while any window is being
moved/resized?   From what little I know, I would guess to look
for some event happening, but not knowing X, I don't know what 
or how to cover an event happening in any window.

Thanks for any/all/some/no help.

 Brian D. Reed    bdr@cbnewsg.cb.att.com
From: lee@sq.sq.com (Liam R. E. Quin)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X-SOFTWARE: New release of xrecplay.tar.Z - Automated record/playback
Date: 23 Jul 92 14:25:45 GMT
Distribution: fj
Organization: SoftQuad Inc., Toronto, Canada

Date: Thu, 23 Jul 92 00:15:50 GMT
Message-Id: <1992Jul23.001550.18907@sq.sq.com>
Newsgroups: comp.windows.x.apps,comp.windows.x

ess@hal.COM (Eric Swildens) describes xrecplay...

which uses the X11R5 test extension.

Has anyone written this as a shared library that can be used as an
OpenWindows 3 extension?  You don't need OpenWindows source to add server
extensions...

Lee

-- 
Liam Quin, lee@sq.com, SoftQuad, Toronto, 416 239-4801; the barefoot programmer
  lq-text (Unix text retrieval pacakge) mailing list: lq-text-request@sq.com
  latest released version: 1.10; 1.12 coming in August probably
  ftp: ftp.cs.toronto.edu in directory: pub
From: BARRYTE@eagle.dnet.hac.com
Newsgroups: fj.mail-lists.x-window
Subject: Previewing Output
Date: 28 Jul 92 23:47:04 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Tue, 28 Jul 92 12:58:21 PDT
Message-Id: <9207281958.AA12949@hac2arpa.hac.com>

We use a program that can produce screen output for HP2648A,
Tektronix 4010/4014, DEC VT125/240 (Regis), Retrographics 640, &
Grinnell 270, & printed output for Versatec V80, Printronix,
Imagen 8/300, & QMS Lasergrafix.

Is there a terminal/device emulator -- commercial or otherwise --
for previewing any of these formats in Sunview on a Sun 4/360 with
a GP2 (aka CXP) graphics processor.

Please send vendor contact info or host name/file name for FTPing
or ... to me since I don't get this newsgroup. I'll summarize if
anyone requests.
Thanks in advance,
Steven Barryte -- BARRYTE@EAGLE.DNET.HAC.COM
From: ess@hal.com (Eric Swildens)
Newsgroups: fj.mail-lists.x-window
Subject: X-SOFTWARE: New release of xrecplay.tar.Z - Automated record/playback
Date: 21 Jul 92 17:16:41 GMT
Distribution: fj
Organization: HaL Computer Systems, Inc.

Date: 20 Jul 92 21:13:35 GMT
Message-Id: <14fa9vINN3ja@alf.hal.COM>
Newsgroups: comp.windows.x.apps,comp.windows.x


I have placed a new version of xrecplay.tar.Z on export.lcs.mit.edu in the
contrib directory (file size of 191345).

From the README:

This distribution describes how to build the X test extension into an X11R5
Sun server and contains a set of tools for automated testing of X clients.
This automated testing includes record and playback of mouse and keyboard
events and pixmap comparisons of images on the display to verify correctness.
It should work with all X clients, including Motif, Xaw and xview clients and
window managers.

To build the clients in this distribution, you need to build an X11R5 Sun
X server and the libraries (libX11 and libXext) from the MIT distribution.

Most of the credit goes to others for more of the extension and the
xtm tools, I only wrote part of the extension, packaged everything up,
did bug fixes and wrote one additional client.

New in this release:
        - WarpCursors are now recorded - before if a client warped
          the cursor, the playback would be off track
        - Pixmap comparison made easier and more portable for playing
          back on either color/bw terminals when Colormap matching is off.
        - no warning messages about the colormap when colormap matching
          is off
        - bug fix which keeps the xtmconvert client from stripping image
          information when converting between file formats
        - bug fix so you can build the server without the extension defined
        - bug fix in XTest extension where record would record wrong
          x,y positions of the cursor if you touched the bounds of the
          screen (now records position after server constrains it)
        - partial window matches are now specified by the mouse instead of
          the keyboard

ESS
From: hinkmond@tamri.com (Hinkmond Wong)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Xrecorder
Date: 24 Jul 92 03:44:19 GMT
Distribution: fj
Organization: Toshiba America MRI, Inc.

Date: 23 Jul 92 15:33:02 GMT
Message-Id: <HINKMOND.92Jul23083300@igor.tamri.com>
Newsgroups: comp.windows.x

>>>>> On 23 Jul 92 00:40:30 GMT, gfish@amd-1s.hac.COM (Gary Fish) said:
> I am interested in the xrecorder product described in the Xhibition 92
> Volume 1 Conference Proceedings. If anybody has information on this product
> please send me Email at:
> gfish@amd-1s.hac.com
> or call me at
> 714-732-7343


If you have enough interest, please post the info to this newsgroup.  If not,
please also forward it to:

hinkmond@tamri.com

Thanks,
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Hinkmond Wong				Internet: hinkmond@igor.tamri.com     +
+ Software Engineer			Phone: (415) 872-2722 x3328           +
+ Toshiba America MRI, Inc. 		FAX:   (415) 875-2915                 +
+ So. San Francisco, CA  94080                                                +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
From: wpm@is.morgan.com (W. Phillip Moore)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Time Management tool for X11
Date: 30 Jul 92 11:01:53 GMT
Distribution: fj
Organization: Informations Services Dept., Morgan Stanley Japan

Date: Thu, 30 Jul 1992 14:27:21 GMT
Message-Id: <WPM.92Jul30092721@exile.is.morgan.com>
Newsgroups: comp.windows.x


Phil> Several months ago, someone posted an interesting X11 utility which I
Phil> ignored at the time, and now would find incredibly useful.
Phil> Basically, this tool allowed you to create a list of current tasks,
Phil> and by clicking on the task which is active, you could effectively
Phil> determine how many hours a day were spent on each task.  Rather like
Phil> a multi-player chess clock (does such a beast exist??)

Thanks to the 30+ responses I got, some even sending me the source
directly.  The tool is called "timex", and it is listed in archie.

Turns out to be almost exactly what I wanted.  Thanks again.

Phil
From: lccinc!sram@bloom-beacon.mit.edu (Siddharth Ram)
Newsgroups: fj.mail-lists.x-window
Subject: Re: GXcopy and GXxor
Date: 26 Jul 92 23:38:32 GMT
Distribution: fj
Organization: LCC Inc., Arlington VA

Date: 26 Jul 92 18:36:48 GMT
Message-Id: <81@hallofjustice.UUCP>
Newsgroups: comp.windows.x

In article <MICHAEL.920724095149@maine.maine.EDU>, michael@maine.maine.edu (Michael Johnson) writes:
> In article <xia.711911424@odin> xia@molbio.ethz.ch (Xia Tai-he) writes:
> >However, the lines drawn with the second GC don't have
> >the color I have set, whose colors differ depending on the
> >objects alreay existing on the screen. Could you give
> 
> There's not really much you can do about it. When you XOR the pixels, the
> resulting pixel value is going to yield whatever color that pixel maps to.

you can do something about it, provided you are willing to
use up an overlay plane, or install you own colormap. then you
would have control over all the colorcells.

an excellent reference for this Ken Lee's article , 
  "Graphics effects by manipulating X Colormaps"
  in the X Journal, May -June 1992.

  Siddharth Ram
  uunet!hallofjustice!sram
-- 
.signature not included (empty)
From: ftms!brown@bloom-beacon.mit.edu (Vidiot)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Still Have Problem on Sun
Date: 23 Jul 92 16:09:19 GMT
Distribution: fj
Organization: Vidiot's Other Hangout

Date: 22 Jul 92 16:44:24 GMT
Message-Id: <253@ftms.UUCP>
Newsgroups: comp.windows.x

In article <1992Jul21.184211.10537@ennews.eas.asu.edu> elder@enuxha.eas.asu.edu (Greg Elder) writes:
<I'm still having problems getting an X program to link on a Sun workstation.
<Again, this is a program which links and runs fine on a DEC ULTRIX
<workstation, which I would like to have run on a Sun as well.  Below is
<the command line I use to link everything, with the resulting error
<message:
<
<cc -o map -O -I/usr/openwin/include -L/usr/openwin/lib map.o initapp.o
<xwinutil.o xbutton.o -lXm -lX11 -lXt
<
<ld:  undefined symbol
<        __XtInherit
<        _XtToolkitInitialize
<
<I haven't been able to figure out why this error pops up.  Aren't these
<two routines in libXt.a?  I'm new to using Suns, so please let me know if
<I'm missing something that is obvious.  Any help is appreciated.  Thanks.

You didn't say which version of OW you are running?  I'd guess 3.0.  If this
is the case, this error may be related to the Xmu error that I have been
getting.  Sun appears to have broken the shared libraries.  Try entering:

cc -o map -O -I/usr/openwin/include -L/usr/openwin/lib map.o initapp.o
xwinutil.o xbutton.o -Bstatic -lXm -lX11 -lXt
-- 
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: klee@wsl.dec.com (Ken Lee)
Newsgroups: fj.mail-lists.x-window
Subject: Re: One program - two displays - two cursors
Date: 28 Jul 92 22:34:57 GMT
Distribution: fj
Organization: DEC Western Software Laboratory

Date: Tue, 28 Jul 92 17:16:55 GMT
Message-Id: <1992Jul28.171655.16569@PA.dec.com>
Newsgroups: comp.windows.x

|> >Just open connections to each display.  If you're using the X Toolkit, put
|> >all the display pointers into the same application context for easy event
|> >handling.
|> 
|> Could somebody briefly explain how Xt implements this internally (or is
|> it too involved)?  Thanks!

Briefly, it just uses select() on the all the sockets.  You can check
the source code for more details.

-- 
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee