HDTenEightyP/NetNews huggingface dataset:
From: J.K.Wight@newcastle.ac.uk (Jim Wight)
Newsgroups: fj.mail-lists.x-window
Subject: Re: athena widgets, problem with toggle.
Date: 25 Jul 92 21:28:55 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Via: uk.ac.newcastle; Sat, 25 Jul 1992 19:35:37 +0100
Date: Sat, 25 Jul 92 19:35:31 BST
Message-Id: <AA22399.9207251835.blagdon@uk.ac.newcastle>

> I have a little problem with an application I'm developing, here goes.
> I have a radio group containing two toggles.  I want to set one of the
> toggles to be the current one, and then switch back to the original 
> position.  I'm using XawToggleSetCurrent(radio_goup,radio_data) and it
> doesn't do anything.  Is this function supposed to be equivalent to
> clicking on the toggle itself or not?

Yes, but I don't understand what you mean by 'and then switch back to the
original position'. Nevertheless, here is a little program that demonstrates
that XawToggleSetCurrent can be made to do something. You can either set the
toggles by clicking on them, or you can click the 'set 2' button to set toggle
2.  The button's callback calls XawToggleSetCurrent.

Jim
---
J.K.Wight@newcastle.ac.uk
Department of Computing Science, The University,         Tel: +44 91 222 8238
Newcastle upon Tyne, NE1 7RU, United Kingdom.            Fax: +44 91 222 8232

#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Xaw/Box.h>
#include <X11/Xaw/Command.h>
#include <X11/Xaw/Toggle.h>

void Set(widget, client_data, call_data)
     Widget widget;
     XtPointer client_data;
     XtPointer call_data;
{
    XawToggleSetCurrent((Widget) client_data, client_data);
}

main (argc, argv)
     int argc;
     char **argv;
{
    XtAppContext app;
    Widget top, box, tog1, tog2, set;

    top = XtVaAppInitialize(&app, "Test", NULL, 0, &argc, argv, NULL, NULL);
    box = XtVaCreateManagedWidget("box", boxWidgetClass, top, NULL);

    tog1 = XtVaCreateManagedWidget("toggle 1", toggleWidgetClass, box, NULL);
    XtVaSetValues(tog1, XtNradioData, (XtPointer) tog1, NULL);

    tog2 = XtVaCreateManagedWidget("toggle 2", toggleWidgetClass, box,
				   XtNradioGroup, tog1,
				   NULL);
    XtVaSetValues(tog2, XtNradioData, (XtPointer) tog2, NULL);

    set = XtVaCreateManagedWidget("set 2", commandWidgetClass, box, NULL);
    XtAddCallback(set, XtNcallback, Set, (XtPointer) tog2);

    XtRealizeWidget(top);
    XtAppMainLoop(app);
}
From: kvcg2847@uxa.cso.uiuc.edu (Kyle V. Camarda)
Newsgroups: fj.mail-lists.x-window
Subject: X11R5 Build Problem (help)
Date: 28 Jul 92 22:16:42 GMT
Distribution: fj
Organization: University of Illinois at Urbana

Date: Tue, 28 Jul 1992 16:38:23 GMT
Message-Id: <Bs3y80.MLq@news.cso.uiuc.edu>
Newsgroups: comp.windows.x

         I am attempting to build X11R5 on a Sun 3/50 running OS3.5
	 and am having difficulty.  I set the sun.cf file to
	 OSmajorversion=3 and OSminorversion=5, and used the 
	 bootstrapcflag "DNOSTDHDRS".  I also set the site.def file
	 to place X11 in a different directory then the default
	 directory.  The sun.cf file states that building under
	 OS3.5 may not work with that bootstrapvalue, but doesn't
	 give an alternative.  Are there other files which need to
	 be edited (as hinted at in the release notes, but not
	 explained), or do I have a different problem? The world.log
	 file I get states
	     Make: Don't know how to make world. Stop.
         Sounds like a fairly basic error to me. Thank you for any
	 suggestions, and please reply only by e-mail, as I do not
	 usually read this newsgroup.
				    Kyle V. Camarda
				    kyle@turing.scs.uiuc.edu
From: josh@spss.com (Joshua Barr)
Newsgroups: fj.mail-lists.x-window
Subject: Multiple Primary Windows
Date: 24 Jul 92 06:09:46 GMT
Distribution: fj
Organization: SPSS Inc.

Date: 23 Jul 92 18:56:13 GMT
Message-Id: <Jul23.185830.43211@spss.com>
Newsgroups: comp.windows.x.motif,comp.windows.x,comp.human-factors

Does anyone know of an application that uses multiple primary windows?
I am taking an interface that is MDI on Microsoft Windows, and making
each document its own primary window on OSF/Motif. My application has 3
classes of document: data, text, and chart. The user can open as many
text and chart documents as desired, plus one data document.

I have several alternatives for groupings of window families, and am
also considering a user-settable option to allow the interface to
raise windows or to change the input focus to a new window to help the
user find the result of an action (something I already do in my MDI).
Are there any non-MDI applications out there that do these sorts of
things?


--
Joshua Barr, Interface Designer
SPSS, Inc. 
444 N. Michigan Avenue
Chicago, IL 60610
(312) 329-3471

josh@spss.com
From: maassen@kreon.informatik.rwth-aachen.de (Andreas Maassen)
Newsgroups: fj.mail-lists.x-window
Subject: WANTED: xtdl sources
Date: 27 Jul 92 12:24:32 GMT
Distribution: fj
Organization: Rechnerbetrieb Informatik  /  RWTH Aachen

Date: 27 Jul 92 08:54:43 GMT
Message-Id: <maassen.712227283@kreon>
Newsgroups: comp.windows.x

There has been an announcement for xtdl (X_To_Do_List) recently,
but I missed the sources. Can anybody please tell me where I
can find the sources?

Andreas
(maassen@parsytec.de)
From: unisql!kk@cs.utexas.edu (Kerry Kimbrough)
Newsgroups: fj.mail-lists.x-window
Subject: Are you destroyed yet?
Date: 27 Jul 92 05:21:35 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Sun, 26 Jul 92 19:32:10 CDT
Message-Id: <9207270032.AA03102@hyundai.unisql>



What's the politically correct way of determining if a widget is in the
process of being destroyed? Testing core.being_destroyed seems to be the
only way, but isn't this really an illicit peek under the rug?
From: palm@nb.rockwell.com (Steve Palm)
Newsgroups: fj.mail-lists.x-window
Subject: Solved:  DEC Windows (fonts) on OW 2.0
Date: 21 Jul 92 13:05:14 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: 20 Jul 92 23:38:05 GMT
Message-Id: <9207202338.AA02616@atlas.nb.rockwell.com>
Newsgroups: comp.windows.x


I was finally able to get VMS based DEC Windows fonts to display
correctly under an Open Windows 2.0 server. Thanks to Jim
(PFLUGRATH@cshl.org) and Ron (fox@foxsun.nscl.msu.edu) for
inspiration and help.

The fix... In  /usr/openwin/lib/fonts/Synonyms.list  I used the following:
/-dec-terminal-medium-r-normal--14-140-75-75-c-80-dec-dectech /Terminal-Normal        _FontDirectorySYN
/-dec-terminal-bold-r-normal--14-140-75-75-c-80-dec-dectech   /Terminal-Bold-Normal   _FontDirectorySYN
/-dec-terminal-medium-r-normal--14-140-75-75-c-80-iso8859-1   /Terminal       _FontDirectorySYN
/-dec-terminal-bold-r-normal--14-140-75-75-c-80-iso8859-1     /Terminal-Bold  _FontDirectorySYN
/-dec-terminal-medium-r-narrow--12-140-75-75-c-80-iso8859-1   /Helvetica-Narrow   _FontDirectorySYN
/-dec-terminal-medium-r-narrow--14-120-75-75-c-80-iso8859-1   /Helvetica-Narrow       _FontDirectorySYN
/-dec-menu-medium-r-normal--10-100-75-75-p-56-iso8859-1       /Helvetica-Narrow       _FontDirectorySYN
/-dec-menu-medium-r-normal--12-120-75-75-p-70-iso8859-1       /Helvetica-Narrow       _FontDirectorySYN
/-dec-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1     /Helvetica-Narrow       _FontDirectorySYN
/-dec-menu-medium-r-normal--16-120-100-100-p-92-iso8859-1     /Helvetica-Narrow       _FontDirectorySYN

Notes:
- I removed the other entries with DEC as foundry ( -dec-*-*-*-*-....)
- The delimiter between entries on a line should be a TAB.
- I had to use Helvetica-Narrow for many of the "normal" font specifications
   or the text would be too spaced out. Narrow ended up being a little
   squished... but was more easily readible.
- Make sure bldfamily is run after making and changes to *.list files
- Restart OpenWIndows to see any changes.

I still have the problem that iconifying the DEC windows clients crashs the
server.  Since I am using old version of both products (OW 2.0 instead
of 3.0; VMS 5.3 DEC windows instead of VMS 5.5 DEC windows/Motif), I
don't expect any solutions forthcoming.

Perhaps the above could be added to the FAQ

regards, kiwin

-----
Stephen [kiwin] Palm                                     TEL: +81-3-3265-8850
Rockwell International - Digital Communications Division     COMNET: 930-8862
Japan Engineering Design Center                          FAX: +81-3-3265-2864
      palm@nb.rockwell.com       palm@cs.cmu.edu           NIHON::PALM
From: 81264@novell1.rz.fht-mannheim.de (Rainer Schiele)
Newsgroups: fj.mail-lists.x-window
Subject: Search for PEX Documents
Date: 25 Jul 92 00:49:30 GMT
Distribution: fj
Organization: Fachhochschule fuer Technik Mannheim

Date: Fri, 24 Jul 92 11:31:58 GMT
Message-Id: <81264.8.711977518@novell1.rz.fht-mannheim.de>
Newsgroups: comp.windows.x

Hello out there!

I'm serching for some PEX Documents. Know someone were can i get one ?
Give it books over PEX ?

Rainer
From: CFRAZIER@hdsc.ssc.af.mil (C | C Code | C Code Run, please!)
Newsgroups: fj.mail-lists.x-window
Subject: icccm comm
Date: 25 Jul 92 00:44:57 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date:    Fri, 24 Jul 1992 15:48:03 -0500 (CDT)
Message-Id: <920724154803.28a0632c@hdsc.ssc.af.mil>
X-Vmsmail-To: SMTP%"xpert@athena.mit.edu"

I'm trying to perform icccm communications in Ada.  I was just interested in knowing
if anyone else out there in xpert land has tried to do this in Ada and if so,
could give me some tips (a small example, maybe). 
 
Thanks.  Also, I'm looking for a dial-up BBS that supports X discussion.
From: c2l@eclu.psu.edu (Chern-shea Liou)
Newsgroups: fj.mail-lists.x-window
Subject: No title in original
Date: 22 Jul 92 00:47:38 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Tue, 21 Jul 92 12:36:11 -0400
Message-Id: <9207211636.AA07155@ECLU.psu.edu>

please drop off from list!
Thanks and have a good day
From: oj@pictel.com (Oliver Jones)
Newsgroups: fj.mail-lists.x-window
Subject: Re: How can I display a cursor glyph as a bitmap?
Date: 25 Jul 92 14:53:25 GMT
Distribution: fj
Organization: PictureTel Corporation

Date: 24 Jul 92 17:19:54 GMT
Message-Id: <1992Jul24.171954.8075@pictel.com>
Newsgroups: comp.windows.x

In article <Brv1tr.3pw@news.cso.uiuc.edu> hofmann@cs.uiuc.edu (J. Scott Hofmann) writes:
>Is there any
>way, given a cursor index (ie XC_target, XC_dot) I can display the glyph just as
>a bitmap? 


	Font cursorfont = XLoadFont (dpy, "cursor");
	GC cursorgc = XCreateGC (dpy,win, 0,0);
	XSetFont (dpy, cursorgc, cursorfont);
	char cursorglyph = XC_dot;

	XDrawString (dpy, win, cursorgc, x,y, &cursorglyph, 1L); 

There's a font named "cursor" full of these glyphs.  The even-numbered ones
(#defined as XC_dot and so forth) are the glyphs, and the odd are the masks.
From: sautins@tramp.colorado.edu (SAUTINS ANDREW MICHAEL)
Newsgroups: fj.mail-lists.x-window
Subject: XtDestroyWidget Problem
Date: 22 Jul 92 16:47:20 GMT
Distribution: fj
Organization: University of Colorado, Boulder

Date: Wed, 22 Jul 1992 03:07:45 GMT
Message-Id: <1992Jul22.030745.11208@ucsu.Colorado.EDU>
Newsgroups: comp.windows.x,comp.windows.x.intrinsics,comp.windows.x.motif


	O.k., I'm having a couple of problems with XtDestroyWidet that
make me want to pull my hair out.  

	First:  If i create a motif Message box and try to destroy it,
		I get a core dump.  No explination. 

	Second: I create a message for and after a bit of motif mumbo jumbo
		I destroy it.  Here I could be in error (memory fault), 
		but I'm usring codecenter to catch memory faults(O.K., I
		know this method is not fool proof, but it's a good start)
		and I'm unable to find any problems until the program enters
		the Xt lib where I can't tell what's going on.

	also.  I suppose it's improtant to note that I'm running X11R4
			and motif 1.1.1 (or 1.1.2).


		sautins@tramp.colrado.edu
From: toml@marvin.solbourne.com (Tom LaStrange)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Where are those rolodex ?
Date: 29 Jul 92 04:58:26 GMT
Distribution: fj
Organization: Solbourne Computer, Inc.

Date: Tue, 28 Jul 1992 23:12:34 GMT
Message-Id: <Bs4GGz.Lz3@solbourne.com>
Newsgroups: comp.windows.x

In article <POP.92Jul27145233@goedel.mitre.org>, pop@goedel.mitre.org (Paul O. Perry) writes:
|> 
|> 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 ?


Unfortunately they are still sitting in my mailbox.  I never did get vanilla
versions of motif/olit/xview/interviews.  One of these days I'll get around
to compiling the results into something meaningful.

--
Tom LaStrange        toml@Solbourne.COM
From: ftms!brown@bloom-beacon.mit.edu (Vidiot)
Newsgroups: fj.mail-lists.x-window
Subject: app-defaults directory location
Date: 23 Jul 92 15:42:11 GMT
Distribution: fj
Organization: Vidiot's Other Hangout

Date: 22 Jul 92 16:38:33 GMT
Message-Id: <252@ftms.UUCP>
Newsgroups: comp.windows.x


Is there an enviroment variable that can be set to tell various X-windows
programs to find the app-default file somewhere other than $OW/lib/app-default?

I prefer to install third-party software (this includes stuff from the net) in
/usr/local/lib/X11/app-default.

Thanks for your input.
-- 
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: graspkm@eng.auburn.edu (Kelly Morrison, (GRASP))
Newsgroups: fj.mail-lists.x-window
Subject: PD Project Management Tools
Date: 23 Jul 92 07:50:14 GMT
Distribution: fj
Organization: Auburn University Engineering

Date: 22 Jul 92 14:33:51 GMT
Message-Id: <1992Jul22.093353.3124@ducvax.auburn.edu>
Newsgroups: comp.windows.x


Wow! I posted a message last night describing a project management tool developed
here at Auburn and came to school this morning to find a stuffed mailbox full of
inquiries.
   I'll try to contact the three students who wrote the tool today and see if it is
okay to post it for public use. Stay tuned...
                                 -----> Kelly Morrison, Auburn University
From: rsilvers@powwow.nynexst.com (Rob Silvers)
Newsgroups: fj.mail-lists.x-window
Subject: Help!  Cannot move or resize windows by sending events.
Date: 31 Jul 92 11:17:57 GMT
Distribution: fj
Organization: Nynex Science and Technology

Date: Thu, 30 Jul 92 20:29:24 GMT
Message-Id: <1992Jul30.202924.17766@nynexst.com>
Newsgroups: comp.windows.x




	I am writing a mouse driver that uses XWarpPointer to move the pointer
and XSendEvent to send ButtonPress and ButtonRelease Events (to the lowest child
window under the pointer).  It works for pushing MOTIF buttons, opening and closing
windows, and even for drawing with the mouse in a drawing program.  When I try to
move or resize a window with either olwm or twm it does not work.  For move in twm,
it can usually move the window up and down, ans SOMETIMES left and right.  In olwm
it cannot move them at all.  For resize, when I send a ButtonPress to the resize
widget, it just freezes.  Am I supposed to be sending other events?  If so, to what window?

						Thanks,
						--Rob.
From: palermo@cco.caltech.edu
Newsgroups: fj.mail-lists.x-window
Subject: X386 Server won't start
Date: 23 Jul 92 12:04:08 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: 18 Jul 92 04:56:00 GMT
Message-Id: <1992Jul17.185650.949@cco.caltech>
Newsgroups: comp.windows.x


I just built X11R5 on my Interactive 2.2.1 system. I did the
make install into the /usr/X386 tree. When I try to bring up
the server I get the following error
-------------------------------------------------------------
X386 Version 1.2 / X Windows System
(protocol Version 11, revision 0, vendor release 5000)

VGA256: et4000 (mem: 1024k clocks: 25 28 32 36 40 45 50 65)

Fatal server error:
Mode couldn't be resolved: "1024x768"
---------------------------------------------------------------

I looked through all the descriptions of the X386 server. I ran
the install.sh script provided in the mit/servers/ddx/x386/etc
directory.  The config notes in the x386 dir said there has to be
a copy of the Xconfig file in /usr/X386, there wasn't, so I copied
the one provided over.

I have an Orchid Pro Designer II video card which is supported.
I currently run the X11R3 I got from Interative, so I sure the 
video card should work.

Any help would be greatly appreciated 

Please send any repsonses to bob@popeye.jpl.nasa.gov
From: uejiowh@dssv01.crd.ge.com
Newsgroups: fj.mail-lists.x-window
Subject: Re: ANNOUNCEMENT: New version of X11-only AnswerBook docviewer available
Date: 22 Jul 92 18:10:15 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Message-Id: <9207221230.AA06171@dssv01.crd.ge.com>
             <1992Jul18.123036.26328@elroy.jpl.nasa.gov> 
Date: Wed, 22 Jul 92 08:30:50 -0400
X-Mts: smtp

What is AnswerBook?


Wayne Uejio             General Electric CRD   Disclaimer: opinions 
uejiowh@crd.ge.com      KWC-275                expressed are my own 
Office: 518-387-6441    P.O. Box 8             and not the company's
Fax:    518-387-7080    Schenectady NY 12301   opinion.
From: bhilt@amd-1s.hac.com (Brian Hiltscher (DSS))
Newsgroups: fj.mail-lists.x-window
Subject: UNSUBSCRIBE
Date: 30 Jul 92 18:06:22 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Thu, 30 Jul 92 08:13:27 PDT
Message-Id: <9207301513.AA19037@amd-1s.amd>

Please remove me from the mailing list
Thanks.
From: hofmann@cs.uiuc.edu (J. Scott Hofmann)
Newsgroups: fj.mail-lists.x-window
Subject: How can I display a cursor glyph as a bitmap?
Date: 24 Jul 92 13:24:38 GMT
Distribution: fj
Organization: University of Illinois at Urbana

Date: 23 Jul 92 21:17:49 GMT
Message-Id: <Brv1tr.3pw@news.cso.uiuc.edu>
Newsgroups: comp.windows.x


   I need to display a remote user's cursor glyph on my display. Is there any
way, given the index (ie XC_target, XC_dot) I can display the glyph just as
a bitmap? thanx,

                                                     scott


-- 
-------------------------------------------------------------------------------
J. Scott Hofmann                        | "Just use the keyboard."
hofmann@cs.uiuc.edu (NeXTmail accepted) | "Ah, a keyboard. How quaint." -ST IV
Epoch Development Team, UIUC            |
From: slewand@dw3f.ess.harris.com (Scott Lewand)
Newsgroups: fj.mail-lists.x-window
Subject: Motiff Compliancy Ques for 1.1
Date: 24 Jul 92 00:25:21 GMT
Distribution: fj
Organization: Harris GISD

Date: Thu, 23 Jul 1992 13:36:01 GMT
Message-Id: <1992Jul23.133601.11033@trantor.harris-atd.com>
Newsgroups: comp.windows.x

Can any one answer these?

   In the Motif 1.1 style guide are the definitions of the window layout for
motif compatable 
windows. I am concerned about the following issues being 100% Motif compliant:

1) Can the drag, resize, iconify, and enlargment regions of the window
be made inactive and the window still be motif compliant.

2) is a menu bar required in all windows and is it in a fixed location.

3) can a window created by application A be accessed and used by application B.

      Thanks in advance...please send responses to slewand@dw3f.ess.harris.com

                                      peace.... 
                                                   Scott
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Writing your own Screen Saver under X???
Date: 26 Jul 92 01:49:55 GMT
Distribution: fj
Organization: McGill Research Centre for Intelligent Machines

Date: Sat, 25 Jul 92 10:44:38 GMT
Message-Id: <1992Jul25.104438.7596@thunder.mcrcim.mcgill.edu>
Newsgroups: comp.windows.x

In article <1992Jul20.142330.22230@panix.com>, miner@panix.com (Ed Miner) writes:

> I am trying to write my own screen saver under X to replace the blank
> screen that comes up.  I know with xset , you can turn on the screen
> saver, so that a X logo will float around the screen.  My question is
> how do you change this so that a program that I write will be
> displayed instead?

It is not possible to do it right without adding an extension to the
server.  I believe one exists by the name of xidle.

Without such, you have to approximate it by selecting for events on
other applications' windows and hoping you don't lose by missing
ButtonPress events.  It ain't pretty.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: pwh@bradley.bradley.edu (Pete Hartman)
Newsgroups: fj.mail-lists.x-window
Subject: problems with console when using X
Date: 28 Jul 92 02:43:57 GMT
Distribution: fj
Organization: Bradley University

Date: Mon, 27 Jul 92 21:19:32 GMT
Message-Id: <1992Jul27.211932.21443@bradley.bradley.edu>
Newsgroups: comp.windows.x

We have a Sun Sparcstation 2 running X11R5.

Periodically students manage to "lose" the console--I cannot get the
console to respond, even though there is a getty running, even if
I kill/restart the getty.  This is not like the problem solved by
typing "/usr/openwin/bin/kbd_mode -a"--I get *no* response from the
console keyboard rather than simply having every keypress translated
into a return.

I'd swear I've seen this problem and it's solution discussed before, but
it doesn't seem to be in the FAQ, and I'm lost.  If someone could tell
me if they know of a solution, I'd really appreciate it.
-- 
Pete Hartman		       Bradley University	pwh@bradley.bradley.edu
                 Love is blind, Love can tell a million stories
                   Love's unkind, spiteful in a million ways
From: hewitt@usafa.af.mil (Joe Hewitt)
Newsgroups: fj.mail-lists.x-window
Subject: Changing Colormap RGB values...
Date: 25 Jul 92 07:58:16 GMT
Distribution: fj
Organization: U.S. Air Force Academy, Colorado

Date: 23 Jul 92 03:17:12 GMT
Message-Id: <549@usafa.af.mil>
Newsgroups: comp.windows.x



Problem:    How to dynamically change the RGB values in a colormap entry
            so that all objects using that colormap index automatically
            change to the new color (in XView or Xlib).

H/W & S/W:  Sun SS 2 running OW 2.

Project:    I am developing a simple app using XView to allow users
            to interactively change the RGB component values of a
           	given colormap index.  The idea is when the colormap
			components change, all objects drawn using that index
			automatically assume the new color without any application
			procedure getting called to do the drawing.

Request:    I would like to see sample code that changes the RGB
			values on the fly.  Can someone help?

Many thanks in advance.

Cheers!

--Joe
-- 
 )       (         / \               )   )             _/__/_
 \   ^   /       _/__/___    _      /__ / _  _    _ o  /  /
  \_/ \_/   o   (_/   (__)__(/__   /   / (/__(_/\_)_(_(__(__  
W. Joe Hewitt, 1Lt, USAF                  hewitt@usafa.af.mil
From: meo@pencom.com (Jaime Retief, IV)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Can you hide or lock your original xterm???
Date: 25 Jul 92 02:54:59 GMT
Distribution: fj
Organization: Roadkills-R-Us

Date: 24 Jul 92 05:43:09 GMT
Message-Id: <1992Jul24.054309.11857@pencom.com>
Newsgroups: comp.windows.x

Out of the mouth of bucci1@donner.uucp (25853-pastor):
>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?

1) Do away with the xterm.  Start the Motif app from the .xinitrc .
   Simplest method.  There's nothing sacred about that xterm.

2) From the xterm, run the Motif app in background, then lock
   the xterm (say, with a script that turns off interrupts
   and sits in a read loop.

In either case, turn off mwm decorations, or just don't run
it if you don't need it.

-Miles
meo@pencom.com