HDTenEightyP/NetNews huggingface dataset:
From: sharp@AICENTER.MDC.COM (Dave Sharp)
Newsgroups: comp.windows.x.motif
Subject: XmText input hangs.
Date: 13 Aug 92 12:28:49 GMT
Distribution: inet
Organization: The Internet


Netters (sorry for my earlier null article):

I am having a problem where a Text widget causes the application
user interface to hang. The scenario is this:

1.	The dialog is popped up. (XmFormDialog)
2.	The user is able to selected any
	of the non-Text widgets (pushbuttons, toggle
	buttons...) just fine.
3.	The user selects a text widget for input by either
	clicking on it or tabbing into it.
4.	The input focus callback for the text widget is called.
5.	The application user interface hangs. No keyboard
	input is accepted into the text widget, no mouse
	clicks are accepted in the application, and the 
	text widget cursor is displayed for a fraction of a
	second and then disappears. I go to the shell window
	and type cntl-C to kill it.

I have tried several tests to isolate the problem, reaching
the following (some obvious) conclusions:

a)	It is not related to the app-defaults or user resource
	files: I achieved the same results with a different
	app-defaults file, and as logged in as another user.
b)	It is not related to the widget hierarchy: I ported
	the dialog to a different application we are working
	on, eliminated all of the callbacks, and it worked.

Any ideas? I have compared my code to that of the second
application mentioned in b), but haven't found any
real differences.

I am running SunOS 4.1.2, Motif 1.1.3, and using UIL on a
Sun IPC.

Mucho gracias.

--Dave Sharp			sharp@aisun.mdc.com
--McDonnell-Douglas Corp.
From: rct@fulcrum.bt.co.uk (Richard Taylor)
Newsgroups: comp.windows.x.motif
Subject: Re: Public Domain GUI Builder for Motif
Date: 21 Aug 92 14:16:20 GMT
Organization: Fulcrum Communications

In article <1992Aug20.023144.22311@thirdi.uucp> greg@thirdi.UUCP (Greg Holmberg) writes:
>In other words, you're not just going to plop down a widget and leave
>it there.  You're going to have to define constraints and
>relationships.  This is done by typing text, not picking things up with
>a mouse and moving them.
>

XDesigner from IST in Reading, England, DOES define contraints and size by
graphical means, although I admit it's not perfect. You can do things like
attach widget edges together (in a Form) just by clicking on one edge and
dragging to the other edge you wish to attach to.


>The other thing a builder does is let you enter values for resources.
>This is also done by typing text.  It's just as easy to type it into an
>app-defaults file and use Wcl.
>

Same for resources. Quite a few (size, colour, borderwidth, etc) CAN be 
specified graphically. What is annoying, though, is switching between the
two methods of data entry, graphical and textual.

 
============================================================================
Richard Taylor                 DoD #981               (rct@fulcrum.bt.co.uk)
"Gentlemen, starta your engines... 2 minutes, to the hills." Massimo Laverda
============================================================================
Fulcrum Communications Ltd., Fordrough Lane, Birmingham, B9 5LD, ENGLAND.
From: deveau@oceanroutes.ns.ca (Terry J. Deveau)
Newsgroups: comp.windows.x.motif
Subject: XmNmenuAccelerator
Date: 12 Aug 92 17:53:49 GMT
Distribution: inet
Organization: Oceanroutes Canada Inc.

I am using <Key>Return as an XmNmenuAccelerator in an XmMENU_POPUP
XmRowColumn widget.  This works fine.  What I want to do is use a 
couple of other events to also act as accelerators on the same menu:
namely, <Key>space and <BtnDown>.  The reason I want to use <Key>space
is that in every other menu and button of my application, space and
Return are interchangable, and I want that behaviour to be consistent
here too.  The reason I want to use <BtnDown> is so that the popup
is entered in keyboard traversal mode (as opposed to mouse drag mode)
just like in a pulldown from a menu-bar.

Currently, <Key>Return, <Key>space, and <BtnDown> on the initial widget
all bring up the popup menu; that works fine.  It's just that only
<Key>Return brings it up in keyboard traversal mode, since only it is
the XmNmenuAccelerator.

How can I make the other two events trigger the XmNmenuAccelerator action?
I have tried installing the other accelerators on dummy popups and
augmenting the original popup with the accelerators from the dummies
using XtInstallAccelerators, but this had no effect.

If I knew the contents of struct _TranslationData it might help; does
anyone know where this is defined?

I am using Motif 1.0, X11R3, HP-UX 7.00 on an HP 9000/834.  Any ideas?
Newsgroups: comp.windows.x.motif
From: achan@idaho.tdd.sj.nec.com (Amy Chan  x2941)
Subject: Re: Help Please (realizing a widget) !!
Organization: NEC-AM TDD, San Jose, California
Date: Thu, 20 Aug 1992 17:53:37 GMT

In article <1992Aug20.094755.19098@cs.hw.ac.uk> andrewd@cs.hw.ac.uk (Andrew Dowding) writes:
>If anyone can help me I would be eternally grateful. I've looked at the
>following and cannot see what is wrong.
>The following procedure is a callback from a message box (the help button),
>unfortunately, although I know this procedure is called, it does not actually
>realize any of the widgets (nothing pops up anyway) !
>
>void mailCB(w, email, call_data)
>Widget w;
>char *email;
>caddr_t call_data;
>{
>  Widget bb, shell;
>  Widget Mailboard;
>  Widget Cc Send;
>  Arg args[10];
>  register int n;
>
>  shell=XtCreatePopupShell("popup",applicationShellWidgetClass, w, NULL, 0);
>  bb=XmCreateBulletinBoard(shell, "BBoard2", NULL, 0);
>
>  /* Create Form */
>  n=0;
>  Mailboard = XmCreateForm(bb, "Mailboard", args, n);
>  
>  /* Single Line Text widget */
>  n = 0;
>  XtSetArg(args[n], XmNcolumns, 60); n++;
>  XtSetArg(args[n], XmNrows, 1); n++;
>  XtSetArg(args[n], XmNwidth, 250); n++;
>  XtSetArg(args[n], XmNeditMode, XmSINGLE_LINE_EDIT); n++;
>  Cc = XmCreateText(Mailboard, "Cc", args, n);
>  XtManageChild(Cc);
>
>  /* Send Button widget */
>  n = 0;
>  XtSetArg (args[n], XmNlabelString,
>            XmStringCreateLtoR("Send", XmSTRING_DEFAULT_CHARSET)); n++;
>  XtSetArg (args[n], XmNwidth, 50); n++;
>  Send = XtCreateManagedWidget ("Send", xmPushButtonWidgetClass, Mailboard, args, n);
>
>  XtManageChild(Mailboard);
>  XtManageChild(bb);
>  XtRealizeWidget(shell);
>

A pop-up shell can be popped up with XtPopup and popped down with XtPopdown.

Hope this helps.

Amy
--
Amy Chan                 | E-Mail:
NEC America              |  INET: achan@tdd.sj.nec.com
110 Rio Robles           |  UUCP: ...{decwrl,oliveb}!necsun!achan
San Jose, CA 95134       |
From: bturner@hpcvusc (Bill Turner)
Newsgroups: comp.windows.x.motif
Subject: Re: XmStringDraw causes BadFont error
Date: 17 Aug 92 23:43:23 GMT
Organization: Hewlett-Packard Company, Corvallis, Oregon USA
X-Newsreader: Tin 1.1 PL5

> So it looks like I'm getting a proper fontlist.  However,
> when I get into XmStringDraw, I get an XError like this:
> 
> X Error of failed request:  BadFont (invalid Font parameter)
>   Major opcode of failed request:  56 (X_ChangeGC)
>   Resource id in failed request:  0xffffffff
>   Serial number of failed request:  2731
>   Current serial number in output stream:  2731

XmStringDraw tries to be nice to you -- it remembers what font was set
in the GC, changes the font for the XmStringDraw, then restores the
original font.

If you didn't specify a font in XCreateGC or XChangeGC, this value can
be bogus (and in many implementations is), causing the BadFont error.

Fix:  make sure you have a valid font in the GC rather than the default
from XCreateGC.

--Bill Turner (bturner@cv.hp.com)
HP User Interface Technology Division, Corvallis
From: d8guspe@dtek.chalmers.se (Peter Gustavsson)
Newsgroups: comp.windows.x.motif
Subject: FileSelectionDialog - Help
Date: 17 Aug 92 19:11:26 GMT
Organization: Chalmers University of Technology


I have a problem with a FileSelectionDialog. I would like to get the
contents of the filelist with XmNlistItems, but I somehow can't do that.

Here is the code :

-----------------

{
  Widget     fileselect;
  XmString  *names;
  char      *file;
  int        number, i;

  names      = (XmString *)XtMalloc(256 * sizeof(XmString));

  fileselect = XmCreateFileSelectionDialog(w, "select", NULL, 0);

  XmFileSelectionDoSearch(fileselect, "/u/");

  XtVaGetValues(fileselect, 
                XmNfileListItems,      names,
	        XmNfileListItemCount, &number,
                NULL);

  for(i = 0; i < number; i ++) {
    XmStringGetLtoR(names[i], XmSTRING_DEFAULT_CHARSET, &file);
    printf("%s\n", file);
  }

  XtManageChild(fileselect);
}

-----------------

The variable number gets the correct value, but nothing happens with "names".

WHY ?

Thanks in advance
	
-----------------------------------------------------------------
Peter Gustavsson
e-mail: d8guspe@dtek.chalmers.se

Chalmers University of Technology, Gothenburg, Sweden
-----------------------------------------------------------------
From: pererik@cmi.no (Per-Erik Nordbo)
Newsgroups: comp.windows.x.motif
Subject: Re: Displaying image in Motif
Date: 12 Aug 92 12:39:20 GMT
Organization: Chr. Michelsen Institute

If you wan't to minimize software development, you may use external image decoders through popen() like the following:

char string[100];
sprintf(command, "imgtoppm | ppmtoxwd < %s", filename);
fd = popen("imgtoppm | ppmtoxwd < picture.img");

and write your own xwd decoder internally or look at the xwud.c program: mit/clients/xwud/xwd.c

--
Per Erik Nordboe, CMI, pererik@cmi.no
Newsgroups: comp.windows.x.motif
From: hofmann@cs.uiuc.edu (J. Scott Hofmann)
Subject: mwm is passing a motion event BEFORE the button press: possible bug?
Originator: hofmann@sparc12.cs.uiuc.edu
Reply-To: hofmann@cs.uiuc.edu (J. Scott Hofmann)
Organization: Delta group, Dept. of Comp. Sci., University of Illinois at U-C
Date: Fri, 21 Aug 1992 18:00:43 GMT

   In my .mwmrc I bind Btn1Down to f.raise in frame|window|icon. However,
one of the programs I am working on started to behave funny when I added 
window to the Btn1Down binding. I tracked the problem down to the event
handler, and discovered that I was receiving a MotionNotify event with the
Button1Mask set *before* I got a ButtonPress event for Button 1. I removed
window from the Btn1Down bindings in my .mwmrc, and I got events in the
correct order again (ButtonPress, then MotionNotify w/Button1Mask). As far
as I can tell mwm is passing the events on to the client program in the
wrong order. Can anyone tell me if this is a configurable behaviour, or if it
is a programming error on my part?

                                               scott


-- 
-------------------------------------------------------------------------------
J. Scott Hofmann                        | "It's a dog-eat-dog world out
hofmann@cs.uiuc.edu (NeXTmail accepted) |  there, and I'm wearing milk-bone
Epoch development team, UIUC            |  underwear." -Norm Peterson
From: achan@idaho.tdd.sj.nec.com (Amy Chan  x2941)
Newsgroups: comp.windows.x.motif
Subject: Re: Selection Dialog Box Dialog Types
Date: 20 Aug 92 18:00:30 GMT
Organization: NEC-AM TDD, San Jose, California

In article <1992Aug20.124009.27684@trantor.harris-atd.com> ccarpent@dw3f.ess.harris.com (Craig Carpenter) writes:
>--
>I am using a GUI builder to build my UIL and have seen some wierdness
>with the Selection
>Box and I do not understand why.
>
>The Dialog Types for the Canned Selection Dialog are selectable and are
>set in the UIL, for 
>example
>
>object box_Filter_Selection : XmSelectionDialog widget {
>    arguments {
>        XmNautoUnmanage = true;
>        XmNdialogStyle = XmDIALOG_APPLICATION_MODAL;
>        XmNdialogTitle = 'FILTER SELECTION';
>        XmNselectionLabelString = 'SELECTION';
>        XmNlistLabelString = 'FILTERS';
>        XmNdialogType = XmDIALOG_WORK_AREA;
>        XmNx = 490;         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^=======Set here
>        XmNy = 40;
>        XmNwidth = 214;
>        XmNheight = 295;
>    };
>    controls {
>    };
>    callbacks {
>        XmNokCallback =  procedure cb_Filter_Open_Ok(0);
>    };
>};
>
>Once this object is realize on the display via Mrm it ignores the Dialog
>type and uses the  
>default selection box widget. It does not matter which of the type I use
>I get the same results
>and I can't change it in the code. X gives me a warning about unable to
>change dialog type.
>
>Anyone have any clues as to why this is happening. Is this a Motif bug,
>or a GUI builder 
>problem. Since the UIL Looks good I can't believe that the Builder is
>causing the problem.
>
>Thanks

From OSF/Motif Programmer's Reference, the access code for XmNdialogType
for XmSelectionBox is "CG". "C" means the resource can be set at creation
time and "G" means the resource can be retrieved by using XtGetValues.
I think that's why you can't change it in the code.


Amy
--
Amy Chan                 | E-Mail:
NEC America              |  INET: achan@tdd.sj.nec.com
110 Rio Robles           |  UUCP: ...{decwrl,oliveb}!necsun!achan
San Jose, CA 95134       |
Xref: sparky comp.windows.x.motif:5731 comp.windows.x:15462
Newsgroups: comp.windows.x.motif,comp.windows.x
From: ptjahjad@us.oracle.com (Paul Bintar Tjahjadi (Motif/X Toolkit II Development))
Subject: help with Xsi/Motif 1.2 Text widget on SunOS 4.1.1...
Keywords: X11R5 Motif1.2 Xsi input
Organization: Oracle Corporation, Redwood Shores CA
Distribution: usa
Date: Thu, 20 Aug 1992 16:25:24 GMT
X-Disclaimer: This message was written by an unauthenticated user
              at Oracle Corporation.  The opinions expressed are those
              of the user and not necessarily those of Oracle.

Hi,

I was wondering if anyone has been able to use the Xsi input method which can
be found in the MIT X11R5 contrib/im directory with Motif 1.2's Text widget on
a SPARCStation running SunOS 4.1.1?

I can use the input method with a simple X program, but Motif 1.2's Text widget
seems to need a more complete set of locale files which my SunOS 4.1.1 does not
seem to have (i.e. in my /usr/share/lib/locale/*, I can only find files for the
C locale).  Do I need SunOS's JLE in order to do Japanese text input?

Please e-mail your reply to PTjahjad@Oracle.Com.

Thank you...

paul
From: shields@stars.reston.unisys.com (Thomas E. Shields)
Newsgroups: comp.windows.x.motif
Subject: Re: GUI builder to import UIL and spit out Ada
Keywords: Ada, UIL, GUI
Date: 13 Aug 92 23:34:21 GMT
Reply-To: shields@stars.reston.unisys.com
Organization: Paramax Tactical Systems - STARS Program

In article <692@trwacs.fp.trw.com>, pascale@trwacs.fp.trw.com (Rita Pascale) writes:
|> We are looking for a GUI builder that imports UIL 
|> (from Motif) and produces Ada in the end.  There may
|> be intermdeiate steps between the UIL and final Ada
|> product, but if it's at least semi-automated, that's
|> a start.
|> 
|> Any information about any packages that will do this?
|> 
|> Thanks in advance!
|> 
|> Rita Pascale                    |  Trusted X Research Group
|> (703) 803 - 4952                |  Fairfax, Virginia
|> pascale@trwacs.fp.trw.com       |  TRW Systems Division

Systems Engineering Research Corp. (SERC)
2348 Leghorn St., Ste 202
Mountain View, CA 94043
contact: Scott Cleveland (415)962-8092

SERC recently announced a UIL->Ada translator, whose output assumes
their SA-Motif Ada binding to the OSF/Motif libraries

We have SA-Motif, but haven't gotten the UIL->Ada translator yet

SA-Motif seems to be available for most Unix platforms and most Ada
compilers now or real soon now

-- 

   --------------------------------------------------------------------------
   Thomas E. Shields, PhD, CCP          STARS Center - 7670
   STARS Deputy Program Manager         Paramax Systems Corporation
   (703) 620-7028                                  A Unisys Company
   (703) 620-7916 FAX                   Tactical Systems
                                        12010 Sunrise Valley Drive
   shields@stars.reston.unisys.com      Reston, VA 22091
   --------------------------------------------------------------------------
From: rz64938@mystic.d50.lilly.com (David W. Crumbacher)
Newsgroups: comp.windows.x.motif
Subject: Setting focus to a particular widget
Date: 12 Aug 92 17:26:51 GMT
Reply-To: rz64938@mystic.d50.lilly.com (David W. Crumbacher)
Distribution: world,local


I'm sure this has been asked before, so I apologize in advance...

I have a form with several textfield widgets and pushbuttons.  By default,
focus is put on one of the pushbuttons.  How do I make the focus be put on
one of the textfields?

Thanks.
--
+--------------------------------------------------------------+---------+
| 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.         |         |
+--------------------------------------------------------------+---------+
From: deveau@oceanroutes.ns.ca ("Terry J. Deveau")
Newsgroups: comp.windows.x.motif
Subject: Re: Size/frequency of FAQ posting
Date: 21 Aug 92 13:56:48 GMT
Distribution: inet
Organization: Oceanroutes Canada Inc.

I think that the FAQ should be posted in its entirety every month;
not compressed, encoded, or diff'd.  One goal of having a FAQ is to
reduce volume in the mail-group; but the really relevant measure of 
volume here is number of messages, not total byte count.  Five
messages per month to deliver the FAQ is nothing compared to the
dozen or more messages posted every day (and I'm sure MANY more
would be posted if we didn't have the FAQ).

The August FAQ was posted in diff form.  I found this very bother-
some; it meant I had to take about a half-an-hour to manually
insert the changes and renumber the whole thing. :(

The FAQ is VERY useful and helpful to new subscribers.  We want to
ensure that they find out about it, and receive a copy in an
easy to use form, as quickly as possible.  The sooner they do,
the fewer questions will be posted which can be answered by the FAQ.

... Terry
From: deveau@oceanroutes.ns.ca ("Terry J. Deveau")
Newsgroups: comp.windows.x.motif
Subject: Re: Retrieving XmRowColumn Selections
Date: 17 Aug 92 19:31:08 GMT
Distribution: inet
Organization: Oceanroutes Canada Inc.

> 
> I've created an XmRowColumn checkbox using a Motif development kit (ezX) and I
> can't use any of the the development kit routines to find out which items in
> the checkbox are selected at any moment in time, (they don't work!).
> 
> I need to use some X/Motif-based routine(s) to find out which items are
> selected in the checkbox outside of it's callbacks - something similar to an
> XtGetValues with XmNselectedItems for a list widget. The only handle I have to
> the checkbox is it's widget ID.
> 
Just a guess, but you might use XtGetValues on the XmNset resource for
an individual checkbox (if it exists).  Don't make the mistake I made
a few months ago however, in passing the address of an int to XtGetValues
to receive the setting, declare your variable to be Boolean.  ... Terry
From: stevewi@lsl.co.uk
Newsgroups: comp.windows.x.motif
Subject: MULTICOLOUR ICONS
Summary: MULTICOLOUR ICONS
Keywords: COLOR ICONS UIL
Date: 14 Aug 92 11:56:47 GMT
Reply-To: stevewi@lsl.co.uk
Organization: Laser-Scan Ltd., Cambridge

My problem concerns the use of colour pixmaps defined using UIL.
I am currently defining the colours used by the pixmaps in a color_table
as follows :

value
 my_table : color_table(
                         background color = ' ',
                         color('blue') = 'X',
                         color('red') = '*',
                             ...
                         color('green') = '+');

using this color_table when defining the pixmaps:

value MY_ICON : icon (color_table = my_table,
                      '        ',
                      ' XXXXXX ',
                      ' X****X ',
                      ' X*++*X ',
                      ' X*++*X ',
                      ' X****X ',
                      ' XXXXXX ',
                      '        ');

then using the pixmaps in labels and buttons instead of strings:

object
  A_BUTTON : XmPushButton {
    arguments {
        XmNlabelType = XmPIXMAP;
        XmNlabelPixmap = MY_ICON;
    };
};

What I want to know is ->

How can I define the values of the *colours* used in the color_table from
the .Xdefaults file, or elsewhere if necessary ??

What I want to be able to do is something like:

value
 my_table : colour_table(
                         background color = ' ',
                         color('my_colour_1') = 'X',
                         color('my_colour_2') = '*',
                             ...
                         color('my_colour_n') = '+');

and define what these my_colour_1-n are somewhere else, preferably outside
application control and in a simple .Xdefaults or similar file.

Or am I asking too much ???

Thanx in advance,

Steve Wilkes
 -----------------------------------------------------------------------------
|                       |                                                     |
| Steve Wilkes          |  /                    |    |                        |
| Laser-Scan Ltd        |  \ |- /\ \  / * /\    | /\ |                        |
| The Science Park      |  /  \ \_  \/  | \_    |/  \|                        |
| Milton Road           |                                                     |
| CAMBRIDGE             |  He was the kind of man who would wear wet copper   |
| CB4 4FY               |  armour in a thunderstorm shouting                  |
| Tel (+44) 233 414420  |  "The rain gods are b******s!!".                    |
|                       |                                                     |
 -----------------------------------------------------------------------------
| Disclaimer:                                                                 |
| This was all MY IDEA and had absolutely nothing to do with Laser-Scan...    |
|                                                                             |
 -----------------------------------------------------------------------------