HDTenEightyP/NetNews huggingface dataset:
From: d8ahlcr@dtek.chalmers.se (Christopher Ahlberg)
Newsgroups: comp.windows.x
Subject: how to load a pixmap into a region????
Date: 12 Aug 92 15:31:11 GMT
Organization: Chalmers University of Technology, Gothenburg Sweden

I'm trying to load a pixmap - bitmap into a region. If anyone could help
me with how how to do it, I would be most grateful.

	/Christopher
--
Christopher Ahlberg		       Chalmers University of Technology
email: d8ahlcr@dtek.chalmers.se	       School of Computer Science & Engineering
				       G|teborg, Sweden
From: taylor@foraker.NoSubdomain.NoDomain (Eric Taylor)
Newsgroups: comp.windows.x
Subject: Re: How to draw a fat point by XDrawPoint(...)
Date: 12 Aug 92 22:18:17 GMT

In article <NIEH.92Aug7085203@surya.cadence.com>, nieh@surya.cadence.com (Ko-Haw Nieh) writes:
|> 
|> How do I use XDrawPoint to draw a fat point? I tried various settings on
|> GC, but it always drew a point on a pixel.

XFillRectangle.

A point is merely that.   You must use other routines to have a point
bigger than a pixel.
Newsgroups: comp.windows.x
From: lwv26@cas.org (Larry W. Virden)
Subject: Re: X11R5-based vt100 emulator needed
Followup-To: comp.windows.x
Reply-To: lvirden@cas.org (Larry W. Virden)
Organization: Nedriv Software and Shoe Shiners, Uninc.
Date: Thu, 13 Aug 1992 17:57:24 GMT

In article <4442@news.duke.edu> ndd@sunbar.mc.duke.edu (Ned Danieley) writes:
:in order to use a local database, we have to be able to emulate
:a vt100, complete with function keys. we'd like to use something
:like xvttool, or tooltool, but xvttool is written for xview and
:tooltool is written for sunview, and we don't run openwindows.
:I have tried running a binary version of xvttool that was compiled
:elsewhere, but it's not quite right under pure X11R5.
:
:does anyone know of an R5 vt100 emulator?
:
:(an alternative solution would be to remap the keyboard, but we'd
:only want to do that for the one window that's using the database.
:it seems that xmodmap remaps the server, so that's not suitable.)
:

One doesn't normally use xmodmap to change the function keys for an
xterm, they use an xterm resource.  For instance, if you were going to
access an oracle application, you might have something like:

xterm -name vt100 -e my.sqlforms.30.program

and then, in the resources, have something like this:


vt100*VT100.Translations: #override \
    <Key>R5:            keymap(None) \n\
    <Key>KP_Enter:      string(0x1B) string("OM") \n\
    <Key>R1:            string(0x1B) string("OP") \n\
    <Key>R2:            string(0x1B) string("OQ") \n\
    <Key>R3:            string(0x1B) string("OR") \n\
    <Key>Num_Lock:      string(0x1B) string("OS") \n\
    <Key>KP_Add:        string(0x1B) string("Ol") \n\
    <Key>KP_Subtract:   string(0x1B) string("Om") \n\
    <Key>KP_Decimal:    string(0x1B) string("On") \n\
    <Key>Insert:        string(0x1B) string("Op") \n\
    <Key>R13:           string(0x1B) string("Oq") \n\
    <Key>Down:          string(0x1B) string("Or") \n\
    <Key>R15:           string(0x1B) string("Os") \n\
    <Key>Left:          string(0x1B) string("Ot") \n\
    <Key>R11:           string(0x1B) string("Ou") \n\
    <Key>Right:         string(0x1B) string("Ov") \n\
    <Key>R7:            string(0x1B) string("Ow") \n\
    <Key>Up:            string(0x1B) string("Ox") \n\
    <Key>R9:            string(0x1B) string("Oy") \n\
    <Key>F9:            string(0x1B) string("OA") \n\
    <Key>F10:           string(0x1B) string("OB") \n\
    <Key>F28:           string(0x7F) \n\
    <Key>SunXK_F37:        string(0x1B) string("OC") \n\
    <Key>SunXK_F36:        string(0x1B) string("OD")

Now, when when your sqlforms window starts up, you get vt100 function keys,
but your other xterm windows remain unchanged.
-- 
Larry W. Virden                 UUCP: osu-cis!chemabs!lvirden
Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
America Online: lvirden@aol.com
From: glaubman@galois.msri.org (David Glaubman)
Newsgroups: comp.windows.x
Subject: R5 xdm, X server, xnews server
Date: 21 Aug 92 18:59:56
Organization: Mathematical Sciences Research Institute, Berkeley, CA
Distribution: world
NNTP-Posting-Host: 128.3.188.57


  Here is what we have:
	A bunch of Sparc stations running SunOS 4.1, and X11R5 under xdm.

  Here is what I want:
        I'd like to run X11R5 xdm on each station, with the default
        server being the vanilla R5 X. The user can specify (either
        by a file in her directory, or by hitting, say, F1 instead
        of RET at login) that she wants to run OW3. THe X server
        would be terminated and the xnews server started for that
        session. On logout, xnews would terminate and the X server
        would be restarted.

  How I'd like to do it:
	In Login and/or Setup, change the Xserver config file to use xnews.
	Tell xdm to kill server.
	Tell xdm to reread config file and start new server (HUP signal?)
	At Logout, kill the xnews server (if it's running) and tell
         xdm to restart X server, if necessary.
	
  Questions:
	Will this work?
	Is there a better way?
        Is this inadvisable?
	I have heard of a security leak running xnews from R5 xdm as root:
		is this a problem?
	How does the OW3 xnews server respond to signals?
	

Please respond by email to glaubman@msri.org. Thanx and cheers.

David Glaubman		glaubman@msri.org
From: belanger@vedge.UUCP (Robert Belanger)
Newsgroups: comp.windows.x.motif
Subject: Re: ^ Cursor Removal in Text Widget
Date: 12 Aug 92 17:37:47 GMT
Distribution: usa
Organization: Visual Edge Software, St. Laurent, Quebec

sean@mitchell.eos.scg.hac.com (Sean Cohan) writes:
: Hello.
: 
: I'm using several text widgets within a form.  I've set the keyboardFocusPolicy
: to "pointer" so that when I move the pointer into a text widget it has 
: automatic focus.  If after I edit one of these text widgets and then leave that
: widget, the up arrow cursor ^ is left behind.  If I move into a new text 
: widget I have the flashing text cursor displayed in the new widget and the ^ 
: cursor in the old text widget I just modified.  This looks confusing to the 
: user.  How can I erase the ^ cursor from the old text widget.  
: 
: Thanks.

	Use the losingFocusCallback to change the XmNcursorPositionVisible to
	False and the focusCallback to change the XmNcursorPositionVisible to
	True. Voila!

	-----------------------------------------------------------------
	| Robert Belanger		|				|
	-----------------------------------------------------------------
	| Visual Edge Software		| 	===============		|
	| 3870 Cote Vertu, St. Laurent	|	 =   	    =====	|
	| Quebec, Canada H4R 1V4	|	  =========== 		|
	|                             	|	   =      =====		|
	|                             	|	    =======     	|
	| Ph: [514] 332-6430, Ext. 218  |            =  =====		|
	| Fax:[514] 332-5914		|             ===		|
	| Email: belanger@vedge.com	|              =		|
	-----------------------------------------------------------------
	| We'll catch those mice, ... like mice or my name is not       |
	| Winnie the Pooh which it is, so there you are. (Pooh Bear)	|
	-----------------------------------------------------------------
From: dfegan@lescsse.jsc.nasa.gov (Doug Egan)
Newsgroups: comp.windows.x.motif
Subject: X/Motif Development on MVS/ESA??
Summary: Can X/Motif development be done without TCPIP on MVS??
Keywords: MVS TCPIP
Date: 19 Aug 1992 19:18:23 GMT
Organization: LESC


	We have been attempting to build a Motif application,
   using TCPIP on MVS/ESA... (NOT easy!) <Wiping sweat from brow>
   We have succeeded to complete a minor client with few
   capabilities... 
  
	I would like to know if there are any OTHER products
   available, that will run with/on TCPIP in a MVS/ESA environment.


	Please Followup or reply to: egan@blkbox.com

Thanx,
      Doug
--
=========================================================================
 Doug Egan                               "...Engineers, they LOVE to
 Lockheed Engineering and Sciences Co.    change things!" 
 Houston, TX                                 Dr. Leonard "Bones" McCoy  
Newsgroups: comp.windows.x.motif
From: dpotlur@hubcap.clemson.edu (Potluri Dora)
Subject: Help! Deleting items from the list
Summary: help needed
Keywords: motif
Organization: Clemson University
Date: Thu, 13 Aug 1992 18:22:45 GMT

	

hi netters,

			I am  having problem with 
deleting the list items from the list. Everything works if I am 
deleting one element. If I want to delete 2 or more the program dies at
the point indicated.
		    I get the selected items list and then take each one
and find its position in the list. After finding the position in thelist
I delete the item from teh list. and using the positon I delete the
corresponding item from the linked list. Every thing works for one
deletion and then it dies.
		I would appreiate if you can mail me or post why
this is happens. 

	Thanxs  a lot.

-------------------------code-------------------------
		
	Widget my_list_widget;
	XmString   *string_table;
	int  item_count;
	int items_selected;
	char *string;
	int i;
	QUERY_PTR  query_deleted;
	int position;
	extern HEADER list_of_queries;
	int return_value;
	
		XtVaGetValues(  my_list_widget, 
					    XmNselectedItemCount, &items_selected,
					    XmNselectedItems, &string_table,
					    XmNitemCount, &item_count,
					    NULL );
		if ( 0 == item_count )
		{
			fprintf(stderr, "The list is empty, no items to view \n");
			return;
		}
		
		if ( 0 == items_selected )
		{
			fprintf(stderr, "No item is selected \n");
			return;
		}
	
		for ( i=0; i<items_selected; i++)
		{  
			XmStringGetLtoR( string_table[i], XmSTRING_DEFAULT_CHARSET, &string );
			fprintf(stderr, "Item Selected in Hit browser %s \n", string );
			XtFree( string );

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dies after this^^^^^^^
		
			position = XmListItemPos( my_list_widget, string_table[i] );
			
			fprintf(stderr, "Position%d\n", position );
			if ( 0 == position ) 
			{
				fprintf( stderr, "Error in hit browser \n");
				return;
			}
		
			XmListDeletePos( my_list_widget, position );
	
			query_deleted = delete_list_item( list_of_queries, position, &return_value );
			print_list( list_of_queries );
	
			if ( ( NULL == query_deleted)  || (  0 != return_value ) )
			{
				fprintf(stderr, "Error in deletion of the element \n");
				return;
			}
	
			if ( 0 != return_query_pool( query_deleted ) ) 
			{
				fprintf( stderr, "Invalid element returned to pool \n");
				return;
			}
		}  

-- 
Potluri Dora
Dept Of Computer Science
Clemson University
Clemson, sc 29631
From: jem@tinton.ccur.com (Jem Treadwell)
Newsgroups: comp.windows.x.motif
Subject: Re: Right justifying text widget
Date: 13 Aug 92 21:42:56 GMT
Distribution: inet
Organization: The Internet

Lincoln,

> 
> I have a text widget in which I would like to place a filename taken from
> a file selection box widget.  I do not want to use a whole lot of real
> estate to display a long path and filename.  I have played games with splittin
  g
> the path and filename and trying to keep track of both but that gets messy.

> The ideal solution seems to be to put the full name in a text widget and
> have the text's resource set to right justification so I see the filename
> and have the path hidden, but accessable with a little cursor work.
> However I can't seem to find the resource for justification, if there is
> one, in my X11R4 Reference.  Is there a right justification resource (I would
> think that there should be for motif to be internationalized)? Is there
> a better way to do this?

This forces the end of the string to be visible - not exactly right
justification, but...

   XmTextSetString(w,string);
   n = 0;
   XtSetArg(args[n], XmNcursorPosition, (XmTextPosition)strlen(string)); n++;
   XtSetArg(args[n], XmNcursorPositionVisible, True); n++;
   XtSetValues(w,args,n);

Jem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jem Treadwell - jem@tinton.ccur.com

Mailstop 314B,  Concurrent Computer Corporation,
106 Apple St,  Tinton Falls, N.J.  07724

Phone: (908) 758 7271
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: peach@sw.stratus.com (Bill Peach)
Newsgroups: comp.windows.x.motif
Subject: Looking for src for XtTranslateKey
Keywords: XtTranslateKey, KeySyms, emulator
Date: 12 Aug 92 20:03:05 GMT
Organization: Stratus Computer, Inc.


Hi. I am working on an X based terminal emulator for workstations and
Xterminals.  It emulates a Stratus specific terminal called a V102.
It needs to run on Sun Sparcs and NCD Xterms for starters.  They both
have very different Keyboard layouts.  There are several discrepancies
between the vendor  supplied KeySym mappings and what I need the keys to do.


I plan to use an alternate key translation routine for these discrepancies.
I've been trying to find the source for XtTranslateKey, since this is very
close to what I want to be doing.  Is this source available anywhere?

	Thanks in advance for your help.

			Bill
Newsgroups: comp.windows.x.motif
From: efw5565@zeus.tamu.edu (Evelyn - gorgeous red-headed biker babe...)
Subject: problem with GL widget
News-Software: VAX/VMS VNEWS 1.41    
Keywords: motif GL
Organization: Texas A&M University, Academic Computing Services
Date: Mon, 17 Aug 1992 15:13:00 GMT

I am using Doug Young's C++/Motif programming model, and SGI's 
GL widget.  First of all, is there anyone else out there doing
the same thing?  My application is sort of image processing, 
with multiple windows sharing a common color map.  The problem 
I am experiencing is this:

The windows come up just fine, the GL widgets appear to work 
normally. I have a pulldown menu, one option brings up a 
FileSelectionDialog widget so that the user can choose an 
image filename.  If the user does *nothing* else besides 
scrolling down the file list, clicking on a file and then 
clicking on OK, the file is read just fine, displayed in the
window, everything is okay.  Until the user moves the cursor
over any portion of any application window.  Then the program 
crashes with "Error: Cannot perform malloc".  

If the user fiddles with the dialog widget first (using the
filter, especially), then the program does not crash.  

Any clues?  Can anyone explain what happens when the cursor 
enters an X window?  Something like the old INPUTCHANGE?  Or
could the problem be with the dialog box?  help!

Thanks,

evelyn
From: handeli@phoenix.ocf.llnl.gov (David I Handeli)
Newsgroups: comp.windows.x.motif
Subject: public domain widgets
Keywords: public domain, widgets
Date: 19 Aug 92 18:06:42 GMT
Organization: Lawrence Livermore National Laboratory

I am a new Motif programmer. Legend has it that there are
public domain widgets out there. I have heard that the table
widget is great! Can anyone guide me to these widgets and their
sources? Thanks.
From: ksivasam@ha14.eng.ua.edu (Kalidoss Sivasamy)
Newsgroups: comp.windows.x.motif
Subject: test
Date: 22 Aug 1992 14:57:48 -0500
Organization: UTexas Mail-to-News Gateway
Distribution: inet
NNTP-Posting-Host: cs.utexas.edu

Please forgive me! this is a test message.
Newsgroups: comp.windows.x.motif
From: chris@ods.com (Chris Atkins)
Subject: How to add displays to app cntext
Organization: Optical Data Systems, Inc.
X-Newsreader: Tin 1.1 PL5
Date: Mon, 17 Aug 1992 18:27:52 GMT

An alternative solution to having multiple application contexts each with one 
display is to have one application context and add multiple displays to it. 
Using this approach, Xt does the work of detecting input from one of multiple 
displays for you via XtAppMainLoop.

To add a display to an application context, you can use XtOpenDisplay which 
opens the display, builds the resource database, and adds the display to the
application context.

Chris Atkins
chris@ods.com
Newsgroups: comp.windows.x.motif
From: girish@bnr.ca (Wen Liu P205)
Subject: Re: WordWrap possible?
Keywords: WordWrap, TextWidget etc.
Organization: Bell-Northern Research, BNR-RTP 
Distribution: comp
Date: Wed, 19 Aug 1992 13:13:22 GMT

In article <hess.714222648@swt1>, hess@swt1.informatik.uni-hamburg.de (Hauke Hess) writes:
|> Hi,
|> 
|> I would like to use the Scrollable TextEditor Widget as a simple text editor
|> with word wrap. Unfortunately there seems to be no way to accomplish this
|> by resource since "XmNscrollHorizontal, False" results in a rude linebreaking
|> at any point, not only at blanks or dashes.
|> 
|> Is there a ShareWare Source anywhere that implements this feature?
|> 
|> Thanks for your help
|> 
|> Hauke
|> 

Try using the following:

  XtSetArg(args[n],XmNeditMode,XmMULTI_LINE_EDIT); n++;
  XtSetArg(args[n],XmNwordWrap,True); n++;
Newsgroups: comp.windows.x.motif
From: marbru@auto-trol.com (Martin Brunecky)
Subject: Re: Q: C++ and callback problems.
Organization: Auto-trol Technology Corporation
Date: Fri, 21 Aug 1992 17:36:56 GMT

In article <1992Aug21.134305.2356@eua.ericsson.se> tvtjet@eua.ericsson.se (Jorgen Eriksson) writes:
>I have problems with c++ and callbacks. My intention was to create a window
>class which contains one or more callback functions, implemented as class
>methods. This doesn't work properly. 

> // If ButCB() not is declared static, all parameters is lost (widget id,
> // pointers to client and call data).
> //
> // Remove 'static' and the program will result in a bus error.
>                        */
>void
>Win::ButCB(Widget w,caddr_t client_data,caddr_t call_data)
>{
>        XtAddCallback(push_b1, XmNactivateCallback,(XtCallbackProc)&Win::ButCB,
>            (caddr_t)&push_b2);

 You just can't do that. When you remove static, you are talking about C++
 member function, where the first actual argumen=t is an implied "this".
 Member function pointers are quite different that C function pointers, in
 implementations I have seen a member function pointer points to a structure
 which contains object pointer, function pointer and more. Xt does not know
 how to call member functions.
 Using XtAddCallback you can ONLY add "C" functions. The C++ static member
 functions happen to work, because they resolve into a C function pointer.

 You must write "normal" function wrappers around our C++ memebr functions,
 either as "C" functions or static member functions. You have to figure out
 which object's method you want to call - you need "this".




-- 
=*= Opinions presented here are solely of my own, not those of my employer =*=
Martin Brunecky           marbru@auto-trol.com                  (303) 252-2499                       
Xref: sparky comp.windows.x.motif:5571 comp.sys.sgi:12304
From: scott@prepress.com (Scott Myhre)
Newsgroups: comp.windows.x.motif,comp.sys.sgi
Subject: Trouble installing virtual colormap
Date: 12 Aug 92 16:32:24 GMT
Organization: Pre-Press Technologies, Carlsbad Ca.


SUBJECT:

    Just when I thought I had colormaps and visuals under control, I
found yet another confusing problem.  I'm having trouble getting our
application's virtual colormap properly installed.

SYSTEM:

    Silicon Graphics Personal Iris 4D/25
        Graphics board: GR1.2 Bit-plane, Z-buffer, Turbo
	Execution Only Environment 1, 4.0.1, Version 690511600
	4Dwm Window Manager and X11, Versions 1006000406
	default visual 8-bit PseudoColor

BACKGROUND:

    The Motif-based application uses multiple colormaps with the
default 8-bit PseudoColor visual.  The top-level widget along with
most sub-widgets use the default colormap, while a drawing area
sub-widget creates its own virtual colormap.

    The virtual colormap (6 levels per color, 216 private read/write
color cells) is created and associated with the drawing area.  When
the drawing area gets its initial expose event,
XtSetWMColormapWindows() is called to update the top-level widget's
WM_COLORMAP_WINDOWS property.  Presumably, this should be enough to
indicate to the window manager that the drawing area needs a custom
colormap installed at the appropriate times.

PROBLEM:

    1. The window manager installs the drawing area's colormap once.
(I assume as a result of the call to XtSetWMColormapWindows() in the
initial expose event.)  But after the drawing area's colormap is later
swapped out (made virtual again) it never gets re-installed.
Although, subsequent calls to XtSetWMColormapWindows() have the same
once-only effect.  Also interesting was that XSetWMColormapWindows()
had no effect at all when trying to install a virtual 8-bit
PseudoColor colormap, but seemed to work for installing the colormap
for a 24-bit TrueColor visual.

    2. The once-only installation of the drawing area's virtual
colormap is incomplete, as the first 64 color cells seem to be
immutable.  All the cells of the drawing area's colormap get
installed, except the first 64 which remain unchanged.

QUESTIONS:

    Are these X11 bugs, SGI bugs, my application's bugs?

    Are there fixes or work-arounds at the Motif or Intrinsics level?

Email responses are welcomed.  Thanks in advance!

--
============================================================
Scott Myhre                    Voice:   (619) 931-2695
Pre-Press Technologies.        Email:    scott@prepress.com
2443 Impala dr.
Carlsbad, Ca 92008.
Newsgroups: comp.windows.x.motif
From: mikey@sgi.com (Mike Yang)
Subject: Re: problem with GL widget
Keywords: motif GL
Organization: Silicon Graphics, Inc.
Date: Mon, 17 Aug 1992 16:14:52 GMT

In article <17AUG199210135904@zeus.tamu.edu> efw5565@zeus.tamu.edu (Evelyn - gorgeous red-headed biker babe...) writes:
>Then the program 
>crashes with "Error: Cannot perform malloc".  

This almost always indicates memory corruption (overrun, double free,
etc.).  Use HeapView from SGI's WorkShop tools, or try a debugging
malloc library such as Conor P.  Cahill's which is available as:

	sgi.com:~ftp/sgi/src/malloc-debug.tar.Z

-----------------------------------------------------------------------
                 Mike Yang        Silicon Graphics, Inc.
               mikey@sgi.com           415/390-1786
From: hal@kaos.declab.usu.edu (000200 Lynch)
Newsgroups: comp.windows.x.motif
Subject: How do I keep xeyes on top?
Date: 19 Aug 92 14:45:06 GMT
Article-I.D.: cc.1992Aug19.084507.58250
Reply-To: hal@kaos.declab.usu.edu (000200 Lynch)
Distribution: world
Organization: Utah State University

Like the subject says, How do I keep xeyes from getting buried on my screen?
I am using autoraise I think.   At any rate the window with the arrow in it
floats to the top automagically.  As a secondary issue how do I get rid of the
box around the eyeballs?

Thanx
--
Hal Lynch
	Internet: Hal@cache.declab.usu.edu
	DECnet:   USU::HAL
Newsgroups: comp.windows.x.motif