HDTenEightyP/NetNews huggingface dataset:
From: mmf@evolving.com (Mark Frazier)
Newsgroups: comp.windows.x.motif,comp.windows.x
Subject: Re: OPEN INTERFACE ?
Date: 2 Sep 92 17:50:50 GMT
Organization: Evolving Systems, Inc.

Well, pardon me for interrupting, but I thought I'd try to answer
the original question. I thought I'd posted one last weekend, but
in my frustration with the package, I must have hit "q" instead of
"p"

We've been using OIt for 3 weeks now. Here's my summary of feelings about it.

	There is a bug in the OpenEditor which causes your ".dat" file to get
	trashed periodically. It seems that saving on a regular basis is the
	way to avoid it. After much frustration, I got the rep on the phone,
	who admitted "yes, there is a bug in the editor (only one?), don't
	do too much cut and pasting".

	When your ".dat" file gets trashed, you cannot open the library in the
	editor to continue working. You get and error which says something like
	"an error has occurred in your appliction". Very useful. The documentation
	does not lend a clue as to what to do here. The rep told me to run
	"rescomp" on the ".rc" files, which are the objects generated by the
	editor. THis will build a new ".dat" file. Of course, if you don't list
	the ".rc" in the right order, it doesn't work, and error messages are
	completely useless to you as a user. Sorry, but messages like:

		"rescomp failed at line 395 in err.c"

	don't help me a whole lot.

	I'm very biased towards SUN workstations, Xview, and the Guide GUI
	builder, which I've used for quite awhile. OpenEditor is not as good
	as guide. There is now way to "link" your windows/menus together for
	actions like you can do in Guide. You have to go into the generated
	code to get it to actually invoke your windows.

	I will say the API seems more logical and easier to use than what I'm 
	used to in Xview or Xlib.

	The package costs $7000! There is also a runtime licensing fee. The
	documentation sucks (except for the API document). For 7 grand, I
	would expect something that doesn't look like it was written in nroff
	and printed on a impact printer. Compare this to the docs which come
	with Microsoft C, for ~$350. There are typos in the API document. 
	Things like:

		TED_SetFgColor:
			Gets the foreground color of a TED widget. 
			related commands: TED_GetFgColor.

	Unfortunately, I only have Guide to compare with. I don't know what the
	other GUI builders are like for the PC which cost 3-6 times less.

	If I've slightly mis-used any terminology, Spelled acronyms wrong,
	or any other subtle errors, please direct flames to:

			comp.nerd.getalife

MMF

My views on this package are my own, and do not reflect those of ESI.
Newsgroups: comp.windows.x.motif
From: armin.kuepfer@alcatel.ch (Armin Kuepfer)
Subject: Re: Help with RowColumn alignment
Keywords: RowColumn
Organization: chx400.switch.ch
Date: Mon, 31 Aug 1992 07:34:17 GMT



> Now the Text widgets are of the correct width, but the Labels 
> no longer line up with the Text widget that they refer to...

Use the following .Xdefaults settings:
(out of HPs book 'Visual Design with OSF.Motif)

*XmTextField.marginHeight:            	2  !# same as PushButton
*XmText.marginHeight:                	2  !# same as PushButton

Newsgroups: comp.windows.x.motif,comp.windows.x
From: bharat@ces.cwru.edu (M R Bharat)
Subject: Text widgets do not resize
Organization: Case Western Reserve University
Date: Thu, 27 Aug 92 18:07:51 GMT

Hello,

In my motif application, I have a problem with my resizing events.
The widget hierarchy is like this:

	Form widget
	   ....
	   ScrolledWindowWidget
	       RowColumn
	            Form
		    Form
		    .....

The number of form widgets varies dynamically and each form widget has
     2 label gadgets and a text widget.

Now the problem is when I resize my main window only my scrolled window
resizes.  The rowcolumn, form and the text widgets do not catch the resize
event, and eventually my single line text widget does not resize. 

This is a similar program to that of the one in the Motif programming 
Manual Volume six of O'Reilly, which exactly works the way I want it.
The difference is that the above program uses toplevel shell as the
parent for the scrolled window whereas my program uses a form widget 
as the parent and I have a form widget above and a frame widget below 
the scrolled window.

Prakash

lilbit!prakash@skybridge.scl.cwru.edu
(216) 371 9777






Newsgroups: comp.windows.x.motif,comp.lang.ada
From: garym@telesoft.com (Gary Morris @pulsar)
Subject: Mailing list for TeleUSE users established
Reply-To: teleusers-request@telesoft.com
Organization: TeleSoft, San Diego, CA, USA
Date: Fri, 28 Aug 1992 20:13:01 GMT

TeleUSErs Mailing List
______________________

TeleSoft has established the TeleUSErs Internet mailing list
to promote the interchange of technical information, examples,
tips, etc., among the users of TeleUSE.  The TeleUSErs mail
group is unmoderated.

To send mail to everyone on the list, use the following address:

                     TeleUSErs@telesoft.com

To add or remove your name from the list, send mail to:

                  TeleUSErs-request@telesoft.com

TeleUSE Technical Support Center:

To receive a formal response from TeleSoft, continue submitting
inquiries and suggestions via the TeleUSE Email bug report tool.

--
Charlie Counts               Internet:  guisupport@telesoft.com
Director, TeleUSE Services   Phone:     619-457-2700
Newsgroups: comp.windows.x.motif
From: dave@eagle.smec.Sony.COM (David Jarrin)
Newsgroups: comp.windows.x.motif
Subject: +++ Help with menu pulldowns!
Date: 31 Aug 92 12:29:03 GMT
Distribution: inet
Organization: The Internet



Greetings!

I would like to respectfully request your help with managing pulldown menus.
My name is David and I am relatively new to Motif Programming. I am pretty
familiar, however, with the general workings of "menus" in Motif. I am
currently working with X11R5 and Motif 1.1.4 on a SUN-SPARC2.

First a little background: I create my pulldown menus in a structure like this,

     MenuBar ---> CascadeButton --> PulldownMenu --> PushButton(s)

Then I setup a "mnemonic" in my CascadeButton to allow me to "pulldown" the
menu either with the mouse or by pressing some "Meta-?" key press combination.

This works great as long as my "Pointer" (i.e. my mouse pointer) remains 
within the application window where the pulldown menu resides. As you probably
already guessed, my problem arises when I move my mouse pointer to a different
application window.

I have tried seting up translations and I am able to "XtManageChild" the menu,
but all the wonderful functionality that the CascadeButton automatically 
handles is gone (i.e. the behavior of my menu is very primitive and I would
have to do quite a bit of coding to try to imitate what the CascadeButton does).

I also tried sending an XEvent to the CascadeButton to make it think that a 
mouse click was executed, but I did not have much luck. Maybe I just did not 
doit right. Sending X events is my weak point.

I tried a couple of other things but I got nowhere.

I would really appreciate it if you could give me some clue as to how to solve
this "puzzle", and from now I thank you for taking the time to read this.

Regards!

David Jarrin
SONY Medical Systems
dave@smec.sony.com
From: pradeep@mercury.cs.umbc.edu (pradeep goel)
Newsgroups: comp.windows.x.motif
Subject: Text/TextField Widgets in Overwrite mode
Date: 1 Sep 92 22:07:08 GMT
Distribution: usa
Organization: University of Maryland Baltimore Campus, Computer Science Department

Is there a way that you can use text widgets in overwrite mode
as opposed to insert mode which is the default?

Also, if a user has typed in a <key> and I would like to store the
character in a data structure without displaying it how would I do that?

Any suggestions are welcome.

Thanks
.
From: meeks@osf.org (W. Scott Meeks)
Newsgroups: comp.windows.x.motif
Subject: Re: XmList partial hilite of item?
Date: 2 Sep 92 15:28:24 GMT
Distribution: inet
Organization: The Internet

>Date: 31 Aug 92 20:53:54 GMT
>From: newsgate.watson.ibm.com!yktnews!admin!dv2t1!shmdgljd@uunet.uu.net  (Jay Schmidgall)
>Is it possible* to select part of an item in an XmList?  That is, I have a
>list with say 20 items in it.  I would like to select or have highlighted
>just the 5th through 12th characters of the second item, for example.

This is basically impossible.  However, if all you want to be able to do is
somehow distinguish characters within the text of an item, and you only
need to be able to do this from within the application (in other words, the
application selects the text but not the user) then it is possible.  

Remember that items in a list are XmStrings.  This means that you can break
an item into substrings and specify different fonts for each substring.  So
to make this more concrete, you're application could take the XmString for
the second item in the list, break it into substrings, construct a new
XmString containing a segment consisting of the 5th through 12th characters
with a bold font specified, and replace the second item with this new
XmString. 

Hope this helps.  Let me know if you have anymore guestions.

W. Scott Meeks           
Open Software Foundation 
meeks@osf.org            
(617) 621-7229           
Practice random kindness and senseless acts of beauty.


Newsgroups: comp.windows.x.motif
From: chris@ods.com (Chris Atkins)
Subject: Re: mxgdb - Motif dbx
Organization: Optical Data Systems, Inc.
X-Newsreader: Tin 1.1 PL5
Date: Thu, 27 Aug 1992 16:41:23 GMT

We finally resorted to xxgdb and do not have any problems.  xxgdb is an athena
interface to gdb and handles code compiled with gcc.

Chris Atkins
chris@ods.com
From: prevot@smrsu1.slb.com
Newsgroups: comp.windows.x.motif
Subject: Scrollbar focus
Date: 27 Aug 92 14:34:59 GMT
Organization: Schlumberger Industries ( SMR )
Originator: prevot@smrsu1

Hi,

I'm running Motif 1.1.3 and a click with the LMB on a scrollbar
modifies the focused widget ( LMB on a scrollbar is supposed 
to generate a 'next-tab-group' action )

Is there a way to control the scrollbar behaviour to keep the 
focused widget ?

Thanks by advance 

Frank.

reply on group or better by email to me :

prevot@envvx1.sinet.slb.com
prevot@smrsu1.smr.slb.com
From: tmod@ccvax.ucd.ie
Newsgroups: comp.windows.x.motif
Subject: SCO upgrade and X11R5
Date: 2 Sep 92 11:45:38 GMT
Organization: University College Dublin

 Sorry if this sounds simple,
        I have SCO Unix 3.2.2 with ODT 1.0.1 and I'm considering updating to
 SCO Unix 3.2.4 just so I can compile X11R5. My applications at present are
 running under the X11R3 and Motif 1.0 from the development system. But if I
 upgrade at a large cost and compile X11R5 will my Motif release still be compatible ??  Is this worth the trouble ??

 One more thing ... How come SCO's Open Desktop still only supports X11R3 ???

                         Terrence O'Donnell.

				tmod@ccvax.ucd.ie or paulk@elecmag3.ucd.ie
Newsgroups: comp.windows.x.motif
Subject: Re: Text manipulation in a Drawing Area
From: perrier@cih.hcuge.ch (Perrier Rene)
Date: 27 Aug 92 09:28:30 +0200
Distribution: inet
Organization: University Hospital of Geneva, Switzerland

In article <9208260306.AA01932@laurie.smec.sony.com>, lr@laurie.smec.Sony.COM writes:
> I am new to Motif programming, and am trying to test different
> possible applications.  One application is annotation of images.
> I would like to be able to place a line of text on an image.  I
> would then like to be able to select that text and move it to a 
> different location.  I would be satisfied in keeping the line(s)
> together and not allowing the separation of text.  I'll save that
> for another day.
> 
>  - I thought of creating a widget for the text and placing that over
> the image, but I do not know how to make the background of the widget
> transparent so that only the text shows.  Is this possible?
> 
>  - Could just the text be an overlay? 
And what about considering the problem from an oposite view, i.e. could the
image be in the background (and the text in the foreground) ?

Answer is yes. You can put your image (pixmap) in the background pixmap of
your Drawing Area, just keep a list of (string, position) structure in your
program and in the ExposeCallback of your Drawing Area, just draw every string
at its corresponding position. i.e.

for(i=1, i<nbStrings;i++)
  XDrawString(display, XtWindow(myDrawingArea), gc, list[i].postion.x,
              list[i].position.y, list[i].string, strlen(list[i].string)

If you need to move or erase a string you can either update your list, clear the entire window (XClearArea(dsp, w, 0, 0, 0, 0, True)) which will generate an expose event and thus call your ExposeCallback which will redraw with your list updated, either just clear the part corresponding to the string your want to erase (nicer, because less flashing, but you need to compute exactly the area you want to clear).

You don't need to care about your image, because the server will do this job for
you, and if you need to update your image, just

XtVaSetValues(myDrawingArea, XmNbackgroundPixmap, myNewImage, NULL);
XFreePixmap(dsp, myNewImage);


> lr@smec.sony.com
> sony medical
> montvale,nj
> (201)358-4988

Hope this help.
			Rene Perrier

#####################################################################
Rene Perrier                             e-mail: perrier@cih.hcuge.ch
Digital Imaging Group (U.I.N)
Computer Science Department (C.I.H)     ##   ##      ###       #   ##
University Hospital of Geneva            #   #       ##       # #  #
24, rue Micheli-du-Crest                ##  ##       #        # # #
CH-1211 Geneve 14                       #   #       ##       #  ##
Switzerland                            ##  ##      ##       #   ##
tel.: +41-22-3726268                   #####  ##  ###  ##  ##   #
fax : +41-22-3726198
#####################################################################
Newsgroups: comp.windows.x.motif
From: roberts@studguppy.lanl.gov (Doug Roberts)
Subject: Mxgdb1.1.4 bug
Organization: Technology Modeling and Analysis, LANL-A7
Date: Fri, 4 Sep 1992 16:08:32 GMT

Hello all. 

Thought I'd report a bug in mxgdb version 1.1.4. 
(Sun SPARC, SunOS 4.1.1, X11R5p12, Motif 1.1.4)

When inserting a break in a for loop, i.e.:

for (count = 0; count < num_processes; ++count)
        {
                Foundry *foo = new Foundry;
--> Break Here  printf ("Fubar\n");
        }

stepping through the loop doesn't work. You can step through the first
time, but then the break is deleted and the loop runs to completion.

This same problem does _not_ exist in xxgdb version 1.06.

--Doug
--

==================================================================
Douglas Roberts                |
Los Alamos National Laboratory | All good work is done in defiance
dzzr@lanl.gov                  |  of management. -- Bob Woodward
(505)667-4569                  |
==================================================================
From: english@alicudi.usc.edu (Joe English)
Newsgroups: comp.windows.x.motif
Subject: Style Guide question -- What to do with 'Open'
Date: 2 Sep 1992 14:04:18 -0700
Organization: Nerds of Action
Distribution: world
Reply-To: joe@trystero.art.com
NNTP-Posting-Host: alicudi.usc.edu
Keywords: motif style-guide file-menu open



In the Motif Style Guide (release 1.1, p 4-19 and 7-35), the
description of the 'Open...' option in the 'File' menu says
that:

    [The Open operation] Must open an existing file. The 
                                      ^^^^^^^^
    Open operation must prompt the user for the name of the file 
    with a DialogBox.  [... details on saving changes, what to do
    with title bar, mnemonic must be 'O'...]


I'm assuming that a FileSelectionBox counts as a DialogBox here.

It does *not* say what to do if the user wants to open a
*new* file, but give it a name.   The description of the
'New' operation doesn't seem to allow the user to enter a
filename (in Mac terms, it looks like it should create an
'Untitled' document).

Since the user might want to enter a filename before using
Save/Save As..., would it be legal for the Open operation
to accept a filename which doesn't exist?  Or should this
be an error condition?


Thanks,

--Joe English

  joe@trystero.art.com
Xref: sparky comp.windows.x.motif:5893 comp.windows.x:15810
From: grp@Unify.com (Greg Pasquariello)
Newsgroups: comp.windows.x.motif,comp.windows.x
Subject: Re: OPEN INTERFACE ?
Keywords: OPEN INTERFACE GUI developer
Date: 28 Aug 92 15:22:35 GMT
Organization: Unify Corporation (Sacramento)

In article <matt.714948978@centerline.com>, matt@centerline.com (Matt Landau) writes:
> 
> In <914ep5z@Unify.Com> grp@Unify.com (Greg Pasquariello) writes:
> >I actually looked at Solbourne's OI about two years ago when it was in beta.  
> >It was quite impressive, but we decided to go with an intrinsics based toolkit
> >instead, mainly because the company was new at this GUI stuff. 
> 
> But neither OIT nor Galaxy *is* and instrinsics-based toolkit!  Like 
> OI , they both reimplement the X11 gui styles on top of Xlib.  I'm not 
> sure what they do on other platforms.
> 
> Or did you mean that you changed your minds about the requirement 
> for an intrinsics-based toolkit?

No.  For out last project, we looked at OI (Solbourne).  We decided instead
to take an intrinisix based approach, and implemented out software with
widgets.  Our latest project, currently in development, uses Galaxy instead.
We learned from our last mistake :-)

Galaxy has been a boon to us.  Our productivity using Galaxy has *soared* 
above our productivity using OLIT/Motif.  And, we can run on Windows!

-- 

--
Greg Pasquariello   	grp@unify.com 	        Sometimes you're the windshield
Unify Corporation	   or			Sometimes you're the bug.
(916) 928-6258	    ...!uunet!unify!grp
Newsgroups: comp.windows.x.motif
From: frite@vlsi.polymtl.ca (Michel Besner))
Subject: Changing PanedWindow's tiled format
Organization: Ecole Polytechnique de Montreal, lab. INFO
Date: Wed, 26 Aug 1992 14:18:06 GMT



	Hi there !

		Is it possible to get PanedWindow to lay out children
in a HORIZONTALY tiled format ? I need two frames side by side and
I want to allow the user to resize the two frames with a PanedWindow
or anything similar to it.

	Any suggestions is appreciated :) :)


				Michel Besner, eng.
				Sacred Heart Hospital 
				research center
				Montreal
				mbesner@iris1.metal.polymtl.ca



	"life is a big bowl of Jell-O :) :) ! "
From: qualtrak@netcom.com (Qual Trak)
Newsgroups: comp.windows.x.motif
Subject: HelpCallbacks under SUN or Overriding <Key>: translations
Keywords: HelpCallback Motif SUN XtOverrideTranslations
Date: 1 Sep 92 19:11:08 GMT
Reply-To: jb@QualTrak.COM
Distribution: usa
Organization: QualTrak Corporation

I'm trying to hook help callbacks into my Motif application (I'm
running Quest Motif v1.1.4 under X11R5 on SunOS 4.1.2) and I'm
encountering a few problems.  After banging around with no effect as to
why my XmNhelpCallback callbacks were being called I found in Heller's
book (O'Reilly vol 6) on page 667 as a footnote:

    "By default Sun workstations do not generate the proper event when
     the Help key is pressed.  Your mileage may vary with other
     computers."

So I tried playing around and found I could explicitly override the
translations of a widget with a call to XtOverrideTranslations ().  I
used the following code 

    static XtTranslations h_trans;
    static char HelpTranslations [] =
        "<Key>Help: PrimitiveHelp()";
    static int initialized = False;

    if (!initialized)
    {
        h_trans = XtParseTranslationTable (HelpTranslations);
        initialized = True;
    }
    XtOverrideTranslations (w, h_trans);
    XtAddCallback (w, XmNhelpCallback,
                   (XtCallbackkProc) my_help_callback, help_name);

I got an error about not being able to find the action (PrimitiveHelp())
but when I pressed a button, the help routine was called. I think I can
get rid of the warning message by using Help() instead of
PrimitiveHelp().  My basic question is that I would like to be able to
specify the help action in the resource database but I can't get this to
happen (I've encountered this before when I had a Widget I wanted to get
the <Key>Return action on.  I had to use the technique shown above.  In
that case I could get every key BUT the <Return> key.

So I guess what I'm asking is

    1.  Is there a clean way to get the help callback functionality
	    under SunOS.

    2.  Why can't I override keyboard translations in the Resource
	    Database instead of having to hardcode it with an
        XtOverrideTranslations call?
------------------------------------------------------------------------
John Birchfield - QualTrak Corp (408) 730-2674 Home (408) 736-3852
jb@QualTrak.COM
------------------------------------------------------------------------
Newsgroups: comp.windows.x.motif
From: dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC)
Subject: PS. problems with BulletinBoard subclass
Reply-To: dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC)
Organization: Goddard Space Flight Center
Date: Mon, 31 Aug 92 12:23:02 GMT



-- 
Oh I forgot to mention. I am running Motif 1.1.4 on a sun sparc 1+
running sunos 4.1.1 and X11r4 patch level around 18-17 or so.

(i am not positive about the patches)

Brian
Newsgroups: comp.windows.x.motif
From: bagchi@eecs.umich.edu (Ranjan Drzzzzt!  Bagchi)
Subject: freezing height/width
Organization: Recreational Creationists, Inc.
Distribution: comp
Date: Fri, 4 Sep 1992 16:08:34 GMT


	Motif Gurus --

	I'm wondering if there's a way to freeze the height of my Motif
app so that the window's height can't be changed from outside
the program.

	I've tried making the XmNheightInc resource something huge, but that
ends up shrinking my height to zero.  Any other ideas?

	-rj
--
Ranjan Bagchi:   Di.sigsgvirusuise                 Ranjan.Bagchi@umich.edu
oo   oooo  o oo   ooo oo oo   oo       o o  oooo ooo o       o        oooooooo
Newsgroups: comp.windows.x.motif
From: dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC)
Subject: problem subclassing off BulletinBoard for RectObj Children
Keywords: widget RectObj Motif BulletinBoard
Reply-To: dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC)
Organization: Goddard Space Flight Center
Date: Mon, 31 Aug 92 12:21:05 GMT



-- 

Hi, I have written a container widget which I would like to make a subclass ofd
XmBulletinBoard. The widget accepts RectObj subclasses as children and maintains
stacking order for them and distributes events to the children. As a child of 
Bulletin Board I get the following feedback from dbx after it dumps core.

warning: object file read error: text address not found
ConvertATranslation() at 0xf7791778
XtInstallAccelerators() at 0xf7791d7c
`Manager`ConstraintInitialize() at 0x23764
CallConstraintInitialize() at 0xf77759a0
CallConstraintInitialize() at 0xf7775978
CallConstraintInitialize() at 0xf7775978
_XtCreate() at 0xf7775d28
_XtCreateWidget() at 0xf7775f80
XtCreateWidget() at 0xf7776010
XtCreateManagedWidget() at 0xf7776034
main() at 0x2ac0

this occurs when I add an RectObj subclass to the container. It takes widget children fine.  I have the code segment in my manager widget which says:
#ifdef X11R4_INTRINSICS
static CompositeClassExtensionRec ext;

ext.next_extension = NULL;
ext.record_type = NULLQUARK;
ext.version = XtCompositeExtensionVersion;
ext.record_size = sizeof(CompositeClassExtensionRec);
ext.accepts_objects = True;
genManagerClassRec.composite_class.extension = (XtPointer) &ext;
#endif

I got this from the athena tools plotter widget and it worked 
fine until I switched from subclassing off constraint to BulletinBoard.

A friend says this is a problem with Bulletin Board (or maybe XmManager).
Anybody know about this? any info will be greatly appreciated. Thanks
				   Brian Dealy
dealy@kong.gsfc.nasa.gov
Newsgroups: comp.windows.x.motif