HDTenEightyP/NetNews huggingface dataset:
From: prakash@lilbit.UUCP (Prakash Baskaran)
Newsgroups: comp.windows.x.motif
Subject: Re:  Cursor movement in text widgets under Motif (SunOs 4.1.2)
Date: 11 Dec 92 15:42:21 GMT
Distribution: inet
Organization: The Internet


>	I am writing a program which, through a library, creates a text widget.
>	The left and right arrow keys don't have any effect on the text cursor
>	within the widget.  I can click the mouse within the text widget and the
>	text cursor ends up there.  How do I get the keys to work?
>		thanx,
>	----
>	Robert Diamond		(415) 493-4122
>	OCS			netcom!sputnik!rob
>	560 San Antonio Rd
>	Palo Alto, CA 94306

Insert the following code in your .Xdefaults, 

*defaultVirtualBindings: \
    osfLeft: <Key>Left \n\
    osfRight: <Key>Right \n\
    osfUp: <Key>Up \n\
    osfDown: <Key>Down

I had this problem too on a SunOs 4.1.2, and the above code solved it.

prakash


_____________________________________________________________________________

Prakash Baskaran		lilbit!prakash@skybridge.scl.cwru.edu
T.D. Technologies, Inc.
12608 Cedar Rd.
Cleveland, OH 44106

Disclaimer:  Ya...  It's all mine.
_____________________________________________________________________________


Newsgroups: comp.windows.x.motif
From: misha@ninja.csuohio.edu (Misha Rekhson)
Subject: [Q] How to do blinking text in XmLabel and XmText?
Organization: AMC at Cleveland State University, Cleveland
Date: Tue, 15 Dec 1992 17:00:29 GMT


Hello.

My application requires an alert message to blink on the screen to
attract operator's attention. I didn't find any support for it
in the Motif. How are people doing this?

I realize that one can use a time out callback and flip foreground
color yourself, but is there an easier/cleaner way?

Thank you,

-- 

Misha Rekhson                       Cleveland State University, Ohio
misha@ninja.csuohio.edu             (216) 687-5283
Newsgroups: comp.windows.x.motif
From: tonja@rss.dl.nec.com (Tonja Hill)
Subject: CascadeButton widget call_data
Organization: NEC America
Date: Thu, 17 Dec 1992 19:56:58 GMT

I have created a CascadeButton widget and added callbacks for
XmNcascadingCallback and XmNdestroyCallback.  In the callback
function invoked for the XmNcascadingCallback, the call_data
is NOT NULL, as expected.  However, the callback function
invoked for the XmNdestroyCallback DOES have NULL call_data.

I can't seem to find it documented anywhere if this is proper
behavior or not.  Does anyone know if this is a motif bug or
if destroy callbacks are SUPPOSED to receive NULL call_data?

Thanks in advance,
Tonja Hill
From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
Newsgroups: comp.windows.x.motif
Subject: Re: Using a resource as a flag? AND greying XmText strings?
Date: 13 Dec 92 19:47:05 GMT
Organization: VPI&SU Computer Science Department, Blacksburg, VA

In article <1992Dec11.160904.2824@lsl.co.uk> snail@lsl.co.uk writes:
  >> PS: "grey" is the British (i.e. wrong ;^) spelling, most Americans
  >> (and X libraries) use "gray". I'm not sure how New Yorkers would spell it!
  >
  >Naughty, grey is correct if you speak English.
  >         gray is correct is you speak American.
  >
  >Hence grey is not wrong. Neither regrettably, is gray.

Some americans accept both grey and gray. Hence its a grey area.


  >snail@lsl.co.uk      

---
S Ramakrishnan, CS Dept, McBryde Hall, VaTech
From: brennan@hal.com (Dave Brennan)
Newsgroups: comp.windows.x.motif
Subject: specifying the character set in UIL strings
Date: 21 Dec 92 01:49:22 GMT
Organization: HaL Computer Systems, Austin, TX
NNTP-Posting-Host: hysteria.hal.com

The character set specifications in UIL strings doesen't seem to have any
effect.  Has anyone used this feature of UIL with any success?  I
expect that if I specify a character set that has a right to left direction
the string should be draw in reverse order.  Can anoyone explain what
effect the "right to left" and "sixteen bit" properties have on compound
strings?

--
Dave Brennan                                      HaL Computer Systems
brennan@hal.com                                         (512) 794-2855
--
Dave Brennan                                      HaL Computer Systems
brennan@hal.com                                         (512) 794-2855
From: snail@lsl.co.uk
Newsgroups: comp.windows.x.motif
Subject: Re: XmStringCreate* declarations
Date: 14 Dec 92 14:50:39 GMT
Organization: Laser-Scan Ltd., Cambridge

In article <1g8ql0INNh4p@hpsdlss3.sdd.hp.com>, mattb@sdd.hp.com (Matt Bonner) writes:
> I notice in the Motif 1.2 manuals that all the XmStringCreate...
> functions ask for char * instead of const char*.  Is there some
> reason for this?  If not, any chance this will be corrected in
> future versions?

There is no need, and indeed I understand that doing so would be incorrect.
Most of the strings I create using XmStringCreate...() are supplied with a
temporary C string, which is either in a static array of known size or has
been dynamically created using (m/c/re)alloc() routines. In either case the
string is not a constant.

The same argument does apply to constant strings, but in reverse. However since
I rarely use constant strings (mine come from a database for example) char *
is preferrable to const char *.
-- 
snail@lsl.co.uk      

muso/unix joke: "which debugger do you use?"
                "I use dbx..."
                "Oh really, we use Dolby C..."
Motorola inside.
From: pac30@duts.ccc.amdahl.com (Paul Caffrey)
Newsgroups: comp.windows.x.motif
Subject: using xrdb and .mwmrc
Date: 16 Dec 92 15:45:16 GMT
Reply-To: pac30@DUTS.ccc.amdahl.com (Paul Caffrey)
Organization: Amdahl Corporation, Sunnyvale CA


Hi,

Can someone please answer the following simple questions:

1. Is it possible to invoke the restart function (f.restart in .mwmrc) from a command line. I wish to have a menu which can set the colour of say Mwm*background and then restart the window manager so that change takes effect e.g. 
	#.mwmrc entry
	"change colour of Mwm*Background"	f.exec "some command"
				where "some command" does everything

2. When using xrdb I can see it can take its input from the standard input i.e.  xrdb <enter>
 Mwm*Background:	aquamarine
<ctl-d>
 However it doesn`t seem to be possible to do this in a command such as:
xrdb "Mwm*Background: aquamarine"
i.e. it works interactively but can it be make to work from the command line.

If somene is aware of a package to do this kind of thing (setup the motif mwm resources interactively) I would like to hear about it.

Any help would be very much appreciated,

regards,

Paul.

email pac30@amail.amdahl.com
From: cecchinr@gehrig.cs.rpi.edu (Ron Cecchini)
Newsgroups: comp.windows.x.motif
Subject: Re: How to simulate a ToggleButton with a PushButton
Date: 16 Dec 92 16:09:26 GMT
Organization: Rensselaer Polytechnic Institute, Troy, NY

In article <BzCv5o.rt@spss.com> bobhays@spss.com (Bob Hays) writes:

[stuff deleted]

>Cute but doesn't answer the question - I hope the following will
>help....
>
>You can replace the indicator pixmap for the toggle button using the
>resources XmNselectPixmap and XmNselectInsensitivePixmap.  You may be
>able to change the type of the indicator with XmNindicatorType.  Make
>sure to turn the label off (XmNlabelString to (XmString) NULL).
>
>You will, with some toying, get the behavior you want (we do it here
>for radio buttons with graphic images).
>
>Have fun! - Bob

Thanx Bob.  I also received a perhaps simpler bit of advice:

Use a ToggleButton, and set the following resources:
     XmNindicatorOn, False
     XmNshadowThickness, 1,

The only other thing left to do, since a ToggleButton doesn't have a
XmNarmColor resource like a PushButton, is to change the ToggleButton's
background resource in the ToggleButton's XmNarmCallback when it gets  pressed.

Of course, you also have to change the background back to its original color
when the toggle somehow gets "deselected" (which in my case, since I've 
implemented a "RadioBox", occurs when I press another ToggleButton).

Ron
From: windy@pencom.com (Windflower Gilbert)
Newsgroups: comp.windows.x.motif
Subject: Seeking Motif style guide checklist
Date: 17 Dec 92 20:04:04 GMT
Reply-To: windy@pencom.com
Organization: Pencom Software

Has anyone ever created a checklist for Motif Style Guide conformance? I  
could really use one.

--
Windflower Gilbert

Pencom Software
Austin, Texas USA
windy@pencom.com
Newsgroups: comp.windows.x.motif
From: gregc@eagle.fsl.noaa.gov (Greg Compestine)
Subject: Problem with 24 bit depth.
Summary: problem with 24 bit depth support.
Keywords: Motif 24
Organization: Forecast Systems Lab, NOAA - Boulder CO, USA
Date: Thu, 17 Dec 1992 16:50:46 GMT

Greetings:

   I've been trying to get a prototype application to come 
up and display a 24 bit image in Motif.  I would like a 
situation where the server need not be set up for 24 bit as
its default, but if the service is available, I can take 
advantage of it.  As best I can tell from the intrinsics
FAQ, this means setting up a Shell with its own version
of a visual that's 24 bits deep.  The Motif FAQ is silent
on this issue.

  I get the configuration set and the app shell created,
then I try to create a BulletinBoard widget and a BadMatch
error occurs.  A traceback reveals that it died while trying
to get a GC for the inherited manager widget hilighting.
The Xlib ref. indicates to me that the badmatch is probably
occuring because the tile pixmap has a depth that "has 
different depth from the specified drawable".  In this
case, I'm assuming the drawable is the BulletinBoard's
window, or one of its parent windows.  But where is the
tile pixmap coming from?

   If anyone has encountered this and knows a workaround, 
please email your method.  I'll happily submit a working
solution for the Motif FAQ.

Greg
From: brennan@hal.com (Dave Brennan)
Newsgroups: comp.windows.x.motif
Subject: Re: compress_motion widget event filter...
Date: 20 Dec 92 18:03:32 GMT
Distribution: inet
Organization: HaL Computer Systems, Austin, TX
NNTP-Posting-Host: hysteria.hal.com
In-reply-to: 's message of Sat, 19 Dec 1992 22:43:40 EST

>>>>> On Sat, 19 Dec 1992 22:43:40 EST, <SML108@psuvm.psu.edu> said:

> I have learned that the problem I described in my previous post can be
> fixed by changing the event filter on my drawing area widget,
> specifically, changing compress_motion from FALSE to TRUE.  The problem is
> that I cannot see any legal approved of way of doing this.  What should I
> do?

One legal way would be to subclass the drawing area widget and change
that field.  It probably would be a bad idea to change it for the whole
class.  Subclassing the widget is simple, so don't let it scare you.

--
Dave Brennan                                      HaL Computer Systems
brennan@hal.com                                         (512) 794-2855
Newsgroups: comp.windows.x.motif
From: dbsbanka@solomon.technet.sg (Teo Pit Koon)
Subject: Error: Couldn't find per display
Organization: TECHNET, Singapore
X-Newsreader: TIN [version 1.1 PL8]
Date: Thu, 17 Dec 1992 07:41:39 GMT




Hello, 

    I am new to X Windows pgming and have started to try the XSendEvent()
call for inter-client processing, using the pgm found in pages 297-311
of "X Window Systems: Programming and Applications" by Douglas Young.

    There seemed to be some bugs in the program, for example, "xtalk"
would not work if XSendEvent() is called with 
	XSendEvent(display, window, TRUE, XtAllEvents, &events);
(page 305) and will only work if XtAllEvents mask is replaced with
NoEventMask. 
   
    I managed to get the two client programs running on two different
UNIX machines, activated the "accept" button on one machine and
got a connection to the other machine. However, when the mouse pointer is
moved into the talk window, it started to bomb out both programs with
the message "Error: Couldn't find per display information"

   Could anyone explain where the message comes from? I am using AIX 3.2.2
running Motif 1.2.2 and have no luck finding out the source of the error.

   Please help.

Newsgroups: comp.windows.x.motif
From: hess@swt1.informatik.uni-hamburg.de (Hauke Hess)
Subject: Fonts in Multiline-Editor
Summary: is there a way to define special chars
Keywords: fonts, font-editor, special chars
Organization: University of Hamburg, FRG
Distribution: comp
Date: 17 Dec 92 11:38:02 GMT

Hi,

I would like to have different fonts in a text widget (multiline).
Is this possible? If not, I would nearly as happy about a method
to include special characters into an existing font (or replace
some characters in a font with my own chars).

Any ideas?

Hauke

Newsgroups: comp.windows.x.motif
From: Hans.Joerg.Elias@arbi.informatik.uni-oldenburg.de (Hans-Joerg Elias)
Subject: Push button behaviour in dialogs
Organization: University of Oldenburg, Germany
Date: Mon, 14 Dec 1992 16:14:29 GMT
Summary: Push button behaviour in dialogs
Keywords: Dialog, PushButton, Motif

Hello World,

I want to make my own dialogs that have the same PushButton behaviour
The buttons in this dialogs change the XmNshowAsDefault resource to
the button who gained the input focus.
One way to achive this, is to create a prompt dialog and then unmanage
all unwanted children. But using this approach, my new dialog has a 
unuseable resize behaviour (the buttons change their size too).

The other way is to create a row column Widget with push buttons inside.
But now, do I have to install a event handler to catch the focus change?
Or is there a better way to do this?

Best regards,

Hans-Joerg Elias
University of Oldenburg, Germany
hans.joerg.elias@arbi.informatik.uni-oldenburg.de
Newsgroups: comp.windows.x.motif
From: dbsbanka@solomon.technet.sg (Teo Pit Koon)
Subject: motif programming problems - help
Organization: TECHNET, Singapore
X-Newsreader: TIN [version 1.1 PL8]
Date: Sat, 12 Dec 1992 03:13:48 GMT

   We are novice motif programmers. Recently, we encountered some problems which we find very hard to solve. Would appreciate if somebody can help us with the following:

a. How to program a windows message box and wait for user's response?
b. How to overcome the 'segmentation fault' when XSendEvent() is used?
c. Does the system call 'signal' conflict with the 'wait' call?
d. Can a button with PixMap label type be set to insensitive mode?
    Can an insensitive Pixmap be loaded onto a button which is set to
   insensitive?
e. How to program custom-defined event handlers without using Widgets?

Thanks.
From: vrowley@testament.bbn.com (Vicky Rowley)
Newsgroups: comp.windows.x.motif
Subject: Q: 16-bit w/text widget + X11R5&Motif1.2
Date: 15 Dec 1992 00:23:02 GMT
Organization: Bolt Beranek and Newman Inc., Cambridge MA
Distribution: usa
Reply-To: vrowley@testament.bbn.com. (Vicky Rowley)
NNTP-Posting-Host: bbn.com

Hi,

I have some questions about 16 bit characters and text widgets. . .  

First, when I link to the X11R5/Motif1.2 libraries -lXm -lXt -lX11,
I get the following error:
    ld: Undefined symbol
       _mblen
    *** Error code 2
    make: Fatal error: Command failed for target `test'
However, the target test is made and does run.  Can someone offer me
a clue on this?  Should I worry about this?  Can I make it go away?

Next, I have been told that you need to use X11R5 and Motif 1.2 (which I
am) to utilize 16 bit character sets with a text widget.  Could anyone be 
a little more specific?  Code examples using XmTextSetString, or suggestions
for good documentation on the subject would be most appreciated.
Specifically, my attempts at displaying something like 0x442b in the
jisx0208.1983 font actually displays 0x212b (according to 'xfd -fn k14')

Finally, what's the deal with the wchar_t typedef and the *Wcs routines
that go with it?

Any help/enlightenment, via return post or e-mail, would be greatly
appreciated.

TIA
vicky
vrowley@bbn.com
Newsgroups: comp.windows.x.motif
From: epc1@quads.uchicago.edu (Merlin)
Subject: Utility to create pixmap on pushbuttons
Reply-To: epc1@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Wed, 16 Dec 1992 19:00:19 GMT

I would like to create some small pixmaps in order to put them
on the faces of pushbuttons.  Are there any utilities to draw
such pictures and save them to disk.

Thanks.
Newsgroups: comp.windows.x.motif
Subject: Re: PushButton behavior
From: rz64938@mystic.d50.lilly.com (David W. Crumbacher)
Date: 18 Dec 92 10:24:16 EST
Reply-To: rz64938@mystic.d50.lilly.com (David W. Crumbacher)
Distribution: world,local


In article <1992Dec18.100902.209@inet.d48.lilly.com>, rz64938@mystic.d50.lilly.com (David W. Crumbacher) writes:
|>Relay-Version: VMS News - V6.0-3 14/03/90 VAX/VMS; site inet.d48.lilly.com
|>Path: inet.d48.lilly.com!mystic.d50.lilly.com!rz64938
|>Newsgroups: comp.windows.x.motif
|>Subject: PushButton behavior
|>Message-ID: <1992Dec18.100902.209@inet.d48.lilly.com>
|>From: rz64938@mystic.d50.lilly.com (David W. Crumbacher)
|>Date: 18 Dec 92 10:09:01 EST
|>Reply-To: rz64938@mystic.d50.lilly.com (David W. Crumbacher)
|>Distribution: world,local
|>Nntp-Posting-Host: mystic.d48.lilly.com
|>Lines: 19
|>
|>
|>I would like to have my pushbuttons behave the same way pushbuttons do
|>in dialogs (e.g. fileselectionbox) when the keyboardFocusPolicy is set
|>to true.  In dialogs, when pushbuttons take focus they show as default.
|>But for the pushbuttons I create, I can only make them show a border
|>around the pushbutton (by setting highlightOnEnter to true).
|>
|>Is there a solution for this?
|>
|>Thanks!
|>

I meant to say that when keyboardFocusPolicy is set to pointer.  Sorry!

|>+--------------------------------------------------------------+---------+
|>| David W. Crumbacher            |  e-mail: dwc@lilly.com      |         |
|>| Scientific Information Systems |  Phone : (317) 276-5345     |    o    |
|>| Lilly Research Laboratories    |  FAX   : (317) 276-4127     |   (     |
|>| Eli Lilly and Company          |  These are my own opinions, |   [\.   |
|>| Indianapolis, Indiana 46285    |  not my employer's.         |         |
|>|            *** Please respond to dwc@lilly.com ***           |         |
|>+--------------------------------------------------------------+---------+
|>
From: john@bivalve.bellcore.com (John Snow)
Subject: two processes with one window?
Organization: Bellcore
Date: Fri, 18 Dec 92 14:40:58 GMT

I have a situation where I want a background program to have control of
a portion of a window, specifically a drawing area.  It would be nice if
I could fork off another process and pass it the widget id of the drawing
area, but I know things couldn't possibly be that easy.  Is it possible
to do something like this, and if so, could someone give me some hints
as to how to do it?

Thanks,
	John Snow
From: Monica_Lee@smtp.esl.com (Monica Lee)
Newsgroups: comp.windows.x.motif
Subject: HELP! - Motif and DEC UISX application
Date: 17 Dec 92 18:38:06 GMT
Followup-To: comp.windows.x.motif
Organization: ESL Inc., S'vale CA

I have a uisx application runnings with Motif Window Manager.  I need
to shrink down this window.  Are there any X calls I can make?  

--
Monica
From: snail@lsl.co.uk
Newsgroups: comp.windows.x.motif
Subject: Re: De-iconifying widget trees.
Date: 15 Dec 92 10:31:05 GMT
Organization: Laser-Scan Ltd., Cambridge

In article <8330@charon.cwi.nl>, huub@cwi.nl (Huub Bakker) writes:
> Hello world,
> 
> I want to (de-)iconify widget trees not only with the windowmanager but also
> from "inside out". So I need to write code to do this job. Iconifying works,
> but deiconifying gives some problems. Here is the code:
>    
>    XtPopdown(tree->tree_widget);
>    XtUnrealizeWidget(tree->tree_widget);
> 
>    XtSetArg(args[n], XtNiconic, False); n++;
>    XtSetArg(args[n], XtNinitialState, "NormalState"); n++;
>    XtSetValues(tree->tree_widget, args, n);
>    
>    XtRealizeWidget(tree->tree_widget);
>    XtPopup(tree->tree_widget, XtGrabNone);  
>    XtMapWidget(tree->tree_widget);
> 
> tree->tree_widget is a toplevelShellWidget created as popupshell.
> 
> After execution of this code, the icon window is removed from the screen. But
> the new "normal" window is not mapped on the screeen, but is vissieble in the
> "virtual desktop" window of vtwm (the window_manager).

Well I don't know about your window managers, but we use mwm and the code
PER-WIDGET that I want to de-iconise/unwithdraw is as follows:-

   XtCallCallbacks(shell_widget, XtNpopupCallback, NULL);
   XMapRaised(display, XtWindow(shell_widget));
   XSync(display, FALSE);

works a treat.

It may be (but I do not know) that you could just get by kepping your code and
using XMapRaised() instead. The XtCallCallbacks is because XtPopup in some
versions of Xt (X11R4?) doesn't call all the callbacks due to a bug (See
O'Reilly books Vol 6).

The XSync() is just in case there are a lot of shells to deiconise and too many
events get stacked, the XSync prevents this, it goes a bit slower but never
breaks.
-- 
snail@lsl.co.uk      

muso/unix joke: "which debugger do you use?"
                "I use dbx..."
                "Oh really, we use Dolby C..."
Motorola inside.
From: koverber@cs.ulowell.edu (Kurt Overberg)
Newsgroups: comp.windows.x.motif
Subject: Re: XcRichText with Motif 1.2
Keywords: XcRichText
Date: 15 Dec 92 15:06:35 GMT
Distribution: usa
Organization: University of Massachusetts at Lowell Computer Science
Originator: koverber@bigmax.ulowell.edu


	What is the XcRichText widget?  It sounds interesting.
Could it be (*gasp*) a text widget that actually works!?!



					-kurt
-- 
Kurt Overberg            | Opinions expressed here are MINE!           
U of Mass, Lowell        | "Poke a double-decker on a Llama taboot,       
koverber@cs.ulowell.edu  |  Llama taboot, taboot!"      -Phish
Newsgroups: comp.windows.x.motif
From: sja@world.std.com (Stuart J Adams)
Subject: WANTED: used Motif for Sun 3
Organization: The World Public Access UNIX, Brookline, MA
Date: Fri, 18 Dec 1992 04:59:31 GMT

I am looking for a used (i.e. low cost) copy of Motif for my Sun 3.
(No use spending $600 on  a new copy only to have to throw it away
 when I upgrade to SPARC.)

Thanks,
Stuart Adams
sja@world.std.com
From: desai@blsouth.bss.com (Hiren Desai)
Newsgroups: comp.windows.x.motif
Subject: FTP question! Correction
Date: 17 Dec 92 18:28:43 GMT
Organization: BellSouth Telecommunications - Science and Technology


File is /contrib/mastering.motif.tar.Z    
Newsgroups: comp.windows.x.motif
From: koverber@cs.ulowell.edu (Kurt Overberg)
Subject: Re: mwm Icon Manager
Originator: koverber@bigmax.ulowell.edu
Organization: University of Massachusetts at Lowell Computer Science
Date: Wed, 16 Dec 1992 20:32:48 GMT




	In your resource file, try setting Mwm*useIconBox:  True
This lets mwm know to use the iconbox for the icons.  Also, if you don't 
want to see the icon pictures, you can set that too, try:

Mwm*iconDecoration:   label          !  for just label

or 

Mwm*iconDecoration:   label image    ! for both picture and label

Get the idea?

						peace out, 


						    kurt
-- 
Kurt Overberg            | Opinions expressed here are MINE!           
U of Mass, Lowell        | "Poke a double-decker on a Llama taboot,       
koverber@cs.ulowell.edu  |  Llama taboot, taboot!"      -Phish