HDTenEightyP/NetNews huggingface dataset:
From: snail@lsl.co.uk
Newsgroups: comp.windows.x
Subject: Re: How to let the pointer disappeared?
Date: 4 Jan 93 16:50:28 GMT
Organization: Laser-Scan Ltd., Cambridge

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.
Newsgroups: comp.windows.x
From: drand@spinner.osf.org (Douglas S. Rand)
Subject: Re: Widget Grabs
Organization: Open Software Foundation
	<1992Dec3.094912.24676@sol.ctr.columbia.edu>
	<1992Dec12.121026.5907@fct.unl.pt> <1993Jan11.162326.27272@meadow.uucp>
Date: 12 Jan 93 17:46:14

In article <1993Jan11.162326.27272@meadow.uucp> alo@meadow.uucp (Andrew Lo) writes:

   Hi! I'm a widget programmer.  I have created a widget in which under certain
   circumstances I need the widget to grab all button presses for the entire
   screen.  Thus far, I have achieved this by using XtGrabPointer followed by
   an XAllowEvents.  I have an event handler for the widget that intercepts all
   the button press events at this time.  This works.  
   However, when I press a cascade button it takes the grab away from me without 
   me calling XtUngrabPointer.  How do I prevent this from happening.?  
   Please email me directly.

I don't believe you can prevent this.  Grabs transfer if something else 
requests one.  I do suggest that you consider why you are imposing
a grab.  Grabs should be used very sparingly,  if at all,  in 
normal widgets.  The usual exceptions are modal behaviors such
as popup or pulldown menus.  

--
Douglas S. Rand <drand@osf.org>		OSF/Motif Dev.
Snail:         11 Cambridge Center,  Cambridge,  MA  02142
Disclaimer:    I don't know if OSF agrees with me... let's vote on it.
Amateur Radio: KC1KJ
Newsgroups: comp.windows.x
From: karenb@westford.ccur.com (Karen Bircsak)
Subject: Font server port conflict
Reply-To: karenb@westford.ccur.com (Karen Bircsak)
Organization: Concurrent Computer Corp. Westford MA.
Date: Mon, 4 Jan 1993 21:37:14 GMT


There is a possible conflict between the default port number for
the font server (7000) and other services.  According to the
"Assigned Numbers RFC" from the Internet Assigned Numbers Authority,
7000 conflicts with the ports listed as being registered to the Andrew File
System, which is part of OSF/DCE.  It seems to me that this might cause  
conflict on systems using both DCE and a font server.

I realize that the font server port is configurable, but it seems to me that
the default should avoid confrontation.  Is this a problem, or am I making
a mountain out of a molehill?

While we're at it, shouldn't the X server port (6000) also be registered
here?

Please reply via email as I don't usually read this newsgroup.

Thanks,
Karen

-------------------------------------------------------------------------
Karen Bircsak
Concurrent Computer Corporation

karenb@westford.ccur.com
-------------------------------------------------------------------------

Newsgroups: comp.windows.x,comp.unix.sysv386,comp.unix.pc-clone.32bit
From: mark@mark-one.inet-uk.co.uk (Mark Powell)
Subject: Orchid Prodesigner IIHCs break-up at 80MHz clock
Organization: Mark-One Public Access UNIX (+44 942 273926)
Date: Thu, 7 Jan 1993 01:01:12 GMT

I've an Orchid Prodesigner IIHCs SVGA video card and am using Xmach.
The pen-ultimate clock speed on the card of 65MHz gives a good but
not optimal refresh rate. However, the top speed of 80MHz causes
picture break-up (picture is viewable, but vertical lines are jagged.)
This does not happen under DOS. I've seen mention of others with 
high clock speed cards having the same problem and having to resort to 
running some DOS utility under merge to adjust something in the card
which causes in to stop. Although my monitor only has a bandwidth of
80MHz, that's not the problem as I've been reliably informed by someone
with a 120MHz bandwidth monitor that they get the same effect using the
80MHz clock onboard the card. It would seem to be something to do
with VRAM accesses. Anyone any ideas how this can be fixed? Will
XFree fix it?
Thanks in advance.

-- 
Mark Powell

Mark-One Public Access UNIX, Manchester, UK 	BBS:	+44 942 273926
UniBoard, *the* UNIX BBS, UK distribution site	Voice:	+44 942 714317
Newsgroups: comp.windows.x
From: kevin@sherman.pas.rochester.edu (kevin mcfadden)
Subject: Location/Existence of X11R5.tar.Z for SunOS 4.1.2
Organization: University of Rochester
Distribution: usa
Date: Fri, 8 Jan 93 15:36:30 GMT

I have found many locations (from the faq and archie) of the X11R5
directories.  I have also found a complete tar.Z file for AIX.
Is there an ftp site that has the .tar.Z file for SunOS/Sparc?

Email replies please.

Kevin

kevin@sherman.pas.rochester.edu

Newsgroups: comp.windows.x
From: vlad@dkbfpny.com (Vladimir Stavitsky)
Subject: xview scrolling text problem
Organization: DKB Financial Products, Inc.
Date: Tue, 12 Jan 93 19:13:18 GMT

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: kevinc@hpcc01.corp.hp.com (Kevin Collins)
Date: Thu, 7 Jan 1993 21:09:58 GMT
Subject: Porting Experience ?
Organization: the HP Corporate notes server
Newsgroups: comp.windows.x


We are trying to decide what strategy to use in porting our product 
to new platforms.  First let me describe our product :

- Developed on HP-UX.
- Two years old.
- Written in C++ with Motif.
- Uses HP's Allbase RDBMS.
- Uses the Tool Integration Platform architecture. (ie. Socket-based message
  passing.)
- Approximately 150,000 lines of code.
  Note : since this was our first large project with OO methods and C++
		 we think we can do things differently now.

We anticipate the need to port to Sun and IBM platforms and use other
database engines as well.

I have the following questions :

 1) Have you used a contractor who specialized in porting?  If so,
	what was your experience?

 2) How difficult is it to port to Sun, IBM from HP-UX?  
       - For a group only experienced with HP-UX.
       - For a group experienced with Sun and IBM.

 3) Is there a source/guideline document anywhere that could be used to
	help us through a porting effort?

 4) What is a rule of thumb in estimating a porting effort?  For example,
	a fraction of the original development time, an estimate based on
	how many lines of code, etc. 

 5) How critical is it that the person(s) doing the porting are actually
	familiar with the code?  If they are not familiar how much longer
	will it take them?

Thanks,

Kevin 
Xref: sparky comp.windows.x:20897 comp.windows.x.intrinsics:729 comp.windows.x.motif:8422
From: jarnold@spot.wrc.xerox.com (jeff arnold esc1-318)
Newsgroups: comp.windows.x,comp.windows.x.intrinsics,comp.windows.x.motif
Subject: Specifying text in different languages in a resource file
Date: 7 Jan 93 16:00:06 GMT
Organization: Xerox


Hi,
  I'm reposting the following question.  If you know the answer, please
reply to henry_wong.lax1b@xerox.com

  Is it possible to specify a character string (e.g. XmNlabelString for
a push button) in a resource file using MOTIF 1.1.X in different languages 
(i.e. French, German, ...)? If not, what's a good way of doing it?
NLS catalog, maybe? Does MOTIF 1.2 support it?

Thanks,

Henry 

P.S. I'm using MOTIF 1.1.X on an RS6000 running 3.2
From: mstone@netcom.com (Hong Chen)
Newsgroups: comp.windows.x
Subject: Help On Compiling X11R5 On SUN Solaris 2.1
Date: 5 Jan 93 02:10:26 GMT
Distribution: usa
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

We have some new Sparc Classic workstations, running Solaris 2.1, set up
a few days ago.  But we have difficulties compiling X11 release 5.
The same source code of X11R5 that compile under SUN 4.1.2 do not
compile under Solaris 2.1.

We wonder whether we need any new release or patch files from MIT,
or we may need to set up our system in some way to compile X11.
We would appreciate any help.

Thanks.

	Please respond to 

		Choiwah Chow
		chow@lia.com
		IA Corporation
From: mickey_coggins@vnet.ibm.COM ("Michael A. Coggins")
Newsgroups: comp.windows.x
Subject: version of XDM that uses kerberos
Date: 11 Jan 93 21:23:23 GMT
Organization: The Internet
X-Unparsable-Date: Mon, 11 Jan 93 17: 20:34 CET

Has anyone added kerberos authentication to the XDM program?

If so, please drop me a line, or tell me where I can get the
patches.

Thanks,
--
Mickey Coggins  Mickey_Coggins@vnet.ibm.com
                +41-1-436-7274 / +41-1-436-8525 (fax)
                Hohlstrasse 560, CH-8048 Zurich, Switzerland
_______________
"All who have meditated on the art of governing mankind
 have been convinced that the fate of empires depends on
 the education of youth."   - Aristotle
Xref: sparky comp.windows.x:20766 comp.windows.x.intrinsics:713 comp.windows.x.motif:8346
From: taylor@foraker.NoSubdomain.NoDomain (Eric Taylor)
Newsgroups: comp.windows.x,comp.windows.x.intrinsics,comp.windows.x.motif
Subject: Re: X/Xt/Motif Event Interleaving?
Date: 5 Jan 93 18:50:41 GMT
Followup-To: comp.windows.x

When a widget is pressed, all button events
are reported relative to that widget until
the button is let go.

So if the mouse enters another widget,
no event is reported.

What you can do use PassiveGrabs with owner_events == TRUE
or to issue 
XUngrabPointer followed by XGrabPointer with
owner_events == TRUE when the button is pressed.

One drawback is that the EventHandlers of the
target widgets will be called with the
ButtonRelease instead of the source widget.

If the mouse is let go on window outside of the
application, the ButtonRelease will go back to
the originating widget.

There are small annoying problems at every turn
when dealing with Drag And Drop mechanisms in X.

Motif 1.2 has a Drag and Drop library, why not
use it?  From what I understand, it is a vast improvement
over its predecessor.
Newsgroups: comp.windows.x
From: pauley@tai.jkj.sii.co.jp (Martin Pauley)
Subject: Re: Best WM?
Organization: The Internet
Date: Sat, 9 Jan 1993 01:43:14 GMT

I'd vote for gwm!  It's free and, since it is programmable, it can
emulate any feature of any other WM.

.Marty.!
[Lost in Space! (or is it Japan?)]
<pauley@tai.jkj.sii.co.jp>
From: azhao@CS.ARIZONA.EDU (Qiang Alex Zhao)
Newsgroups: comp.windows.x.announce
Subject: Generic Tetris V2.0.0
Date: 11 Jan 93 18:50:16 GMT
Distribution: inet

A new release of my "Generic Tetris" is out. This V2.0.0 is a complete
re-write based on V1.8.1. The layout has changed and people can now play
with "show next" mode and other preferences.

I've submitted the source to "comp.sources.games", and you can find it on:

    HOST: export.lcs.mit.edu
    FILE: /contrib/tetris.2.0.0.tar.Z

The following is some info in case you are not familiar with this program...


	GENERIC TETRIS
	==============	Yet Another Tetris Game on X, V2.0.0


WHY ANOTHER?

    Because this one is simple, easy to build, and portable -- actually
    the blocks are bigger, more comfortable for your eyes. It only uses
    Xlib -- no "toolkit" kind of thing. People have tested it on the
    following platforms:

	DEC 5000		Ultrix 4.2A	X11R4
	Iris 4D			IRIX 4.0.1	Motif
	Sun4, SPARCstation	SunOS 4.1.1	X11R4, X11R5
	Sequent S81		DYNIX 3.2.0	X11R5

...

ANYTHING SPECIAL IN PLAYING?

    Use 'j' to move left; 'l' to move right; 'k' to rotate. Left-handed
    people may want to use 's', 'd', 'f' respectively. Use the space
    bar to drop a block quickly.

    Use CTRL-L key combination to redraw -- in case the program messes
    somthing up.

    As usual, '+' and '-' will speed up or lower down the speed. Note
    that you don't need to press the SHIFT key -- '=' and '_' also
    work. The 'b' key can be used to toggle "beep" and 'n' toggles
    "show next".

    If you press 'p', the game will be paused, and the window will be
    iconified -- just in case your boss suddenly appears at your door.
    ;o) When the tetris window loses its focus, it also goes to
    "paused" mode except it doesn't iconify itself.

    Refer to the man page for detailed command line options.

--
= Qiang Alex Zhao                 ___       .             ______
  Computer Science Dept          /   )     /|   )          __//  )
  University of Arizona         /   /     /_|  / _        //    /_  _. ._
  azhao@cs.arizona.edu         (__)(_o   /  (_(_(-'_)(   ((____/ (_(_(_(_)
From: dwallach@ELMER-FUDD.CS.BERKELEY.EDU (Dan Wallach)
Newsgroups: comp.windows.x.announce
Subject: ANNOUNCEMENT: Parallax user/developer's mailing list
Date: 7 Jan 93 17:02:23 GMT
Distribution: inet
Organization: University of California, Berkeley

We're happy to announce the creation of a new mailing list for users and
developers of Parallax products, such as their XVideo boards.  This
mailing list is unmoderated, and publicly accessible.  Discussion would
be along the same lines as any comp.sys newsgroup, although hopefully
not as high-bandwidth.

We also have a mailing list for discussing MPEG, and various issues
surrounding it, including discussion of the Berkeley MPEG Player.  This
mailing list is moderated, and publicly accessible.

If you'd like to subscribe, we have an automated system for you to use
(Majordomo by Brent Chapman).  Just send a message to:

    Majordomo@roger-rabbit.CS.Berkeley.EDU

With the line:

    subscribe parallax
and/or
    subscribe mpeg-list

Somewhere in the body.  You can also just reply to this posting
with your commands.

This will subscribe the account from which you send the message to
parallax or mpeg-list.

If you wish to subscribe another address instead (such as a local
redistribution list), you can use a command of the form:

	subscribe parallax other-address@your_site.your_net

To find out more about the automated server, send the following command:

	help

If you feel you need to reach a human, send email to

	Owner-Majordomo@roger-rabbit.CS.Berkeley.EDU


We're not directly affiliated with Parallax, or the official MPEG committee,
we just use their stuff.

--
Dan Wallach
Random Staff Person
Plateau MultiMedia Group
dwallach@cs.berkeley.edu
From: sh@EXPO.LCS.MIT.EDU (Susan Hardy)
Newsgroups: comp.windows.x.announce
Subject: last minute X Conference registration
Date: 7 Jan 93 17:35:46 GMT
Distribution: inet


	PLEASE READ THIS MESSAGE IF YOU ARE ATTENDING

7TH ANNUAL TECHNICAL CONFERENCE	ON THE X WINDOW SYSTEM

Anyone who has sent their registration this past week by U.S. Post, email, or
FAX should not expect confirmation until Monday, 1/11/93 or Tuesday, 1/12/93.
We have over 200 people (maybe more) registering this week.  Our fax machine
is working fine, but of course is very busy due to all the last minute
registrations.

If your fax machine won't connect with ours, we suggest you send us your
registration by next-day postal or email (registration@expo.lcs.mit.edu).
The pre-registration deadline is TOMORROW, Jan. 8.  We also have on-site
registration at the hotel beginning Sun., Jan 17 from 3 to 8 pm,
Mon., Jan. 18 from 7:30 am to 5 pm and Tues, Jan. 19 from 7:30 am to 5 pm.
ALL THE TUTORIALS ARE STILL OPEN WITH THE EXCEPTION OF A-VIDEO BEING CANCELLED.
There should be no problem registering on-site if you do not make the
pre-registration deadline, and the fee is the same.

Thank you for your patience.
From: bobmcg@CASTLE.EDINBURGH.AC.UK (Bob McGonigle)
Newsgroups: comp.windows.x.announce
Subject: European X User Group Conference
Date: 6 Jan 93 17:29:25 GMT
Distribution: inet


EUROPEAN X USER GROUP CONFERENCE 
FIRST ANNOUNCEMENT 

16-17 September 1993

Imperial College, London, UK



This is a first announcement and call for papers and input.

The conference will comprise the conference itself, a choice of
optional tutorials, a vendor exhibition and demonstrations, in the
format that has now become an established feature.

The conference themes will include Multimedia and developing and
maintaining real-world windowing applications.

If you have any papers that you wish to submit in this area, or have any
input in the way of tutorials, please contact the programme chair

       Niall Mansfield <Niall@elmail.co.uk>

If you wish to personally speak to Niall about your papers or tutorials,
Niall will be at the X Technical Conference in Boston this January.


If wish to discuss the vendor exhibit, please contact the conference
chair
       Peter Barton <PeterB@boston.demon.co.uk>

If you have any other enquries, or having difficulty in reaching the
above email addresses, please contact

       EXUG Secretariat
       PO Box 458
       Cambridge 
       CB4 4AA
       Great Britain

       Tel: +44 (0) 223 426534
       fax: +44 (0) 223 420251


Newsgroups: comp.windows.x
From: oj@miki.pictel.com (Oliver Jones)
Subject: Re: Why, why, why an Xt error?
Organization: PictureTel Corporation
Date: Wed, 6 Jan 1993 14:28:10 GMT

In article <1993Jan5.223109.17295@qualix.com> dshaker@qualix.com writes:
>I have a user on using a NCR as an xclient and a Sun as an xserver.
>... the clock comes up fine (access control on the Sun is not a problem).
>However, if he then does
>	anotherApp &
>he gets
>	Fatal Xt error: cannot open display.

It's possible that anotherApp is statically bound with an R3 version
of Xlib which ignores the R4-vintage xauth (~/.Xauthority) mechanism.

Try issuing the command 
   xhost +`hostname`
before running anotherApp.
Newsgroups: comp.windows.x
From: josephkwok@hgrd01.enet.DEC.COM ("KWOK Wai Ting, Joseph  08-Jan-1993 1811")
Subject: Public domain ISO10646 fonts
Organization: The Internet
Date: Fri, 8 Jan 1993 10:11:05 GMT

I would like to know are there any public domain ISO10646 fonts available?
If yes, where can I get a copy of it (them)?

Thanks,
Joseph
From: liste@oslo.sgp.slb.com (Matthew Liste)
Newsgroups: comp.windows.x
Subject: Help with xwd!?
Date: 7 Jan 1993 11:34:06 GMT
Organization: Geco-Prakla (Schlumberger), Oslo.
Distribution: world
NNTP-Posting-Host: geos209.oslo.sgp.slb.com

When attempting to do a xwd I get the following error message. Does anyone
know what's wrong? Please reply by Email.

X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  73 (X_GetImage)
  Resource id in failed request:  0x50015e
  Serial number of failed request:  555
  Current serial number in output stream:  555

-Matthew		(liste@oslo.sgp.slb.com)
From: snail@lsl.co.uk
Newsgroups: comp.windows.x
Subject: Re: Sync-scroll of multiple drawing areas.
Date: 4 Jan 93 17:04:41 GMT
Organization: Laser-Scan Ltd., Cambridge

In article <9212301627.AA12915@zen.WES.ARMY.MIL>, brown@zen.wes.army.MIL (Paul Brown) writes:
> Setup: Cray Y-MP, UNICOS 6.0, X11R4, Motif 1.1
> My question is: can I somehow fake the scroll bar movement event within
> each of these drawing areas so that the movement is handled by the callbacks
> that are already registered (just as if I had very rapidly clicked each
> scroll bar area with the mouse)?

You don't say Motif Drawing Areas, but you do indicate Motif, so I'll assume
you mean Motif DAs.

The answer is yes, you can fake them up, but you don't need to fake events,
just include a few calls to the following:-

	XmScrollBarGetValues(...);	 use this to determine where you are
                                         in one window, then with the results
                                         (and possibly some tweaking for your
                                          app) use

	XmScrollBarSetValues(...);	to set the data for the new windows.

I did this to synchronise two lists, so I could grab any list and have all the
lists move. If you do this then you usually need a lock variable to prevent a
never ending loop condition. Not hard to code though...

All the best.
> 
> Thanks for your ideas.

You're welcome.
-- 
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.
Newsgroups: comp.windows.x
From: roland@quadsys.com (Roland Besserer)
Subject: Re: Cheapest X Option ?
Organization: QUAD Systems
X-Newsreader: Tin 1.1 PL3
Distribution: comp
Date: Sun, 10 Jan 1993 07:32:56 GMT

chrisw@castle.ed.ac.uk (C Walton) writes:
: I don't know if this is the right group for this post but:
: 
: Can anyone reccomend to me the cheapest way I can get an X Windows
: setup?  I have been told that Desqview/X on the PC is the one I
: should go for?
: 
: Thanks in advance - Chris (cdw@castle.ed.ac.uk or cdw@dcs.ed.ac.uk)

You should. See my post under 'Running X on a PC'

-- 

Roland Besserer
QUAD Systems
roland@quadsys.com	
Newsgroups: comp.windows.x