HDTenEightyP/NetNews huggingface dataset:
From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
Newsgroups: comp.windows.x.motif
Subject: Re: two processes with one window?
Date: 21 Dec 92 21:57:04 GMT
Organization: VPI&SU Computer Science Department, Blacksburg, VA

In article <1992Dec18.144058.20973@walter.bellcore.com> john@bivalve.bellcore.com (John Snow) 
writes:

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

Its indeed possible to fork and have the child take care of a portion of the drawing area.
However, the child should not access the same display connection (ConnectionNumber(display))
as the parent. Otherwise, your processes will hang.

That is, the child must open the display afresh. The parent and the child *should not*
share the widget tree, since widget points to the ConnecionNumber. That is, 
the child had better be a separate program, managing the drawing area using Xlib 
calls alone, after opening the display. Prior to forking, you may store the window id of 
the drawing area and the (x,y,width,height) of the section that the child needs to 
manage in a rootwindow property and have the child access it after it comes up.

Unless the drawing/repainting of the drawing area is unusually complex, the gain in
execution efficiency does not warrant the yucky implementation that
is bound to result with the use of forking.

  >	John Snow

---
S Ramakrishnan, CS Dept, McBryde Hall, VaTech
From: dsriniv@uoft02.utoledo.edu
Newsgroups: comp.windows.x.motif
Subject: Label Widget HELP!!
Date: 29 Dec 92 16:53:36 EST
Organization: University of Toledo, Computer Services

I am learning X-Windows (Motif) and trying to change the 
resources of a label widget for a simple sample program
which just displays the label in a window. I am trying
to center the label string (which is of 3 lines) where
each line should be in the center of the window. But it is
getting left justified. I also don't know where to keep
the resource file for my label widget i.e which directory.
I am working on X in Silicon Graphics. I know it is a trivial problem but My present knowledge in X is ver y little. If somebody has the time to telll me what I should do, I will be very happy
Thanks in advance
Vasu
E-Mail: sdurgava@spider.occ.uc.edu
From: dim@couette.ama.caltech.edu (Daniel I. Meiron)
Newsgroups: comp.windows.x.motif
Subject: caps lock on sparc stations
Date: 23 Dec 92 16:50:46
Organization: California Institute of Technology
Distribution: comp
NNTP-Posting-Host: couette.ama.caltech.edu

We are running motif under X11/R4 and we noticed that the caps lock
LED on a sparc station elc will not light when the caps lock is
pressed.  Someone mentioned that a patch exists to the Sun X server to
remedy this situation. Does anyone know which patch this is and where
it can be found? Any pointers would be appreciated.

Thanks, Dan Meiron


Newsgroups: comp.windows.x.motif
From: daniel@juliet.osf.org (Daniel Dardailler)
Subject: Re: HELP!  I'm having a problem with XmScale Widgets
Organization: Open Software Foundation, Motif Team
Date: Mon, 21 Dec 1992 14:36:39 GMT

 
|> I can use XtSetSensitive to make the widget read-only, but then the title string is grayed out.  Supposedly this can be changed with the stipple-bitmap, but I have been unable to find a resource to set this....  Also, how do you get tick marks on the scal|> e? 
 

First the sensitivity.

If you want to gray only the scrollbar out, you need to write some code.
Something like:

void SetScrollBarSensitivity (Widget scale, Boolean sensitive)
 {
    Arg args[4] ;
    Cardinal n ;
    Widget * children ;

    n = 0;
    XtSetArg (args[n], XmNchildren, &children);  n++;
    XtGetValues (scale, args, n);

    XtSetSensitive(children[1], sensitive);
 }

has to be called whenever you do a SetValues on the scale.
(this is a bug, scrollbar sensitivity should only be reset to
the scale one when the later is changed - I'll fix that asap).

Now for the tick marks.

Scale is a manager widget, which automatically creates 2 children : a title
and a scrollbar, and let you add as many application children as you want,
by layouting them in an evenly spread out way along the scrollbar.

So if you want scale tick marks, you can either add N separator gadgets or 
widgets to the scale, or 1 drawing area where you could draw you're own
marks.


Newsgroups: comp.windows.x.motif
From: daniel@juliet.osf.org (Daniel Dardailler)
Subject: Re: Another Form Question
Keywords: Form
Organization: Open Software Foundation, Motif Team
Date: Mon, 21 Dec 1992 14:57:36 GMT

  
|>              ___      ___
|>             | F | -> | S |
|>             | S | <- | L |
|>              ---      ---
 
Another couple of nice pictures that helps understand the will of the
programmer but not his/her problem.

Motif Dev Commandment #1:  *void is the Form question without sample code*
Newsgroups: comp.windows.x.motif,comp.window.x.intrinsics,adobe.ask-a-guru
From: daniel@juliet.osf.org (Daniel Dardailler)
Subject: Re: Wanted: Horizontally paned window widget?
Organization: Open Software Foundation, Motif Team
Date: Wed, 23 Dec 1992 15:31:03 GMT

"Motif the next major release" will have that functionality.
From: avinash@sam.contex.com (Avinash Chopde)
Newsgroups: comp.windows.x.motif
Subject: Is it possible to get at FileSelectionBox PushButtons?
Date: 30 Dec 92 20:23:36 GMT

For some strange reason (:-)), I need to make the pushbuttons
on the FileSelectionBox widget respond to Button 2.

Assuming I only have a FSB in some application, I thought this would
work:
*XmPushButton.translations: #override\
	<Btn2Down>,<Btn2Up>:	Activate() Disarm() \n\
	<Btn2Down>:	Arm()

But, looks like the FSB widget does not contain XmPushButtons (or they
are hidden from access).

Is there any way to get at the pushbuttons in a File Selection Box?
Any pointers appreciated...thanks...
-- 
---------------------------
Avinash Chopde         office : 617 246 1776x5582
avinash@contex.com     (...!uunet!contex!avinash)
From: dekeyser@scapin.etca.fr (Jean-Luc Dekeyser)
Newsgroups: comp.windows.x.motif
Subject: Motif UIL vs stand-alone Motif
Date: 22 Dec 92 12:43:28 GMT
Followup-To: benalia@lifl.fr
Organization: Site Experimental en Hyperparallelisme - E.T.C.A. - FRANCE

Greetings,

I'm developping an application using the stand-alone OSF/Motif (with C language), but I've never used the Motif UIL. Since few weeks, we received DEC vuit
(Visual User Interface Toolkit) but it generates only a UIL.
So, can someone help me to answer these questions?

1- Which is better to use: UIL or stand-alone Motif?
2- If answer1 is stand-alone Motif, then is there tools (programs) to translate
   UIL code to stand-alone Motif and vice versa (thus I'll use DEC vuit)?
3- Is there a piblic domain tools like TOOLMASTER-UIM/X, DEC aic, ...
   that generates both UIL and stand-alone Motif?

Any suggestions would be greatly appreciated.

Please E-mail your responses to: benalia@lifl.fr

Thanks.

Akram Benalia.
From: paller@fedunix.org (Alan Paller)
Newsgroups: comp.windows.x.motif
Subject: Demonstration Program Generator Needed
Date: Mon, 28 Dec 92 19:58:06 PDT
Organization: FedUNIX - Open Systems Conference Board - Washington D.C.

Has anyone found a program (free or not) that will let us create a
demonstration of a Motif application?  The application we want to
demonstrate is too large to distribute widely.  We want to show the 
screens and a little simulated interaction. No real animation, though 
that would be great.  It's for HP-UX right now.

If you don't know of a program, do you know any Motif wizards
who have built such demonstrations?

Please send your responses directly to my mail box: Paller@fedunix.org, as
I don't get to see this news group very often.

Thanks in advance for any guidance you can offer.

Alan Paller


Newsgroups: comp.windows.x.motif
From: edbis@solomon.technet.sg (Koh Eng San)
Subject: Help: Resizing widgets
X-Newsreader: TIN [version 1.1 PL8]
Date: Thu, 31 Dec 1992 09:58:51 GMT

Happy New Year Everybody,

I was writing a program and couldn't get the fForm Widget to maximise with
the main window.  Would appreciate if someone can help me out. Below is part
of the program.

parent = XtInitialize(argv[0], 'Msh', NULL, 0, &argc, argv);
n = 0;
XtSetArg(args[n], XmNallowShellResize, True); n++;
XtSetValues(parent, args, n);

n = 0;
XtSetArg[args[n], XmNwidth, 700); n++;
XtSetArg[args[n], XmNheight, 700); n++;
XtSetArg[args[n], XmNshadowThickness, 4) ; n++;
 ......
main_window = XmCreateMainWindow(parent, "main", args, n);

XtManageChild(main_window);

n = 0;
XtSetArg(args[n], XmNtopAttachment, XmATTACH_POSITION); n++;
XtSetArg( ........
 ........

form = XmCreateForm(main_window, 'form', args, n);
XtManageChild(form);

XtRealiizeWidget(parent)
XtMainloop()





--
===============================================================================
Koh Eng San				Tel: (65) 3306-779
Systems Programmer			Fax: (65) 3306-786
Economic Development Board		Internet Id: edbis@solomon.technet.sg
of Singapore

			Have a GREAT Day!!!
==============================================================================
From: albrecht@igpm.informatik.rwth-aachen.de ()
Newsgroups: comp.windows.x.motif
Subject: Multi column list box?
Date: 23 Dec 92 10:51:33 GMT
Organization: Rechnerbetrieb Informatik - RWTH Aachen
Distribution: all
NNTP-Posting-Host: igpm.igpm.rwth-aachen.de

Hi folks,

does anybody knows a solution?
I need a listbox which can display entries in several columns, not only one.

Harald Albrecht
albrecht@igpm.rwth-aachen.de

Newsgroups: comp.windows.x.motif
From: mishra@cs.sunysb.edu (Prateek Mishra)
Subject: ..Uil Parser..
Organization: State University of New York, Stony Brook
Date: Mon, 21 Dec 1992 22:10:35 GMT


I am looking for the source code of a parser for the
MOTIF uil language. A public domain system is preferred.
Please contact me if you have (i) access to such a system,
(ii) are interested in getting your hands on it.


- prateek mishra
From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
Newsgroups: comp.windows.x.motif
Subject: Re: PushButton behavior
Date: 22 Dec 92 23:38:56 GMT
Distribution: world,local
Organization: VPI&SU Computer Science Department, Blacksburg, VA

In article <1992Dec21.144630.10264@osf.org> daniel@juliet.osf.org (Daniel Dardailler) writes:

   Someone@inet.d48.lilly.com queries...

   >|> I would like to have my pushbuttons behave the same way pushbuttons do
   >|> in dialogs (e.g. fileselectionbox) when the keyboardFocusPolicy is set
   >|> to true.  In dialogs, when pushbuttons take focus they show as default.
   >|> But for the pushbuttons I create, I can only make them show a border
   >|> around the pushbutton (by setting highlightOnEnter to true).

 >Default button behavior is a trait of the BulletinBoard widget.
 >Look there in the doc.

Yes, but that was not the question. Bulletinboard will call the "activateCallback" callback
of the pushbutton whih has been set as its (BB's) "defaultButton". But the problem is to
show the defaultButton the way the default buttons appear on a XmSelectionBox: with
a large border around the button.

I have tried setting the "shadowThickness" of the XmPushButton child of the
bulletinboard to 5 and have set the pushbutton as the defaultButton of the BB.
Yet, the button doesn't look as the way defaultButtons do on a XmSelectionBox.

This is an irritant when you are trying to construct your own dialog. They look
different from the "readymade" dialogs because of the buttons.


Ps: Is "borderThickness" the answer ? Should on set the "borderThickness" of the
    window of the "defaultButton" also to a high value, apart from "shadowThickness" ?
    Yuck !

---
S Ramakrishnan, CS Dept, McBryde Hall, VaTech
Newsgroups: comp.windows.x.motif
From: todd@fred.dfrf.nasa.gov (Todd Vernon)
Subject: Centering button in form ?
Reply-To: todd@fred.dfrf.nasa.gov (Todd Vernon)
Organization: Clarkson
Date: Tue, 22 Dec 1992 17:51:07 GMT


Easy Question,....but not for me....

 -------------------------------
|       ----------------        |
|      |                |       |
|       --XmPushButton--        |
 ------------------------XmForm-

I want to keep the button centered
inside the form horizontally and
also keep the button the same width
all the time.

Using XmATTACH_POSITION you can set
a percent for left and right, but this
still changes the button width as
the form gets bigger.  XmATTACH_FORM
with offsets have a similar problem.

Surely this sort of management isn't
beyond what the form can do, I think
I must be missing something.

todd@fred.dfrf.nasa.gov
Newsgroups: comp.windows.x.motif
From: paulh@hawk.adied.oz.au (Paul Helm)
Subject: Motif v1.1 vs v1.2
Organization: Australian Defence Industries
Date: Wed, 23 Dec 1992 01:01:55 GMT

G'day   
 
I am trying to find out the differences between Motif 1.1 and Motif 1.2
 
If someone could e-mail me the differences or give me some clues as where to
start looking I would appriciate it.

Thanks


Paul Helm  :  paulh@adied.oz.au
From: baldwa@antietam.adobe.com (Sanjay Baldwa)
Newsgroups: comp.windows.x.motif,comp.window.x.intrinsics,adobe.ask-a-guru
Subject: Wanted: Horizontally paned window widget?
Date: 22 Dec 92 19:01:30 GMT
Organization: Adobe Systems, Mountain View, CA, USA

Hi,

Is there a version of XmPanedWindow widget (or like) which can have
horizontal paned windows instead of vertical?

Thanks,

Sanjay
--
baldwa@adobe.com  or  ..!decwrl!adobe!baldwa
Newsgroups: comp.windows.x.motif
From: friedman@bnr.ca (Barry Friedman)
Subject: mxgdb - motif based gnu debugger problems
Organization: Northern Telecom, Ltd.
Date: Fri, 1 Jan 93 16:01:25 GMT

I've build mxgdb as per the README using -DHAVE_TERMIO and have not
been able to get it to run.  It starts up and immediately beeps.
If I try to load an executable, it loads but does not display any
source listing.  Messages in the terminal area seem to be terminated by
a small 'upper-left-corner' line-drawing symbol.

I've probably overlooked something simple.  Crossing my fingers does
not seem to help :-)

BTW the platform is Sun OS 4.1  compiled with gcc

Thanks for any help.

--
	Barry Friedman
	friedman@bnr.ca
From: imp@boulder.parcplace.com (Warner Losh)
Newsgroups: comp.windows.x.motif
Subject: Re: XmStringCreate* declarations
Date: 22 Dec 92 00:08:45 GMT
Organization: ParcPlace Boulder

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

You have gotten the meaning of const char * wrong.  When you pass a
char * to a routine that has a const char * in that position, it is
automatically converted for the duration of that routine.  The
declaration is a promise to the compiler that the routine won't change
the value of the string, not that you must pass it a string whose
value can't change.

Warner


-- 
Warner Losh		imp@boulder.parcplace.COM	ParcPlace Boulder
I've almost finished my brute force solution to subtlety.
From: ewang@cory.Berkeley.EDU (Edward S.T. Wang)
Newsgroups: comp.windows.x.motif
Subject: Problem with C++ keywords in motif include files
Date: 24 Dec 1992 01:58:23 GMT
Organization: University of California, at Berkeley
Distribution: inet
NNTP-Posting-Host: cory.berkeley.edu


I'm trying to compile a C++ program using Motif 1.1.3 on SunOS 4.1.1, and
I'm running into compilation errors due to the use of C++ keywords such
as "class" and "new" in the include files.
	In file X11/ShellP.h, the struct ApplicationShellPart contains a
char * called "class" which is a C++ keyword.  In file Xm/Traversal.h,
the struct _XmFocusMovedCallbackStruct contains a Widget called "new".

	The program compiles on a C compiler; however, I'd like to get
this program to interface with C++ code so preferably I'd like a solution
that would allow me to compile everything using a C++ compiler.  Is there 
a simple way to solve this problem, or am I stuck?  If I can't use a C++ 
compiler all the way, I'll be in the unfortunate position of having to call 
C++ functions from within a C program(for the callbacks), and I don't even 
want to start thinking of that problem!



							Thanks,
							Ed
Newsgroups: comp.windows.x.motif
From: amc@WLV.IIPO.GTEGSC.COM (Allen M. Cohen)
Subject: Re: Help with freaking out XmText?
Organization: GTE Government BSystems
Date: Wed, 30 Dec 92 18:53:33 GMT

In article <C02w1D.Bw0@ulowell.ulowell.edu> koverber@cs.ulowell.edu (Kurt Overberg) writes:
>
>Imagine a password requester.  All I want to happen is when I type
>into the text field, instead of putting the characters there, I want
>asterixes ("****" to appear.  Has anyone done this?  I have tried a 
The solution to this exercise can be found in the O'Reilly Motif book,
Volume 6 by Dan Heller.


-- 
<> Allen M. Cohen -- GTE Govt Sys 31717 LaTienda Dr Westlake Vlg, Ca. 91358 <>
<> 1853 Stonesgate St.            Internet:  amc@IIPO.GTEGSC.COM            <>
<> Westlake Village, Ca. 91361    Voice: (818) 706-6869 FAX: (818) 706-5050 <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Newsgroups: comp.windows.x.motif
From: drand@spinner.osf.org (Douglas S. Rand)
Subject: Re: controlling an option menu from within the program
Organization: Open Software Foundation
Date: 31 Dec 92 11:28:58

In article <1992Dec30.205716.17673@gate.esat.kuleuven.ac.be> johanb@joyce.esat.kuleuven.ac.be (Johan Buelens) writes:

   i need to reset the choice displayed by an option menu from within the
   program: when the user presses button x, option menu y should revert
   to the default (or another) selection automagically (this to protect the
   user against absurd or potentially dangerous combinations of options).
   i tried to use XtVaSetValues(option_menu,XmNmenuHistory,0,NULL) which
   executes without complaints but also without visible results; the program
   then crashes the next time the option menu is activated.

   the kludge i use now is to destroy the option menu and recreate it,
   but this is obviously horrible style, and causes a lot of flicker when
   the menu undergoes such a shock therapy...

This sounds like a bug to me,  I've certainly done things like this.
Could you please say which version of Motif you are running?
You can also try setting the menuHistory of the pulldown.  This
may workaround the problem.
--
Douglas S. Rand <drand@osf.org>		OSF/Motif Dev.
Snail:         11 Cambridge Center,  Cambridge,  MA  02142
Disclaimer:    I don't know if OSF agrees with me... let's vote on it.
Amateur Radio: KC1KJ
Newsgroups: comp.windows.x.motif
From: dbrooks@osf.org (David Brooks)
Subject: Re: Problem Exiting from a Dialog?
Organization: Open Software Foundation
Date: Wed, 23 Dec 1992 15:25:26 GMT

mattb@plato.ds.boeing.com (Matt Baney) writes:
| I am using the examples from the Douglas Adams book to 
| create an application using MOTIF and C++.

The Hitchhiker's Guide To The Galaxy has a Motif interface?  Cool.
-- 
David Brooks					dbrooks@osf.org
Open Software Foundation			uunet!osf.org!dbrooks
Shine out, fair sun, with all your heat!  Black winter freezes to his seat...
The boneless fish close quaking lies...the stars in icicles arise!
From: moses@ahpcrc.umn.edu (Matthew E. Moses)
Newsgroups: comp.windows.x.motif
Subject: Anyone noticing problems with XmVaSEPARATOR in Motif1.2.1
Keywords: XmVaSEPARATOR menus
Date: 21 Dec 92 19:41:42 GMT
Organization: AHPCRC, University of Minnesota


Has anyone noticed any problems with XmVaSEPARATOR in Motif1.2.1?
I create a menu using XmVaCreateSimpleMenuBar and the use 
XmVaCreateSimplePulldownMenu to create the individual menus.  What I
am seeing is if I put in a seperator between items every menu item
after the seperator reverts to "button_2" if it was the third item 
or whatever the items respective number is.  I've moved the items around
the problem stays as long as the seperator is there.  When I remove the 
seperator all the menu items show their respective text. I'll play with some
more and then probably send a bug report to OSF.  

Matt
Newsgroups: comp.windows.x.motif
From: enertec@netcom.com (The Gang at Enertec)
Subject: Re: real-time X/Motif data display user interface tool
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Mon, 28 Dec 1992 23:02:37 GMT

Subject: Re: real-time X/Motif data display user interface tool
Newsgroups: comp.windows.x
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: 

As a postscript to our search, the following vendors have been reported to
supply products that provide the required functionality:

V.I Corp - DataViews: DVDraw, DVPlay, and DVTools.
(413)-586-4144 or email vi@vicorp.com

SL/GMS - SL-Draw
Contact Michael Meagher uunet!gandhi!mike (415) 927-1724.

statsci - Splus 
send e-mail to joe@statsci.com


I have also heard of a product called Sammi from a company called Kinesix (or
something like that).  I have no literature on them currently, but they sound
VERY appealing to us because they provide an API to allow application programs
to pipe data to the dynamic graphic elements, and we have and existing system
/ database.  It seems that calling their API to display our data graphically
would allow us to minimize our engineering costs.  If anyone has seen or used
this product, your input would be greatly appreciated.

Thanx again,

John Feras

-- 
The Gang at Enertec
EMAIL	enertec@netcom.COM
MAIL	811 W. 5th Street, Lansdale PA 19446
PHONE	215-362-0966

Newsgroups: comp.windows.x.motif
From: daniel@juliet.osf.org (Daniel Dardailler)
Subject: Re: PushButton behavior
Organization: Open Software Foundation, Motif Team
Distribution: world,local
Date: Wed, 23 Dec 1992 14:44:11 GMT

|> This is an irritant when you are trying to construct your own dialog. 
|> They look different from the "readymade" dialogs because of the buttons.
|> 

Have you tried the template dialog in 1.2 ?
If you don't have 1.2, try the work_area in SelectionBox (add one and
unmanage what you don't need).

|> 
|> Ps: Is "borderThickness" the answer ? Should on set the "borderThickness" of 

No such resource in Motif.
Newsgroups: comp.windows.x.motif
From: dobkin@bostech.com (Larry Dobkin)
Subject: How to break "Return" laws in a Text widget...
Organization: Boston Technology, Inc.
Date: Wed, 23 Dec 92 00:28:19 GMT


I am looking for a way to make the "Return" key to behave differently from the
"OK" button. Unless the user is in the last field of the dialog, by pressing
"Return" I would it to go to the next field. In the last field it should 
comply with the Motif rules. 

Also, how to make the "Delete" key wipe out the character to the right, as 
well as navigate other keys such as "Home", "End", etc.

Appreciate your response.

Happy Holidays!

Thx. Larry.
-- 
Larry Dobkin / Boston Technology / Wakefield, MA
dobkin@bostech.com
Newsgroups: comp.windows.x.motif
From: samk@microsoft.com (Sam Kho)
Subject: Re: Motif of X386
Date: 20 Dec 92 08:05:29 GMT
Organization: Microsoft Corporation

In article <glasgow.724425110@techunix.technion.ac.il> glasgow@techunix.technion.ac.il (Jason R. Glasgow) writes:
>We are currently running XFree386 under mach and we want to develop
>X11 applications. Does anyone have any information about using Motif
>widgets on XFree386?
>
>Where can we get the libraries and the include files? Are they public
>domain or do we have to buy them somewhere?
>

last time i checked (long ago), the policy was OSF sells source code licenses,
and if u buy one, u pay $40/binary u make off it to OSF.  but u can sell the
binary at any price.  haven't heard of any vendor who provides the service
tho.

best thing is to check with OSF.


  - sam -


Newsgroups: comp.windows.x.motif,comp.windows.x