HDTenEightyP/NetNews huggingface dataset:
From: rtipnis@wpi.WPI.EDU (Rajeev Tipnis)
Newsgroups: comp.windows.x.motif
Subject: drawing strings in the drawing area
Date: 11 Nov 92 03:24:44 GMT
Organization: Worcester Polytechnic Institute
NNTP-Posting-Host: wpi.wpi.edu
Originator: rtipnis@wpi.WPI.EDU




	Hi,

	  I'd very much appreciate some help with this.
	  I have a drawingarea widget and there is an
	  event handler associated with the buttonpress
	  on it. When I press the button on this, I popup
	  a shell widget and when I release the button, this
	  shell widget pops down. This is working fine.

	  There is another drawing area in the shellwidget (the
	  one that pops up). I want to draw strings in this
          drawing area, while the buton is pressed (that is 
          while it is popped up). I am using XDrawString() on
          the drawing area after it pops up, but it doesn't show!!!!

	  If anyone knows what could be going wrong, please help me!

	  Thanks,

      --- Rajeev
Newsgroups: comp.windows.x.motif
From: parikh@enws240.eas.asu.edu (Ripple Parikh)
Subject: need help with closing windows
Organization: Arizona State University, Tempe
Distribution: usa
Date: Thu, 12 Nov 1992 00:07:30 GMT


I am having a hard time resolving a problem. 
My problem is  that whenever the user activates/double-clicks the 'Close' 
option in the window manager menu; I want to do some stuff (like seting/reseting
a flag) before closing the window. In other words, I want to call a function 
which will do some stuff and close the window instead of mwm directly closing 
the window by invoking its 'f.kill' procedure.

Any help/pointers would be greatly appreciated.
Please e-mail the solution.

Thanks.
Ripple.
Newsgroups: comp.windows.x.motif,comp.windows.x
From: rchui@nswc-wo.nswc.navy.mil (Raymond Chui)
Subject: Re: Why KeyPress/Release not work in DrawingAreaWidget?
Organization: Naval Surface Warfare Center - White Oak
Date: Fri, 13 Nov 1992 18:04:34 GMT

Thank you to all of you who give me the right answers.

I set all the widget for (XmNtraversalOn, False,) and the
ScrolledWindowWidget:

Widget horizontal_scrollbar, vertical_scrollbar;

XtVaGetValues(sw, XmNhorizontalScrollBar, &horizontal_scrollbar,
			XmNverticalScrollBar, &vertical_scrollbar, NULL);

	XtVaSetValues(horizontal_scrollbar, XmNtraversalOn, False, NULL);
	XtVaSetValues(vertical_scrollbar, XmNtraversalOn, False, NULL);

Now I can get KeyPress and KeyRelease in my Motif DrawingAreaWidget.
Then I should input text string to DrawingAreaWidget from my keyboard,
right? Well, the answer is no, I don't get keysym return! Here are my codes:

void
draw_text(widget, data, cbs)
Widget widget;
XtPointer data;
XmDrawingAreaCallbackStruct *cbs;
{
	XEvent *event = cbs->event;
   	Display *dpy = event->xany.display;
	char *string, *buffer;
    	KeySym keysym;
    	int count;
   	XComposeStatus compose;

	if (cbs->reason == XmCR_INPUT) {
		switch (event->xany.type) {
			.....
			.....
			case KeyPress:
				printf("got a keypress event\n");
				count = XLookupString(&event,
						buffer, 10, &keysym,
						&compose);
				printf("The keysym is %s\n",
					XKeysymToString(keysym));
				break;
			case  KeyRelease:
				printf("got a keyrelease event\n");
				break;
			default:
				....
				break;
		} /* end switch */
	} /* end if */
} /* end function */

Well, no matter what key I press, it always give me output:

got a keypress event
The keysym is (null)
got a keyrelease event

1) Why I don't get keysym return from XLookupString()?
2) When I press Enter/Return key, only print out:

got a keyrelease event.
Why?

3) I put following codes in
case ButtonPress: or case ButtonRelease:

XSetInputFocus(dpy, cbs->window, RevertToNone,
					CurrentTime);
XGrabKey(dpy, AnyKey, AnyModifier,
				XtWindow(widget), False,
				GrabModeAsync, GrabModeAsync);
still don't help.
Let me tell you what I try to do. My final goal is input text strings
in the Motif DrawingAreaWidget from the keyboard.

4) Why there is no comp.windows.x.xlib newsgroup?

-- 
Raymond H. Chui
NSWC N62
10901 New Hampshire Ave.
Silver Spring, MD 20903-5000
U.S.A.
Voice:1-301-394-5192 Fax:1-301-394-5835
E-Mail:rchui@nswc-wo.nswc.navy.mil
 _ __                                  _    ,    __
' )  )                           /    ' )  /    /  ) /
 /--' __. , , ____   ______   __/      /--/    /    /_  . . o
/  \_(_(_(_/_/) ) )_(_) /) )_(_(_     /  ( o  (__/ / /_(_/_(_
          /
         '
Newsgroups: comp.windows.x.motif
From: bryan@eggneb.astro.ucla.edu (Bryan LittleField )
Subject: Re: Printing clipped Motif data
Organization: UCLA Dept of Astronomy
Date: 9 Nov 92 17:33:14 PST

In article <1992Nov9.230256.5253@wlbr.iipo.gtegsc.com> sievert@wlonex.iipo.gtegsc.com (Glen Sievertson) writes:
>Does anyone know of a utility that supports "xwd-ing" Motif data
>that is clipped by a window?  For instance, suppose I have an XmMainWindow
>with an XmRowcolumn work area, and the XmRowcolumn has lots of
>children widgets.  Suppose that I have resized the window so that the entire
>work area is not visible.  Is there a utility or recommended technique
>to screen dump or "xwd" all of the data, including the data that is no
>longer visible?  Thanks, Glen

 I'm also interested in this if it exists !!

Newsgroups: comp.windows.x.motif
From: mas@mipl8.jpl.nasa.gov (Marc Sarrel)
Subject: GUI Builder Summary of Responses
Organization: Jet Propulsion Laboratory
Distribution: comp
Date: Tue, 10 Nov 1992 17:51:52 GMT


A week or two ago, I asked the Net about their experiences with Motif
GUI Builders.  Thanks to those who responded.  These names, addresses,
phone numers and prices are for informational purposes only.  I have
no interest, financial or otherwise, in any of these companies.  Your
mileage may vary.  There is no warantee, either expressed or implied,
concerning the accuracy of this information, so you can't sue me.
Some states do not allow this limitation of liability, so this
restriction may not apply to you. Compute at your own risk. :-)


Here are the results:


Builder Xcessory:
$3500

Integrated Computer Solutions, Inc.
201 Broadway
Cambridge, MA  02139
Voice: 617 621-0060
FAX:   617 621-9555
Email: info@ics.com


XDesigner:
$3500

Bob Sullivan
VI Corp
Voice: 413 586-4144


XVT-Design:

Multi-Platform GUI Builder (Motif, OPEN LOOK, Windows, PM, Mac)

XVT Software
Voice: 800 678-7988


Transportable Application Executive Plus:
Free to NASA centers, $900 program, $200 documentation

TAE Support Office
Code 522
NASA/GSFC
Greenbelt, MD  20771
Voice: 301 286-6034
FTS:   301 888-6034
FAX:   301 286-4627
Email: taeso@postman.gsfc.nasa.gov

or

COSMIC
The University of Georgia
382 East Broad Street
Athens, GA  30602
Voice: 404 542-3265
Telex: 41-4190 UGA IRC ATHENS
FAX:   404 542-4807
--
Marc Sarrel			"She's got a big boyfriend
Jet Propulsion Laboratory	 A really big boyfriend
mas@mipl8.jpl.nasa.gov		 He lifts weights, he builds cars
                                 And he's got no sense of humor
                                 She's got a big, really big
                                 Really, really, really big boyfriend"
                                                     -Blotto
From: hardiman@bcstec.ca.boeing.com (Paul Hardiman)
Newsgroups: comp.windows.x.motif
Subject: programatic access to mwm functions
Date: 9 Nov 92 19:04:13 GMT
Organization: Boeing Computer Services, Seattle


I am looking for info on methods of access to
mwm functions via programs.

Email is the best form of response for me

Thanks.

-- 
Ciao 4 Now ---
  Paul Hardiman  (206) 728-8843  hardiman@bcstec.boeing.com
Newsgroups: comp.windows.x.motif
From: dwex@cbnewsj.cb.att.com (david.e.wexelblat)
Subject: Re: Motif Resource Editor (Mre)
Organization: AT&T
Date: Fri, 13 Nov 1992 14:33:20 GMT

In article <1992Nov12.212133.29239@osf.org> daniel@moonshine.osf.org (Daniel Dardailler) writes:
>  
> |> would someone please tell me more about Motif Resource Editor (Mre) and 
> |> where can I get it?
>  
> mre was a demo in the 1.1.x Motif distribution.
> We stopped  shipping it in 1.2 as we didn't have the
> necessary resources to fix it.
            ^^^^^^^^^

Is that a horrible pun, or what?

:->

> 
> Daniel


--
David Wexelblat <dwex@mtgzfs3.att.com>  (908) 957-5871
AT&T Bell Laboratories, 200 Laurel Ave - 4B-421, Middletown, NJ  07748

"The meaning of life?  That's simple.  Try to be happy, try not to hurt
 other people, and hope to fall in love."  -- Mallory Keaton
From: jan@PANDONIA.CANBERRA.EDU.AU (Jan Newmarch)
Newsgroups: comp.windows.x.motif
Subject: comp.windows.x.motif archives now on WAIS
Date: 12 Nov 92 15:35:22 GMT
Distribution: inet
Organization: The Internet

I have been archiving the comp.windows.x.motif items for some time
now. Recently I made them available for anonymous ftp from
csc.canberra.edu.au (137.92.1.1).  These same archives are now
available via WAIS (Wide Area Information Service) under information
source comp.windows.x.motif.

WAIS allows you to do keyword searches of the archives database.
For example, searching on keywords "drag" and "drop" produced these
articles in relevance ranking:

  netcomsv!m Re: rdd - drag and drop library                                 690
  att!cbfsb! Re: Re: info needed on MOOLIT                                  1161
  "Terry J.  Re: popdown menu                                                406
  coyne@seis Re: Drag and Drop in Motif 1.2                                   49
  csus.edu!n Re: Motif drag-and-drop                                          63
  csus.edu!b Re: Drag and Drop                                                45
  W. Scott M Re: Re: Drag and Drop in motif ???                               70
  dbrooks@os Re: OSF/Motif 1.2 release announcement                          162
  cis.ohio-s Re: Drag 'n Drop                                                 77
  netcomsv!m Re: RDD drag-n-drop library                                      50
  orca!javel Re: Re: Drag and Drop                                            55
  taco!rock! Re: Drag and Drop in motif ???                                   36
  geoff@jtsv Re: Drop site queries for Drag and Drop                          33
  att!linac! Re: Motif drag and drop examples program                         36
  sae!sae.co Re: Need Motif 1.2 drag and drop specification                   39
  walter!por Re: drag and drop                                                55
  stan!marvi Re: 1.2 drag and drop                                            40
  pa.dec                                 

Each article can then be retrieved by selecting it. The answers to
many of your questions may be lurking just a keyword search away...

Enjoy!

				Jan
-- 
+----------------------+---+
  Jan Newmarch, Information Science and Engineering,
  University of Canberra, PO Box 1, Belconnen, Act 2616
  Australia. Tel: (Aust) 6-2012422. Fax: (Aust) 6-2015041

  AARnet: jan@ise.canberra.edu.au
  ARPA:   jan%ise.canberra.edu.au@uunet.uu.net
  UUCP:   {uunet,ukc}!munnari!ise.canberra.edu.au!jan
  JANET:  jan%au.edu.canberra.ise@EAN-RELAY

+--------------------------+
Newsgroups: comp.windows.x.motif
From: wlin@magnus.acs.ohio-state.edu (Weihung Lin)
Subject: MOTIF TRANSLATION TABLE PROBLEM
Summary: problem to override some keys
Keywords: translation table
Organization: The Ohio State University
Date: Thu, 5 Nov 1992 19:28:47 GMT


     I have some problem to setup translation table in my XmText widget.
I can setup some of the keys for the translation table, for example F2, F3
and F5 function key, but when I use F1, F4, BackSpace or PageUp keys, the
program does not respond.

In my program I declare

    char trans_string[]="<Key> F4 : routine()";
    XtTranslations trans_table;
    XtActionsRec action[1]={ {"routine", (XtActionProc)routine} };

then I call

    XtAddActions(action, XtNumber(action));
    trans_table = XtParseTranslationTable(trans_string);
    XtOverrideTranslations(Widget, trans_table);

Any suggestion will be greatly apprecicated. Thanks a lot for the help.


Weihung Lin
From: meeks@osf.org ("W. Scott Meeks")
Newsgroups: comp.windows.x.motif
Subject: Re: RowColumn Widget Question
Date: 12 Nov 92 16:05:15 GMT
Distribution: inet
Organization: The Internet

>Date: 10 Nov 92 03:38:06 GMT
>From: netnews.louisville.edu!starbase.spd.louisville.edu!jamull01@g.ms.uky.edu  (Mr. Positive)
>
>   I'm relatively new to programming motif applications, so hopefully this
>question isn't too simple.  What I would like to do is after creating
>a RowColumn widget (say pushbuttons for example) I would like to be
>able to control the sensitivity of individual buttons in a given row or column.
>Is this possible ? If so how (as I've yet to discover it) ?  Please email
>replies.  Any help offered will be greatly appreciated.

Have you tried calling XtSetSensitive False on the individual buttons?  By
the way, it's helpful to include your email address somewhere in your
message since it isn't always reconstructable from the path.

W. Scott Meeks           
Open Software Foundation 
meeks@osf.org            
(617) 621-7229           
Practice random kindness and senseless acts of beauty.
From: prakash@lilbit.UUCP (Prakash Baskaran)
Newsgroups: comp.windows.x.motif
Subject: Motif Resource Editor (Mre)
Date: 12 Nov 92 15:11:08 GMT
Distribution: inet
Organization: The Internet


Hello xperts,

would someone please tell me more about Motif Resource Editor (Mre) and where can I get it?

Thanks in advance.
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: shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall)
Subject: Re: Button resources for FileSelectionBox widget
Date: Tue, 10 Nov 1992 20:37:22 GMT
Reply-To: jay@vnet.ibm.com
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM Rochester, MN

In article <1992Nov10.160828.15026@vela.acs.oakland.edu>, amaranth@vela.acs.oakland.edu (Paul Amaranth) writes:
|> This should be simple.  I want to change the background colors for
|> different parts of a FileSelectionBox.
     [...]
|>   <Application-Class>*<instance-name>*XmPushButton.background: new-color
|> 
|> has no effect on the button colors.

I believe almost any Motif function which creates a widget with subwidgets,
e.g., XmCreateFileSelectionBox() or XmCreateErrorDialog(), uses gadgets
whereever possible.  In your case, the buttons are XmPushButtonGadgets,
not XmPushButtons, and as such, inherit the coloring of their parent and
cannot be set individually.

-- 
: jay          jay@vnet.ibm.com    My opinions and ideas, not my employer's.
: shmdgljd@rchland.vnet.ibm.com    (c) Copyright 1992.  All rights reserved.
Newsgroups: comp.windows.x.motif
From: ygor@aplexus.jhuapl.edu (Daniel E. White  (F2C))
Subject: Re: MOTIF 1.2 source code from OSF
Keywords: source code
Organization: Johns Hopkins U. Applied Physics Lab
Date: Mon, 9 Nov 1992 20:53:57 GMT

In article <1992Nov9.195800.1968@nynexst.com>, jungsj@nynexst.com (Shana-Ji Jung) writes:
|> I am interested in getting motif source code for the our developments,
|> Specially the source code of the release 1.2.   Could someone tell me where and how
|> to order one?
|> 
|> Thank you!

  You answered your own question in your Subject: line.

  OSF is the ONLY source of Motif source (I think).

-- 
------------------------------------------------------------------------
                                                               Dan White
------------------------------------------------------------------------
"Sometimes  I  think  the  surest  sign  that  intelligent  life exists
 elsewhere  in the universe is that none of it has tried to contact us."
                                                  Calvin (Bill Waterson)
Newsgroups: comp.windows.x.motif
From: jhahn@conan.snu.ac.kr (Jung-Ho Ahn)
Subject: Motif package for Sun
Keywords: motif package
Date: Tue, 10 Nov 92 05:01:57 GMT

We are to get a motif binaries for Sun SPARC.
Could anyone recommend a good motif package seller?
Please let me know the e-mail address of a company, if you know.

Thank you,

Jung-Ho Ahn
Newsgroups: comp.windows.x.motif
From: leb@edgar.Jpl.Nasa.Gov (Larry Bright)
Subject: Re: Can you run Motif in monochrome?
Organization: Jet Propulsion Laboratory
Date: Tue, 10 Nov 1992 18:17:08 GMT

dobrien@sybase.com (Dave O'Brien) writes:

>Can you run Motif in monochrome (1-bit) or 2-bit?

Yes, definitely. I am running Motif applications on a Macintosh with
a 19" monochrome monitor, using MacX as the X-Windows server and
motif window manager running on a Sun Sparcstation (driving the MacX
root window).

>If Motif *can* be run in B/W, how are window borders (etc.) displayed?
>Instead of gray/colour, are they just white or are they dithered to
>pseudo-gray?

Window borders are a dithered pseudo-gray. The aesthetic appearance on
a monochrome monitor is really excellent, much, much better IMHO than
anything I have seen under OpenLook or SunView in monochrome.
From: nandraj@unisql.UUCP (Nandraj Arni)
Newsgroups: comp.windows.x.motif
Subject: Invalid columns, must be > 0| Seen this Warning?
Date: 5 Nov 92 21:10:25 GMT
Organization: UniSQL, Inc., Austin, Texas, USA


  Warning:
    Name: text
    Class: XmText
    Invalid columns, must be > 0


    I am getting this warning on text widget in a from whose resizeHeight
and resizeWidth are set to FALSE. I get this warning everytime I do a 
XtVaSetValues when the value of Text is "". Is this is a known Motif bug?

Thanks

-- 
*******************************************************************
Nandraj Arni

UniSQL, Inc.                                    Voice: 512 343 7297
9390 Research Blvd.                              Home: 512 258 5186
Kaliedo II			   	          FAX: 512 343 7383
Austin, TX 78759

Email: unisql!nandraj@cs.utexas.edu
*******************************************************************
Newsgroups: comp.windows.x.motif
From: pickerig@eee.bham.ac.uk (Mr. G. Pickering)
Subject: Re: Running Motif application without Motif (licensing question)
Date: Thu, 05 Nov 1992 14:03:55 GMT
Organization: The University of Birmingham, England
X-Newsreader: TIN [version 1.1 PL6]

My interpretation of the Motif licence is this:

  1. You have no right to distribute the Window Manager mwm.

  2. You have no right to distribute the Motif libraries (.a or .o)
     such that the third party could "tap into" and use the Motif libraries.

  3. You _do_ have the right to statically bind the Motif libraries to
     your application and distribute the result. (stripping the executable
     covers you with belt and braces against 2.)

  4. You may charge for your application (which includes the Motif
     libraries) provided that it offers significant value. Ie it
     actually does something.

This interpretation is my own personal opinion, not a statement of fact.
Anyone who follows my statement does so at their own risk.

Guy

--
+--------------------------------+-----------------------------------------+
| Guy Pickering                  | School of Electronic & Electrical Eng,  |
| E-MAIL: G.PICKERING@uk.ac.bham | University of Birmingham,               |
| Tel: (021) 414 4340            | Edgbaston, Birmingham. B15 2TT.         |
+--------------------------------+-----------------------------------------+
| "I have ten pairs of trainers...One for each day of the week" - Sam Fox  |
+--------------------------------+-----------------------------------------+
From: meeks@osf.org ("W. Scott Meeks")
Newsgroups: comp.windows.x.motif
Subject: Re: XmListGetSelectedPos bugs?
Date: 12 Nov 92 15:11:19 GMT
Distribution: inet
Organization: The Internet

>Message-Id: <9211102145.AA26329@bermuda.YP.acad>
>From: dansmith@autodesk.com (Daniel Smith)
>
>	With 1.1.4 or 1.2, what are the known bugs of XmListGetSelectedPos?
>I have a situation where a listbox does not have anything selected, and the
>callback calls XmListGetSelectedPos().  Most of the time this is fine,
>but sometimes XmListGetSelectedPos returns FALSE.  Seems to be random.

Are you saying that, with a list with no selected items,
XmListGetSelectedPos is sometimes returning True?  With no selected items
it should always return False.  When it does return True with no selected
items, what is contained in position_list and position_count?

W. Scott Meeks           | We must live with the fact, true throughout recorded
Open Software Foundation | history, that our artifacts are sometimes flawed and
meeks@osf.org            | cause us to die in novel and unexpected ways, and we
(617) 621-7229           | can only do our human best to minimize the problems.
Practice random kindness and senseless acts of beauty.


Newsgroups: comp.windows.x.motif
From: vijay@controls.ccd.harris.com (Vijay Ruhela)
Subject: loading xpm files in SCO Xsight
Organization: Harris Controls and Composition
Date: Thu, 5 Nov 1992 13:21:38 GMT

Hi Netters:

I am trying to load some xpm icons on a drawing area.
The stuff works fine on an RS6000 but when I try to do 
a similar thing in my PC 386 running XSight 4.1, when
reading from xpm file, I get  error XpmColorError or something
to the affect.

Any clues.

Vijay
(vijay@ccd.harris.com)

Newsgroups: comp.windows.x.motif
From: hitec@hsr.no (Hitec)
Subject: Traversing Tab groups
Keywords: XmTextFieldInsert
Organization: Rogaland University Centre
Date: Thu, 12 Nov 1992 11:45:10 GMT

I have a problem with traversing tab groups and inserting
text in TextField widgets.

I use a dialogbox for registration. This dialogbox consists
of four TextField. If the fisrt given input matches a previous
registrated item I want to insert corresponding data into the
other three TextFields. 
I'm currently trying to use XmProcessTraverse to get to the
next tab group and use XmTextFieldInsert to insert text.
(All TextFields belong to the same form, and all TextFields is
created on the same widget).

Here is the problem:

   All text inserted with XmTextFieldInsert ends up in the
   same TextField (the one used for first input).
   When the text has been inserted the focus is traversed
   as expected.

    if(strcmp(label,"Number:") == 0)
    {
        if(atoi(value) <= 0 || atoi(value) > 36)
        {
           printf("^G");
           fflush(stdout);
           return;
        }
        strcpy(tmp_node.number, value);
        strcat(tmp_node.number, "\0");

        XmProcessTraversal(text_w, XmTRAVERSE_NEXT_TAB_GROUP);

        XmTextFieldInsert(text_w,0,node_reg[atoi(value)].alias);  

    }

I'm in a hurry !!!
Any help welcome.

Thanks
Newsgroups: comp.windows.x.motif