HDTenEightyP/NetNews huggingface dataset:
From: sue@byron.u.washington.edu (Shu-Chen Eclipse)
Newsgroups: comp.windows.x
Subject: Help: .Xdefaults resources
Date: 29 Jul 92 10:45:42 GMT
Organization: University of Washington, Seattle


Could anybody tell me what resources I need separetly set the various fonts and
colors for the Workspace popup menus, the term pane windows, other pop-ups??

I noticed that "*buttonFont" <fontname> changes the fonts on the face of the
workspace menus and on the exit/cancel buttons on the menu that pops up when
you click exit on the workspace menu.

BUT          
      "*ButtonFont: <fontanme> has no effect
      "*button*Font: <fontname> has no effect
      "CursorColor: .... has no effect
    "*cursor*Color: .... has no effect
   BUT
    
      

   BUT
   "cursorColor: .... CHANGES THE CURSOR COLOR???!!
   "buttonFont:.... CHANGES THE popup menu fonts, except the menu titlefonts

 BUT 
  "menu*Font:... has no effect
"menu*TitleFont:... has no effect
"*Menu*Font:... has no effect
BUT
 "*TitleFont:... CHANGES ALL TITLE FONTS, INCLUDING THE MENUS??!!

 ALSO, somewhere along the line I found something that changed the font
on the menu that pops up when you click exit on the Workspace menu.


Somehow, I can no longer duplicate it. instead, all I now get (with my
"buttonFont:..." is large fonts on the buttons themselves. What resource
controls the text above these buttons?? I had it --then I lost it during
my experimentation, and I can not get it back for the life of me!!

I've tried all permuations of "button, font, menu"--nichts!!



Also, I have been totally unable to change the color of my menus, buttons,
slider bars separetly. What am I missing. I've tried numerous permutations
of "Color, Background, forground, slider, scrollbar, button, menu, upper and
lower case, *, ., ---- nothing!!

Why do these resources act so strangely: notice the button and menu examples
above.

thanx for answering,
sue@byron.u.washington.edu
From: beck@qtp.ufl.edu (Sullivan Beck)
Newsgroups: comp.windows.x
Subject: Problem with X11R5p12 libXmu dynamic linking
Date: 21 Jul 92 19:20:40 GMT
Organization: Quantum Theory Project, University of Florida


I'm trying to build X11R5 pl 12 on a Sun 3/50 running SunOS 4.1.1 with
gcc 2.2.2.  The only change that I've made to the source is to add the
Xidle extension.  This does not modify any existing source, and X with
the extension compiled fine on a Sun4 (SunOS 4.1.2 without gcc), so I
do not think that the problem I am having has anything to do with
Xidle.  Also, the sun3 server compiled fine (though I have not tested
it yet).

When I run Make World, it gets all of the libraries compiled fine, but
then when it tries to make the clients, it fails with several of them.
The first is bitmap.  From the output of the make (I am installing
everything in /usr/X11R5/{bin,lib,include}):

gcc -fstrength-reduce -fpcc-struct-return -o bitmap -O   BitEdit.o
  CutPaste.o Graphics.o ReqMach.o Bitmap.o  Dialog.o Handlers.o
  -L../.././lib/Xaw -lXaw -L../.././lib/Xmu -lXmu -L../.././lib/Xt
  -lXt -L../.././extensions/lib -lXext -L../.././lib/X -lX11
  -L/usr/X11R5/lib   -lm -B/usr/bin/
gcc: Internal compiler error: program ld got fatal signal 11
*** Error code 1

I traced the problem down to dynamically linking with the new Xmu
libraries.  If I remove the -L../.././lib/Xmu flag and move the -lXmu
flag after the -L/usr/X11R5/lib (so it links dynamically against the
X11R5pl8 Xmu library that is currently installed) it works fine.  I
can also replace the -L../.././lib/Xmu and -lXmu flags with
../../lib/libXmu.a so that it links statically agains the new Xmu
library and this also works fine.

I have completely rebuilt the Xmu library once and that did not change
anything (there were no compilation warnings or errors but it still
gives me the segmentation fault error).  If anyone has seen this
problem or knows how to fix it, I would appreciate any help you can
give me.

S. Beck (beck@qtp.ufl.edu)
Newsgroups: comp.windows.x
From: alvin@boddu.prime.com (Alvin)
Subject: Help! Why this small program core dump ?
Organization: Prime Computer R&D
Date: Fri, 31 Jul 1992 20:14:33 GMT

Hi,

    I am pretty new to XWindow. I have the following codes that core dumped.
I cannot find what is wrong ! Before it calls XtInitialize, it just go into
a loop which read a line from the file and put it into a char pointer array.
It core dumps in XtInitialize. Here is the code. Any help is appreciated !

-Alvin

------------------------------------------------------------------------
#include <stdio.h>
#include <Xm/Xm.h>
#define MAXLINES 10


char *account[MAXLINES];
char temp[20];

main(argc, argv)
int argc;
char *argv[];
{
    XtAppContext app;
    Widget toplevel;
    int i;
    int len;
    int noentry;
    FILE *account_file;
    account_file = fopen("account", "r");
    i = 0;
    while(fgets(temp, 21, account_file) != NULL) {
        len = strlen(temp);
        account[i] = (char *)calloc(len,1);
        strcpy(account[i], temp);
        i++;
    }
    fclose(account_file);
    noentry = i;

    toplevel = XtVaAppInitialize(&app, "Major", NULL, 0, &argc, argv,
                                  NULL, NULL);
}

   Feng-shun (Alvin) Chang             |    
   Software Support Analyst            |   We need more "love" than "hate"  
   Prime Computers, Inc.               |
   Email : ALVIN@CSSS-A.PRIME.COM      |
From: davidh@muppet.bt.co.uk (David Hobley)
Newsgroups: comp.windows.x
Subject: Re: compile error
Date: 21 Jul 92 13:17:37 GMT
Reply-To: davidh@muppet.bt.co.uk
Organization: British Telecom Research Laboratories

In article 8785@kth.se, tomasc@lionfish.tds.kth.se (Tomas Carlsson) writes:
>In article <1992Jul20.121551.22457@kth.se>, tomasc@lionfish.tds.kth.se (Tomas Carlsson) writes:
>|> I'm trying to compile a program I've written. I've stolen and
>|> modified a Makefile but I'm not able to understand this error:
>|> 
>|>    ld: Undefined symbol 
>|>       _error 
>|>       _pow
>|>       _floor
>|>       _get_wmShellWidgetClass
>|>       _get_applicationShellWidgetClass
>|>       __XtInherit
>|>       _XtToolkitInitialize
>|>    *** Error code 2
>|> 
>     (deleted som stuff here)
>|>
>|> In my makefile I use (among others) these flags: (yes, I've
>|> used devguide)
>|> 
>|>    -lguidexv -lguide -lxview -lolgx -lXmu -lXt -lXext -lX11
>|> 
>|> I'm using openwindows 3.0, X11R5 on a sun4.
>             ^^^^^^^^^^^^^^^
>
>That seems to be the problem (OW 3.0). I tried to compile under
>OW 2.0 - no problem!

->Tomas Carlsson

Openwindowns 3 seems to have broken at least the Xmu shared lib.
Also you have forgotten the math library.

Compile the program statically for a workaround and put -lm on the end.

david



---
Newsgroups: comp.windows.x
From: "Marshall Caro" <p00051@mail.psi.net>
Subject: Spy Program
Reply-To: replies
Organization: PI Systems
Date: Mon, 27 Jul 1992 19:08:01 GMT
X-Mailer: PSILink (3.01)

Does anyone know of a SPY program that will capture X Protocol messages 
to and from the X Server???

				Thanks,
				James Talvy
Newsgroups: comp.windows.x
From: pop@goedel.mitre.org (Paul O. Perry)
Subject: Where are those rolodex ?
Organization: The MITRE Corporation
Date: Mon, 27 Jul 1992 19:52:33 GMT


I recall an exercise in toolkit evaluation that asked for submissions
of an implementation of a rolodex in as many toolkits as possible. The
last I heard there were submissions for : motif, interviews, tcl/tk,
wcl, and I'm sure others, but the programs were not released.  Have
the demos since been released, if not, is there any plan to release
them ?

Thanks, Paul.

--
Paul O. Perry                                        Phone: (617) 271-5230
MITRE Corporation                                    Fax:   (617) 271-5255
202 Burlington Road                                  pop@mitre.org
Bedford, MA  01730-1420
From: SAMMY@vand.physto.se
Newsgroups: comp.windows.x
Subject: xterm & fonts
Date: 27 Jul 92 15:50:00 GMT
Organization: The Internet


        This is a question that perhaps will only reveal the level of
my ignorance: why can one use only fixed fonts in xterm? What are the
extra problems involved in arranging things so variable character width
fonts can be used? I mean, in such a way that the output looks nice on
the screen.

	Thanks so much in advance.


JCA
sammy@vana.physto.se
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.windows.x
Subject: Re: How to create a window which stays in front always ?
Date: 30 Jul 92 07:13:28 GMT
Distribution: na
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: gandalf.think.com

In article <1992Jul30.003049.6704@thunder.mcrcim.mcgill.edu> mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
>You probably don't really want this

Isn't this the usual way live video windows are implemented?  Such systems
allow a video input to be directed to a rectangle on the display.  An X
window is mapped to that area and always raised to the top.  No real X
output is done to this window -- it's just a placeholder so that other
windows will clip against it and mouse events can be directed at the
client.

I'll wager this is the kind of application the poster is working on.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
Newsgroups: comp.windows.x,comp.windows.x.motif
From: tec@sgfb.ssd.ray.com (Christiansen)
Subject: How to keep a toplevel window on top always?
Organization: Raytheon Company
Distribution: usa
Date: Fri, 31 Jul 1992 14:29:19 GMT



How do I keep a toplevelshell at the top of the window stack.  I have an 
application with several processes.  Each process has a main window.  One 
window takes up the entire display and the other window sits on top of it
on the right side of the display.  When the first window(process) manages a
dialog box, the other window on the right gets lowered.

I need to keep the smaller window on top always.  Is this possible.
I have kludged it for the time being by unmapping and mapping the window that
needs to stay on top but this is unacceptable in the long run.

I am on an SGI Indigo running rev 4 of X and Motif 1.1.

Please respond to e-mail or post news here.

					Thanx
					     Paul Zajac 
                                           (using account tec)
Xref: sparky comp.windows.x:14667 comp.sys.sun.admin:5124
From: olsenc@milton.u.washington.edu (Clint Olsen)
Newsgroups: comp.windows.x,comp.sys.sun.admin
Subject: Problems building X11R5 on SunOS 4.1.2
Date: 31 Jul 92 01:06:15 GMT
Organization: University of Washington, Seattle


Hello all:

I was wondering if someone could help me with my install of
X on a Sun Sparc 2.

I got errors (many times) that state:

ld: ../.././lib/Xt/libXt.so.4.10: rd_shsb: can't open shared library
../.././lib/Xt/libXt.so.4.10

and

ld: /usr/local/lib/libXt.so.4.10: rd_shsb: can't open shared library 
/usr/local/lib/libXt.so.4.10

Some things you might want to know about how I set up site.def and
sun.cf are:

I uncommented "Has Gcc"
I set ManSuffix to 1
I set InstallXdmConfig and InstallXinitConfig to YES
I set HasXdmAuth
I set InstallFSConfig
I set MotifBC
I also set OSTeenyVersion to 2 (by default, the SunPost411FCSLd
gets set to YES), so I didn't set it manually.

This is also my 2nd try, I also ran "make install" after the first
time, not knowing that things went wrong.

Any help would be appreciated.

-Clint
Newsgroups: comp.windows.x
From: rsilvers@powwow.nynexst.com (Rob Silvers)
Subject: How do you use SendEvent to move pointer?
Originator: rsilvers@powwow
Organization: Nynex Science and Technology
Date: Tue, 28 Jul 92 19:27:42 GMT



	I would like to read coordinates from a serial device and move the
pointer.  How do you use SendEvent to do this?  Can you send the Events
to the RootWindow?  Does anyone have a code fragment that does this?  Perhaps
with buttonpresses also?

				Thanks,
				--Rob.
Newsgroups: comp.windows.x
From: bdr@cbnewsg.cb.att.com (brian.d.reed)
Subject: Suspending a root window program
Keywords: root, suspend, move, resize
Organization: AT&T
Date: Mon, 27 Jul 1992 23:17:47 GMT


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: uclyjjd@ucl.ac.uk (Julian Daley)
Newsgroups: comp.windows.x
Subject: Can't get xscribble to work !
Keywords: xscribble
Date: 29 Jul 92 10:21:01 GMT
Organization: Bloomsbury Computing Consortium

I've compiled xscribble on a Sun 4 running openwindows 3.  I
made the FWF and xpm packages first.

When I run xscrib I get an error -

	Error: Widget filler has zero width and/or height

Anyone any idea what I'm doing wrong ?

Julian.

        _________________________________________________________
       | Julian Daley,                                           |
       | Department Clinical Physics,                            |
       | Guys Hospital, London.                j.daley@ucl.ac.uk |
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Newsgroups: comp.windows.x
From: nounou@flagship.csuohio.edu (Nemtallah Daher)
Subject: WANTED: X for NeXT Station Mach 2.1
Organization: Cleveland State University
X-Newsreader: Tin 1.1 PL4
Date: Thu, 23 Jul 1992 15:53:08 GMT

Does anyone know if X is available for the NeXT.  I am currently running Mach 
2.1.  I would appreciate any info that anyone has, thank you.

Nemtallah Daher
nounou@flagship.csuohio.edu
Newsgroups: comp.windows.x
From: chris@ods.com (Chris Atkins)
Subject: Re: xdm and key mappings
Organization: Optical Data Systems, Inc.
X-Newsreader: Tin 1.1 PL4
Distribution: usa
Date: Fri, 24 Jul 1992 21:11:30 GMT

wbt@cs.tulane.edu (Bill Thomason) writes:
: 
: I'm trying to set xdm to run on our departmental workstations.  I've run into
: a slight problem.  I just discovered that one of our users remaps the QWERTY
: keyboard arrangment to DVORAK using xmodmap and the keysym command for each
: key.
: 
: When he finishes with his login session, the keys still remain mapped to
: DVORAK.  Needless to say, this could potentially wreak a lot of havoc on
: most everyone using these workstations.
: 
: I suppose he could manually remap the keys before logging out but this could
: become a real nusance.  Does anyone know of some way of automating the
: re-mapping process so that another user could come along and be able to use
: a QWERY keyboard arrangement?
: 
: 
Set up a Xreset script.  The script gets run as root after the user session is
terminated.  

Chris Atkins
chris@ods.com
Newsgroups: comp.windows.x
From: bucci1@donner.uucp (25853-pastor)
Subject: Can you hide or lock your original xterm???
Organization: Bellcore, Livingston, NJ
Date: Tue, 21 Jul 92 15:27:26 GMT
Summary: Can you hide or lock your original xterm???

I am writting a Motif program to be run on a touch screen terminal.
Unfortunately, even though I can keep the user from exiting the program,
I cannot keep him or her from grabbing the original xterm and selecting
close (which logs the terminal completely off).  Is there a way to hide this
icon or lock it without stopping the application?

Thank you in advance ;-)

Robert Buccigrossi
Newsgroups: comp.windows.x
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Subject: Re: Fast drawing
Organization: McGill Research Centre for Intelligent Machines
Date: Sat, 25 Jul 92 10:58:28 GMT

In article <BAGCHI.92Jul17222424@dip.eecs.um>, bagchi@eecs.umich.edu writes:

> I need to fill in each pixels in my Window with an arbitrary color.
> I've been doing several thousand XDrawPoint requests, which is
> predictably slow.

> Is there a faster way to do this?

Yes.  This is what the XImage structure and its associated functions
are for.  Unfortunately the image support is somewhat broken, mostly in
the sense of there being no documented way to do some things, so
writing code to work with images all too often amounts to UTSLing,
where TS is either for Xlib or for other programs which use images.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: rick@proust.CERCA.UMontreal.CA (Richard Lefebvre)
Newsgroups: comp.windows.x
Subject: ncd terminals security problem ?
Date: 31 Jul 92 18:48:56 GMT
Organization: Cerca, Universite de Montreal

I have a problem with the NCD terminals, a hacker find out how to start
"telnet client"'s on our NCD terminals.  I don't think it has anything to
do with "xhost" since it is the only thing he can do.  Any body knows
how he does that of where I can post this problem, Thanx.

rick

-- 
==============================================================================
=                                                                            =
= Richard Lefebvre                                                     CERCA =
= Email: Rick@CERCA.UMontreal.CA      CEntre de Recherche en Calcul Applique =
= tel: (514)369-5224                          5160 Boul. Decarie, bureau 400 =
= fax: (514)369-3880                                        Montreal H3X 2H9 =
=                                                                            =
==============================================================================
From: draz@tochna.technion.ac.il (David Raz)
Newsgroups: comp.windows.x
Subject: Re: X11R5 and Motif Compatibility
Date: 29 Jul 92 09:05:09 GMT
Organization: Technion, Israel Inst. of Technology

In article <1400@seqp4.sequoia.com>, mikeq@seqp4.sequoia.com (Michael Quicquaro) writes:
|> 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.

RTFF (Read The F-word FAQ)

As Motif 1.1 has it's own Xt library it is not "compatible  
programming-wise", as you must use it's Xt functions. However,
I use X11R5 other libraries with it and it compiles fine.
(I sometimes need the X11 R4 library too, but only on the DECs 
where my Xm library is built that way.)

However, as my vague memory tells me, there is a Motif version
that supports X11R5. Just read the FAQ.

About the second question , I don't see why not. The window manager
does'nt know how the program was built.....
-- 
David Raz 				internet:  draz@ee.technion.ac.il
Assistant and system programmer 	bitnet  :  draz@techunix 
Software lab,EE faculty,Technion     phone:  work: 04-294643  home: 08-492628  
Haifa,32000   Israel	   home mail: 7 Shkolnik St. , Rehovot 76209 ,Israel
From: wls@astro.umd.edu (William L. Sebok)
Newsgroups: comp.windows.x
Subject: cursor in spring-loaded menu
Date: 22 Jul 92 16:42:17 GMT
Organization: U. of Maryland @ College Park, Astronomy

I have a menu widget which I have written intended to be used as a
spring-loaded popup when a button is pressed (by means of an XtMenuPopup() in
the translations).  While the menu is popped up I would like the cursor to have
some special shape.  It seems to be hard to do this.  Setting the default
cursor on the widget does not do anything. Nor does setting the cursor with
XDefineCursor() in the popup callback. The cursor always seems to be that of
the widget that issued the grab.  The XtMenuPopup action routine puts out a
passive pointer grab (XGrabButton).  XGrabButton specifies a cursor that is
used during the grab.  The code for this in the Intrinsics is hard for me to
follow but it is not obvious to me how to have cursor have any other value but
None.  Perhaps I have to write my own action routine rather than XtMenuPopup()?
Is there something I am missing? some way to get the grab to be issued with a
particular cursor? I have solved it with a call to XChangeActivePointerGrab()
in the popup callback which seems to be what the doctor ordered except that it
wants a new event mask to be specified. I would want to use the same event mask
as used in the original XGrabButton call but I have no easy way of knowing
that.  I have used a mask for all possible pointer events.
-- 
Bill Sebok      Univ. of Maryland, Astronomy    Internet: wls@astro.umd.edu
From: sss@nic.cerf.net (Marlene M. Eckert)
Newsgroups: comp.windows.x
Subject: Multi-User Application Software Using Xt?
Date: 27 Jul 92 17:47:14 GMT
Organization: 3S


Hello,

Mr. Oliver Jones does an excellent job discussing the
implementation of "Multi-User Application Software Using
Xt" in the Summer 1992 issue of The X Resource.

Mr. Jones mentions that the client must arrange for
authorization to connect to multiple servers.  We can
handle the authorization problems, but we have run
into another gotcha when opening the display.

When the client attempts to open a server which
is running XDM, the XtOpenDisplay blocks until someone
logs into the server.  This is not acceptable.

How can we either:

 -- Query the server to determine that XDM
    is running and no one is logged in?  (Or
    even better that a XtOpenDisplay will block.) 

 -- Have XtOpenDisplay timeout?

Thanks in advance.

---------------------------------------------------------
Michael Reznick (We use a shared account.)
3S
sss@cerf.net
---------------------------------------------------------