HDTenEightyP/NetNews huggingface dataset:
From: goodsenj@ajpo.sei.cmu.edu (John Goodsen)
Subject: Re: GUI builder to import UIL and spit out Ada
Organization: Ada Joint Program Office
Date: Wed, 19 Aug 1992 01:39:56 GMT

>
>TeleUSE can read UIL files as well.
>

TeleUSE generates UIL, but doesn't read it.
If you use TeleUSE, you'll understand why
it wouldn't make sense to read it.  TeleUSE
is much more than just a Motif builder, and
UIL is not sufficient to store all of the info
required to re-read a UI description.


-- 

John Goodsen                   1-800-877-1815
EVB Software Engineering       U.S. PCIS Expert Review Team
Software Process Consultant    Ada Joint Program Office
From: george@osc.COM (George Baggott)
Newsgroups: comp.windows.x.motif
Subject: Formatted Text
Summary: looking for formatted text
Keywords: rich text richtext rtf formatted text
Date: 11 Aug 92 02:44:02 GMT
Reply-To: george@osc.com
Organization: Versant Object Technology, Menlo Park, CA

I'm interested in displaying formatted text (i.e. tabs and/or multiple fonts).
I've checked out the XcRichText widget and I wasn't entirely pleased with it
(too slow, doesn't work in reverse video, and you have to add all sorts of
font bindings to your .Xdefaults file).  Does anyone know of any alternative,
commercial or otherwise?

Isn't OSF planning to improve the XmText widget?  Does anyone know what sorts
of improvements are planned and when they'll be available?

Has anyone ever had any success using a huge multi-line label inside a scrolled
window for displaying multi-font text?

Any tips would be greatly appreciated...


Thanks in advance,

George
george@osc.com
From: snail@lsl.co.uk
Newsgroups: comp.windows.x.motif
Subject: Re: Minimizing window when a modal dialog is up
Date: 13 Aug 92 16:58:51 GMT
Distribution: comp
Organization: Laser-Scan Ltd., Cambridge

In article <BALDWA.92Aug12114415@ondine.adobe.com>, baldwa@ondine.adobe.com (Sanjay Baldwa) writes:
> I have several main windows and each can popup its own modal dialogs (like
> a file open). When user minimizes a main window while a modal dialog is up
> for it then I gray out menubar of other windows. This gives a visual
> feedback that a window with modal dialog has been minimized and that it
> should be taken care of before anything else. The problem is that the whole
> thing is not very intuitive for users of other platforms (eg NeXT or Mac).
> 
> Is there a way to disable minimize function when a modal dialog is up? I
> could not find anything equivalent to WM_DELETE_WINDOW for minimization.
> What is style guide compliant behavior?

Change the decorations of the modal dialog shell. mwmDecorations resource.
Or make you modal dialog transient... so then it won't have a minimize button
on it.

Stephen Kellett
snail@lsl.co.uk
Newsgroups: comp.windows.x.motif
From: elr1@cbnewsg.cb.att.com (eugune.roytvarf)
Subject: Editing Data Tables ??
Keywords: spreadsheet, etc.
Organization: AT&T
Date: Mon, 17 Aug 1992 16:13:40 GMT


Hi,

I am looking for information about Motif Widgets with functionality to edit
tables of data( spreadsheet or like ). 
Any other ideas of doing the job are welcome.

Thanks,

Gene Roytvarf

elr\@kingfish.att.com

Newsgroups: comp.windows.x.motif
From: klee@wsl.dec.com (Ken Lee)
Subject: Re: Main loop for multiple app contexts
Reply-To: klee@wsl.dec.com
Organization: DEC Western Software Laboratory
Date: Fri, 14 Aug 92 23:27:04 GMT

|> 	I'm looking for an efficient main loop to use in a program that uses
|> several displays via multiple application contexts. 

Can you put all the displays in the same application context?
Then XtAppMainLoop() handles them all for you.

-- 
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee
From: pturner@amb4.ese.ogi.edu (Paul J Turner)
Newsgroups: comp.windows.x.motif
Subject: Need help using PushButton as ToggleButton
Keywords: PushButton, Arm, Disarm, ToggleButton
Date: 12 Aug 92 15:41:42 GMT
Article-I.D.: ogicse.41238
Followup-To: pturner@amb4.ese.ogi.edu
Distribution: usa
Organization: Center for Coastal and Land-Margin Research
Originator: pturner@amb4.ese.ogi.edu

Ideally, I'd like to use a ToggleButton with no label and
a Pixmap of my choosing for the toggle - but I wasn't able to
to do this. This would be the ideal solution - what follows is 
something that almost works.

I'm trying to use PushButtons with Pixmaps as toggle buttons
using arm/disarm to indicate the state of the associated boolean
variable. Things work fine provided the initial state on startup is 
False (button is in a disarmed state). The problem is initializing
the button to an armed state - the button appears depressed as long
as the pointer does not traverse the PushButton. When the pointer
does cross the PushButton, it becomes disarmed when the pointer leaves
the border of the PushButton's Pixmap. Crossing the PushButton again
will cause the button to display as armed, but only as long as the
pointer is in the borders of the Pixmap. Clicking on the PushButton
a couple of times straightens it out, so the correct state is displayed
regardless of the position of the pointer.

The button is created as follows, set to an armed state, parent is
a RowColumn:

    bt = XtVaCreateManagedWidget("golly", xmPushButtonWidgetClass, rc, 
                  XmNlabelType, XmPIXMAP,
                  XmNlabelPixmap, gollypm,
		  NULL);
    XtAddCallback(bt, XmNactivateCallback, toggle_golly_proc, GOLLY_VAL);
/*
 * this button's initial state is True, so display as armed
 */
    XtCallActionProc(bt, "Arm", NULL, NULL, 0);
                                ^^^^ I think the problem is here,
				     should be an event. But how
				     is it defined?

While the program is running, the button is toggled using:

void toggle_golly_proc(w, cd, cbs)
Widget w;
int cd;
XmAnyCallbackStruct *cbs;
{
    switch (cd) {
    case GOLLY_VAL:
        if (do_golly) {
            XtCallActionProc(w, "Disarm", cbs->event, NULL, 0);
            do_golly = 0;
        } else {
            XtCallActionProc(w, "Arm", cbs->event, NULL, 0);
            do_golly = 1;
        }
    }
}

This works just fine.

Any clues would be appreciated.

Thanks,

Paul J Turner
pturner@amb4.ese.ogi.edu
Xref: sparky comp.windows.x.motif:5583 comp.windows.x:15171
From: cgraham@sps.com (Christopher Graham)
Newsgroups: comp.windows.x.motif,comp.windows.x
Subject: file selection box question...
Date: 12 Aug 92 22:50:34 GMT
Followup-To: comp.windows.x.motif
Organization: SPS - Indialantic, FL

to fill both dir and file selection ares. This happens
after I unmanage the dir selection box. 

Can I do this?

                        Christopher J. Graham				

                                 __o   
                               _ \ \_~  
                              (_)/ (_) 

                           cgraham@sps.com
                       ...!uunet!sps!cgraham

                 Software Productivity Solutions, Inc.		
                           P.O. Box 361697					
                         Melbourne, Fl 32936				



Newsgroups: comp.windows.x.motif
From: vijay@ccd.harris.com (Vijay Ruhela)
Subject: Need help system for X/Motif
Organization: Harris Controls and Compositions
Distribution: na
Date: Thu, 20 Aug 1992 14:20:08 GMT

Hi Netters:

I am lokking for some help system packages for X/Motif
like the Hyperhelp from Bristol Technology.

I heard some names like Galaxy and some more.
if any of u r using one or ur company has something
to offer please let me know at earliest.

Thanks

Vijay
(vijay@ccd.harris.com)
From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
Newsgroups: comp.windows.x.motif
Subject: Re: ListWidget Button3 Select
Date: 20 Aug 92 17:53:16 GMT
Organization: VPI&SU Computer Science Department, Blacksburg, VA

In article <1992Aug19.220011.15008@den.mmc.com> glass@glass.NoSubdomain.NoDomain (Betty Glass (7-2439)) writes:
>Can anyone tell me how to add a single select for a list Widget
>using Button 3 (Right Mouse Press/Release)?  This will be in
>addition to the regular list item selection callback associated
>with a Button 1 (Left Mouse Press/Release). 


To do this you need to add the line:

*XmList.translations: #augment\n\
     <Btn3Down>: ListBeginSelect()\n\
     <Btn3Up>: ListEndSelect()


to your applications resource file.

>--Glass.

---
S Ramakrishnan, CS Dept, McBryde Hall, VaTech
Newsgroups: comp.windows.x.motif
From: hess@swt1.informatik.uni-hamburg.de (Hauke Hess)
Newsgroups: comp.windows.x.motif
Subject: WordWrap possible?
Summary: Is it possible to implement wordwrapped editors?
Keywords: WordWrap, TextWidget etc.
Date: 19 Aug 92 11:10:48 GMT
Distribution: comp
Organization: University of Hamburg, FRG

Hi,

I would like to use the Scrollable TextEditor Widget as a simple text editor
with word wrap. Unfortunately there seems to be no way to accomplish this
by resource since "XmNscrollHorizontal, False" results in a rude linebreaking
at any point, not only at blanks or dashes.

Is there a ShareWare Source anywhere that implements this feature?

Thanks for your help

Hauke
Newsgroups: comp.windows.x.motif
From: bobh@eldar.wr.tek.com (Bob Heath)
Newsgroups: comp.windows.x.motif
Subject: need help with events
Date: 21 Aug 92 18:03:32 GMT
Reply-To: bobh@eldar.wr.tek.com
Distribution: na
Organization: Tektronix, Inc.


I am having some trouble with an application I am writing using motif widgets
on which I would appreciate receiving some advice. The layout of the problem
part of the application looks roughly as follows:

---Form A------------------------------
|-----------Form B------------------|^|
||                                 || |
||                                 || |
||                                 ||_|
||                                 ||X|
||                                 ||X|
||                                 ||X|
||                                 ||X|
||                                 ||X|
||                                 ||X|
||                                 ||-|
||                                 || |
||                                 || |
|-----------------------------------|V|
---------------------------------------

There are two forms, one nested inside the other, and a vertical scroll bar
also contained within the outer form. The scrollbar is attached to the right
side of the outer form and the inner form is attached to the left side of the
scroll bar. All other edges of both the inner form and the scroll bar are
attached to the outer form such that when the window containing the outer form
is resized, the inner form and scroll bar grow or shrink with it.
	
So far so good, but now comes the problem. After each change in window size,
I want to change the size of the scroll bar slider to indicate how much of
the contents of Form B (the inner form) are exposed. There is no 		resize_callback on the scrollbar widget, so instead, I registered an event
to be notified when the size is changed. Part of my problem is that I'm no
sure what event is most appropriate for this application. I've tried:
Exposure, StructureNotify, SubstructureNotify and ResizeRedirect on both
the scrollbar and on Form A (the outer form). In each case except 		ResizeRedirect, the event handler gets called (sometimes more than once, but
thats ok) and I make the appropriate changes to the slider size via 		XtSetValues (...). The problem is that the new slider size doesn't take
effect until the next resize. In other words, the slider update is always one
step behind reality.

My theory is that the event which causes a redraw of the scroll bar has
already occured by the time my event handler gets called and I make the
slider size adjustment, and therefore doesn't see my change. I'm confused
though as to why my change to the scroll bar via XtSetValues (...) doesn't	generate another event to redraw the scroll bar.

Can somebody please tell me what event I should be using, and how I get the
slider change to appear at the right time?

							Thanks
---------------------- 
Bob Heath
bobh@eldar.wr.tek.com
Tektronix Inc.
503-629-1976
From: jps1741@aw2.fsl.ca.boeing.com (Joseph P. Stegman)
Newsgroups: comp.windows.x.motif
Subject: Multi-line resources in fallback resources
Date: 11 Aug 92 19:48:07 GMT
Organization: none

Is there a way to define multi-line resources in fallback resources?

I've tried:

char *fallbacks[] =
{
"*foo.labelString:	multi\n\
line\n\
label",
NULL,
};

and

char *fallbacks[] =
{
"*foo.labelString:	multi\nline\nlabel",
NULL,
};

Using either of the above, the label says "multi".

Any ideas??

Joe

-- 
-- Joe Stegman                 |     Voice: (206) 234-2432                 --
\  Boeing Commercial Airplanes |  Internet: jps1741@aw300.fsl.ca.boeing.com /
/  P.O. Box 3707, M/S 66-04    |Boeing net: jps1741@aw300                   \
-- Seattle, WA  98124-2207     |      UUCP: ..!uunet!bcstec!aw300!jps1741  --
From: mm@risc4.mi.Uni-Koeln.DE (Martin Malich)
Subject: Re: XmMessageBox - only one Button needed
To: eckstein@bean.ISD.Uni-Stuttgart.DE (knut eckstein )
Organization: Regional Computing Center, University of Cologne, F. R. Germany
Date: Mon, 17 Aug 92 11:36:36 GMT


Hello Knut,

there exists an easy way to hide other buttons in dialogs:


void HideButtons( Widget w )
{
  Widget button;
  
  button = XmMessageBoxGetChild( w, XmDIALOG_CANCEL_BUTTON );
  XtUnmanageChild( button );
  button = XmMessageBoxGetChild( w, XmDIALOG_HELP_BUTTON );
  XtUnmanageChild( button );
}

This will work well.

Martin Malich



--
Martin Malich

Universitaet zu Koeln
Mathematisches Institut
Lehrstuhl Prof.Dr.A.Bachem
Weyertal 86-90
5000 Koeln 51
Germany
From: nandraj@unisql.UUCP (Nandraj Arni)
Newsgroups: comp.windows.x.motif
Subject: How to get names(char*) of colors and fonts?
Date: 17 Aug 92 22:44:00 GMT
Reply-To: nandraj@unisql.UUCP (Nandraj Arni)
Organization: UniSQL, Inc., Austin, Texas, USA


     I could not find a direct or indirect way to find names (char*)
of fonts and colors. I was able to set it but not get it. Does 
anyone has any clue/solution/ideas? Here is what I tried to get the
font name.......


First method:

>>>>>>>>>-------------------------------------------------------------
char* get_font(Widget w)
{
  XmFontList fontlist = NULL;
  XmFontContext context = NULL;
  XmStringCharSet* charset = NULL;
  XFontStruct **font = NULL;
  unsigned long name;

  XtVaGetValues(this->widget, XmNfontList, &fontlist, NULL); 
  
  if (XmFontListInitFontContext(&context, fontlist)) {
    while(XmFontListGetNextFont(context, charset, font)) {
      if (font && *font) {
	XmFontListFreeFontContext(context);
	return(XmGetAtomName(XtDisplay(this->widget),
			     (*font)->properties->name));
      }
      XtFree(charset);
    }
    XmFontListFreeFontContext(context);
  }
  XmFontListFree(fontlist);
  return(NULL);
}
>>>>>>>>>-------------------------------------------------------------


Here is another try (also a failure..)

>>>>>>>>>-------------------------------------------------------------  
char* get_font(Widget w)
{
  return(XmGetAtomName(XtDisplay(w), XA_FONT_NAME));
}
>>>>>>>>>-------------------------------------------------------------


Thanks for any help.....

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

UniSQL, Inc.                           Voice: 512 343 7372 Ext. 107
9390 Research Blvd.                              Home: 512 794 9386
Kaliedo II			   	          FAX: 512 343 7383
Austin, TX 78759

Email: unisql!nandraj@cs.utexas.edu
*******************************************************************
From: mblum%asylum.cs.utah.edu@cs.utah.edu (Michael Blum)
Newsgroups: comp.windows.x.motif
Subject: Setting geometry resources for child widgets.
Date: 19 Aug 92 20:03:46 GMT

Hi,
Organization: University of Utah CS Dept

I want to be able specify the location of popup dialog boxes, but I
can't figure out how to set the resources to accomplish this.  I can
set other attributes (color, etc) so i know my path is correct.

For instance:

Foo*Dialog*background: blue	! works
Foo*Dialog*geometry: +0+0	! Does Not Work

What can I do about this?  Please e-mail your responses.

-Mike Blum
mblum@cs.utah.edu
From: deveau@oceanroutes.ns.ca ("Terry J. Deveau")
Newsgroups: comp.windows.x.motif
Subject: invoking a popup menu
Date: 21 Aug 92 14:26:57 GMT
Distribution: inet
Organization: Oceanroutes Canada Inc.

I want to popup a menu in three ways: by <Btn1Up> on a pushbutton, by 
<Key>space on the pushbutton, and by <Key>Return on the pushbutton.  
This is working fine via an event handler which catches these events.

I also want the menu to popup in keyboard traversal mode (as opposed to
mouse drag mode).  Keyboard traversal mode is the default for a menu
pulled down from a menu bar, but mouse drag mode is the default for
a popup menu; unless the popup is activated via an accelerator.

I am using <Key>Return as an XmNmenuAccelerator in an XmMENU_POPUP
XmRowColumn widget.  This works fine.  What I want to do is invoke
the action that switches to keyboard traversal mode for the other
two ways to popup the menu also.

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 <Btn1Up> 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 <Btn1Up> 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 name of the relevant action procedure, I could call it.
Does anyone know the name, or where I can find it?

I am using Motif 1.0, X11R3, HP-UX 7.00 on an HP 9000/834.  Any ideas?

Newsgroups: comp.windows.x.motif
From: garbett@utkvx2.utk.edu (Garbett, Shawn)
Subject: Text Field
News-Software: VAX/VMS VNEWS 1.41    
Organization: University of Tennessee Computing Center
Date: Thu, 20 Aug 1992 19:08:00 GMT

Has anyone mad a text modifier or a Motif Text Field Widget to do
overstrike mode? I support a user base of about 30 people who
are used to old block mode editors using overstrike and they
are complaining about always being in insert mode. Personally
I think the higher functionality of X this is unnecessary, but
these users are set in their ways.

Shawn 
Garbett@utkvx.utk.edu
Newsgroups: comp.windows.x.motif
Subject: FMS to MOTIF conversion in EZ stages
From: higginsp@mdcbbs.com
Date: 16 Aug 92 16:34:58 GMT
Organization: M&E (Division of EDS), Cypress CA
Nntp-Posting-User: higginsp


Help!

    I am trying to port a VMS application to ULTRIX and need to convert
    hundreds of FMS forms to run on the applcation.  Is there any way that
    anyone knows to convert FMS to some type of MOTIF calls.  I know that
    you can convert FMS to DECForms  and I thought that as DECForms is a
    standard it may be feasible to use this as a basis for a conversion to
    MOTIF routines.  The dialogue between the programs and the forms is
    managed by a separate application.


I am most interested in packages for the conversion from FMS to MOTIF but other
avenues/suggestions would also be useful?

Paul Higgins
From: felix@laas.fr (Francois Felix INGRAND)
Newsgroups: comp.windows.x.motif
Subject: Re: Multi-line resources in fallback resources
Date: 15 Aug 92 13:55:04 GMT
	<1992Aug13.112607.1230@sci.kun.nl>
Organization: LAAS-CNRS France
In-reply-to: ronald@cs.kun.nl's message of 13 Aug 92 11:26:07 GMT


   Try this:

   char *fallbacks[] =
   {
	   "*foo.labelString: multi\\nline\\nlabel",
	   NULL,
   };

   works perfectly.

   Ronald

On a similar subject here is a tip to make your life easier with fallbacks.

There is small utility (shell script) called ad2c (by George Ferguson,
ferguson@cs.rcohester.edu) which will take your .ad file and transform it in a
sequence of strings parsable as a fallback.

I always put all the .ad  file as fallback using this script (better safe than
sorry if the end user start up without a default and your application *need*
one...) .
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Francois Felix INGRAND                   "Read my Lisp... No new syntax" (nil)
LAAS/CNRS: felix@laas.fr      "La guerre, qu'on voit danser le long des golfes
ACS Technologies                     clairs, a des reflets d'argent" (Anonyme)
Newsgroups: comp.windows.x.motif
From: markmc@sierra.com (Mark McWiggins)
Subject: How to set width of an OptionMenu?
Organization: Sierra Geophysics Inc.,  Kirkland, Wa
Date: Thu, 20 Aug 1992 19:25:44 GMT

I'm trying to make an OptionMenu wider so that it matches some other 
components in a window, but I don't see how to do it.

I've tried

	(1) just setting the 'width' resource for the menu
	(2) setting the width resource for each of the individual buttons
            in the menu
 	(3) various combinations of (1) and (2) with various combinations
	    of the RowColumn 'packing' resource

None of these works.  The menu always is wide enough to allow the longest
text string in a button label to fit.

What am I missing here?  Thanks in advance for any help.


--
Mark McWiggins           +1 206 822 5200x377 days      Box 31356
markmc@sierra.com        +1 206 632 1905 24 hrs.       Seattle WA 98103-1356

Newsgroups: comp.windows.x.motif
From: baldwa@ondine.adobe.com (Sanjay Baldwa)
Subject: Problem with tab group traversal
Reply-To: baldwa@adobe.com
Organization: Adobe Systems, Mountain View, CA, USA 
Distribution: usa
Date: Fri, 21 Aug 1992 00:03:45 GMT

I have a custom dialog which looks something like this(I have a rough uil
file for it)

           Form				Form : XmForm {
     ------------------                   arguments {
    |   RC1  |   RC2  |			    XmRowColumn RC1;
    | ------ | ------ |                     XmRowColumn RC2
    ||  A1  |||  B1  ||                   };
    | ------ | ------ |                 };
    ||  A2  |||  B2  ||                 RC1 : XmRowColumn {
    | ------ | ------ |                   arguments {
    ||  A3  |||  B3  ||                     XmText A1;
    | ------ | ------ |                     XmText A2;
     -----------------                      XmText A3;
                                          };
                                        };

RC2 is defined in the same way as RC1.
The problem is that when I hit TAB, the focus moves from A1 to B1 then to
A2 and then B2 and so on. I want to go from A1 to A2 to A3 and then B1 to
B2 then B3. What is going on? I thought that would be the default behavior.

I am using Motif 1.1.4, X11R4 on DEC5000.

Thanks,

Sanjay
--
baldwa@adobe.com  or  ..!decwrl!adobe!baldwa