HDTenEightyP/NetNews huggingface dataset:
From: S.H.Kinder@daresbury.ac.uk (Steve Kinder)
Newsgroups: comp.windows.x.motif
Subject: Motif for SUNs
Date: 27 Jan 93 16:15:33 GMT
Reply-To: shk@gserv1.dl.ac.uk
Organization: Daresbury Laboratory, UK

I am looking for advice on getting my Sparcstation 1+ converted to a Motif
interface. I also need Motif libraries (widgets etc) and would like to have
access to some Motif tools (calendar manager, news reader etc). I believe I
can get the window manager and libraries cheaply from DEC. Where would I get
tools then ? Are there any other sources ? Could I run solaris with SUNs Motif?
Many thanks in advance for any help you may offer?

Steve
Newsgroups: comp.windows.x.motif
From: gaitat@gaitat.kgn.ibm.com (Saki)
Subject: Re: Unable to change colormap of drawingarea
Date: Mon, 25 Jan 93 18:21:27 GMT
Reply-To: gaitat@gaitat.kgn.ibm.com (Saki)
Organization: IBM Kingston NY

What you need to do is create the colormap before you create
the widget and then use the call XtVaCreateManagedWidget to set
the colormap for this widget. (sth like XtNcolormap, colormap)

   __    ()  ,
  /  )   /`-'|       _/_     _/_
 /--/   /   / __.  o /  __.  /  __.  _  _
/  ( o /__-<_(_/|_<_<__(_/|_<__/  |_</_/_)_
                                 (|
Athanasios G. Gaitatzes
                                   gaitat@kgnvmy.vnet.ibm.com
These statements and/or opinions are not necessarily those of
                                                          IBM

\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Newsgroups: comp.windows.x.motif,comp.os.vms,comp.windows.x
From: vli@mpr.ca (Vincent Li)
Subject: event flags in X/Motif
Organization: MPR Teltech Ltd., Burnaby, B.C., Canada
Date: Fri, 22 Jan 93 00:02:39 GMT

Hi Folks,
   I'm running on VMS 5.5-1, Motif 1.0 (I think).
   Got 3 questions I can't find in the FAQ's

1) Could my X/Motif application exe generated in this environment be able to
   run under VMS5.5-1 with DECwindows with XUI? If not, what should I look
   out for? I've seen some discussions concerning DECwindows & Motif already,
   but couldn't figure out a clear yes/no on this issue.
2) A real easy one, how do I ghost out a button (pushbutton widget/gadget) to
   prevent unprivileged user from selecting an option?
3) Can I have my Motif application be notified when a VMS event flag is set?
   (ie. one you get with sys$getef.) I've seen codes to work with VMS mailboxes
   before, but I would like, and have, all those $QIO code hidden well away.
   All my application does is make a call to connect and pass an event flag
   as the parameter. When something is in the mailbox, for example, the event
   flag get set. Currently, I simply wait for the event flags in the main line.
   (For some uses, I have an AST set the event flag which I wait for in the
   mainline.) Is there a way I can tell the X server the event flag set is an
   X event and add a callback of some kine to process it, or am I stuck with
   the processing in AST (which I can do now)?

Thanks in advance.

-- Vince

---------------------------------------
vli@mprgate.mpr.ca        |-) It works well under pressure: Another thing
                          |-] you can say about your pillow. -- Mr Boffo
From: badger@jurassic.midnight.com (John Reardon)
Newsgroups: comp.windows.x.motif
Subject: 3 menus for 3 buttons?
Date: 27 Jan 93 22:43:19
Organization: Midnight Networks Inc., Waltham MA
Distribution: inet
Reply-To: badger@midnight.com
NNTP-Posting-Host: jurassic.midnight.com

I want to have a button that pops up 3 different menus depending upon
what button you push.  That is <btn 1> -> <menu 1>, <btn 2> -> <menu 2>,
... 

These would need to be similar to the single menu function of grabbing
the pointer and calling the menu button's callback on the btn up.
I have so far been unsuccessful in fighting off the restrictions of
Motif.  I was wondering if anyone out there had any suggestions (use
pulldown, popup, etc.?  what translations?) as to how I could best
accomplish this.  Thanks.
--

___________________________________________________________________________
                           John Reardon           Midnight Networks        
|\/| .  | ._  .  . |_  +   badger@midnight.com    100 Fifth Avenue
|  | | (| | | | (| | | |   tel:617/890-1001       Prospect Hill
_______________ _| ________fax:617/890-0028_______Waltham, MA 02154________

Newsgroups: comp.windows.x.motif
From: orest@base.bellcore.com (Orest Jarosiewicz)
Subject: MOTIF 1.2 for Solaris 2.1
Reply-To: orest@base.bellcore.com
Organization: Bellcore
Date: Thu, 21 Jan 93 18:50:34 GMT


The subject says it all.  Does anyone know of any vendor that supplies MOTIF 1.2 (or
MOTIF 1.1.x) for Solaris 2.1?

Please reply via email.

Thank you,

Orest Jarosiewicz
Bell Communications Research
444 Hoes Lane Room 1S210, Piscataway, NJ 08854
orest@base.bellcore.com

Newsgroups: comp.windows.x.motif
From: rim@bme.ri.ccf.org (Robert M. Cothren)
Subject: sizing a MainWindow with XmNscrollingPolicy XmAUTOMATIC
Organization: The Cleveland Clinic Foundation, Cleveland, OH
Distribution: na
Date: Mon, 25 Jan 1993 15:38:56 GMT

I am new to Motif programming, and relatively new to X programming in
general.  Forgive me if this is a simple or naive question.

I am writing an application using the Athena Plotter widgets, and I
want to open a MainWindow (or ScrolledWindow, if the solution is
easier) with XmNscrollingPolicy set to XmAUTOMATIC as the parent of
the Plotter widget.  Since the Plotter widget MUST be created with
width and height set, I would like to set these using an app-defaults
file, and have the MainWindow automatically size to hold the Plotter
widget without scroll bars.  I would prefer that scroll bars only
appear if the MainWindow is resized by the window manager OR the
plotter is later expanded by a call to XtSetValues().

Is there any way to size of the MainWindow based on the child in its
XmNworkWindow AND have XmNscrollingPolicy XmAUTOMATIC?  I have
searched for an answer myself to no avail.

--
----Robert M. Cothren, PhD--------------------------rim@bme.ri.ccf.org----
    Department of Biomedical Engineering
    The Cleveland Clinic Foundation                voice: 216 445-9305
----Cleveland, Ohio----------------------------------fax: 216 444-9198----
From: dbrooks@osf.org
Newsgroups: comp.windows.x.motif
Subject: Re: Unable to change colormap of drawingarea
Date: 22 Jan 93 17:13:37 GMT
Distribution: inet
Organization: The Internet

Russ Stout wrote:
> >I am trying to change the colormap of a drawing area, but have had no success.
> >I have tried using XSetWindowColormap and XtVaSetValues, but neither seems
> >to work.  I tested my routine for creating and initializing the colormap in
> >plain X and it works, but I am a novice at Motif and I need help.  
> 
> The colormap of a drawing area widget can only be set at the time of its 
> creation.  I think this is true for all widgets, but I'm not positive.

Actually, I don't think this is the problem: the Intrinsics do allow you to
change the colormap, and the Core SetValues uses XChangeWindowAttributes.

But you *also* have to call XtSetWMColormapWindows, each time you want the
map re-installed.  Specify an array with the "new" colormap at the head. 
If you want to switch between the default and private maps, you'll probably
need to do this in an event handler: Focus or Enter/Leave are candidates.

David Brooks
Systems Engineering
Open Software Foundation
Newsgroups: comp.windows.x.motif
From: eng40050@nusunix1.nus.sg (HENG LI SAN)
Subject: stopping a video loop
Organization: National University of Singapore
X-Newsreader: TIN [version 1.1 PL6]
Date: Thu, 28 Jan 1993 08:46:08 GMT

Anybody has any idea how can I stop a video loop.  I tried using a while
loop controlled by a boolean variable.  When the user press the quit
button, the boolean variable is set to false in order to stop the loop.

My problem is how can I check if any press button event has occur after
display each image.  My experience so far has always infinite loop.
Anybody has anything to say to it.  Hope to hear from you soon!!!!

Lisan

email: eng40050@nusunix2.nus.sg

Newsgroups: comp.windows.x.motif
From: jdc3538@ultb.isc.rit.edu (J.D. Cronin)
Subject: Q:  Allocating overlay planes for DrawingArea
Originator: jdc3538@ultb
Organization: Rochester Institute of Technology
Distribution: na
Date: Wed, 27 Jan 1993 20:46:37 GMT



Is it possible to do overlays with a DrawingArea widget (or any other
widget for that matter)?  I'd like to draw over an existing image.
Any hints or tips are appreciated.
Thanks...Jim
From: jmn@ESD.3Com.COM (John Medalen)
Newsgroups: comp.windows.x.motif
Subject: WANTED:  FileMerge tool running under X
Summary: WANTED:  FileMerge tool running under X
Keywords: filemerge
Date: 23 Jan 93 00:24:03 GMT
Distribution: usa

I'm looking for a filemerge tool running under X.  Something like
"filemerge" for SunView.  It's a great tool that let's you merge
two files.  Like for those times you have to merge the source code 
of one file into another.

Thanks in advance,

John Medalen
3Com,  Santa Clara, CA

John_Medalen@3com.com
From: mattf@cac.washington.edu (Matthew Freedman)
Newsgroups: comp.windows.x.motif
Subject: Re: Turning off borders for checkboxes.
Date: 22 Jan 1993 16:45:31 GMT
Organization: U.W. Information Systems
Distribution: world
NNTP-Posting-Host: elvis.cac.washington.edu

In article <1993Jan21.193104.17486@sharebase.com>, keith@sharebase.com (Keith Chambless) writes:
> The program displays a window with checkboxes. The gadget last
> selected is surrounded by a border. I would like to turn off this
> feature and pack the gadgets a little closer together.

If you are referring to the black box which indicates keyboard focus,
try setting XmNtraversalOn: false.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
= Matthew M. Freedman                                                 =
= U. of Washington Information Systems       mattf@cac.washington.edu =
= 4545 15th Ave. NE; 4th Floor               (206) 543-5593           =
= Seattle, WA  98105                                                  =
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Newsgroups: comp.windows.x.motif
From: mag@minnie.nic.kingston.ibm.com (Michael Gray)
Subject: Re: mixing motif 1.2 and other widgets
Date: Tue, 26 Jan 93 12:28:34 GMT
Distribution: comp
Organization: IBM Corp., Kingston NY

This really has to do with the fact the Motif 1.2.x depends, unfortunately, on a widget having
an extension class record.  This record should be of type XmBaseClassExtRec.  Fill it in with
all NULL/FALSE/0, etc information...  Then supply its address to the Class record in the extension field.

You also may have to Add a Class Initialize function wherin you do some basic initialization like:

_XmRegisterConverters();
_XmRegisterPixmapConverters();
_XmInitializeExtensions();

Also, you'll need to set the "record_type" field of your extension record to 
XmQmotif.

This certainly seems hacky, but I was unable to get any of my widgets to work without all these
girations..

Also,  It seems that Motif 1.2.x wants to add translations to your widget, even if you don't want any.
To override this behavior, I added a classPartInitPrehook.  In this function, I set the flags[0] field of the
Extension record to 1;  This keeps motif from adding translations, because it tells motif that it already did.

P.S.  This is undoubtedly a completely unorthodox solution.  If there is anyone out there that can
          provide a simpler one, I'd be happy to use it.


Hope this helps...

Regards,

Michael Gray
IBM
minnie.nic.kingston.ibm.com

Newsgroups: comp.windows.x.motif
From: cjc@aqdcle.nshore.org
Subject: AT&T 4410, 610, 705 Emulator
Date: Wed, 27 Jan 1993 19:54:54 GMT
Organization: AQdata, Inc.

Hi folks,

Does anyone know of a Motif-based AT&T 4410 emulator package to run on an
AIX 3.2 system?  Commercial or public?  Guesses?

I would greatly appreciate email to cjc@aqdcle.nshore.org with any
information!

Thanks,

Chris

-- 
Chris Cellucci
cjc@aqdcle.nshore.org
From: ihle@iki101.inf.tu-dresden.de (Torsten Ihle)
Newsgroups: comp.windows.x.motif
Subject: Re: changing cursors or motif widgets
Date: 21 Jan 1993 11:24:31 GMT
Organization: Dept. of Computer Science, Technical University of Dresden, Germany
Distribution: world
Reply-To: ihle@iki101.inf.tu-dresden.de (Torsten Ihle)
NNTP-Posting-Host: irzr27.inf.tu-dresden.de


--
In article <1993Jan7.153710@roper.mc.ti.com>, a722756@roper.mc.ti.com (W. Donald Rolph) writes:

|>I am writing a motif application using motif widgets.  I would like to change the
|>cursor during processing to alert the user that work is underway.  If I perform
|>the following code:
|>************************* 
|>Cursor watch_cursor;
|>/* turn on watch so the user isn't confused - this process can be time
|>        consuming!!  */
|>watch_cursor = XCreateFontCursor(XtDisplay(main_widget),XC_watch);
|>XDefineCursor(XtDisplay(main_widget),XtWindow(main_widget),watch_cursor);
|>*******************
|>nothing happens.

You should try to call 

	XFlush( XtDisplay(main_widget) );

because the Xlib is buffering the messages to the XServer .
It works fine on my applications.



----------------------------------------------
Torsten Ihle, cand. inf., TU-Dresden
EMail: ihle@iki101.inf.tu-dresden.de

Es ist deutsch in Kaltland !
----------------------------------------------
From: sharp@AICENTER.MDC.COM (Dave Sharp)
Newsgroups: comp.windows.x.motif
Subject: Scale widget not filling in height and width.
Date: 22 Jan 93 13:54:05 GMT
Distribution: inet
Organization: The Internet

Netters-

I have a scale widget that I create and manage. At this point the
height and width (core.height, core.width) are both set to 65535.
After I manage and realize the top widget they are filled in with
appropriate values. Does this make sense? The other sibling widgets
(labels) I am creating fill in the height and width after they are 
managed.

Here is the full widget hierarchy for the Scale widget (this is only
a part of the window):

DialogShell
   Form
      Table
         Frame
            Table
               Label
               Scale
               Scale
               Label
               Label
               Label
               Label

I read in Asente and Swick about the widget creating process, but
didn't quite come to a definite conclusion. If it is right that
the size fields don't get filled in until the widgets are realized, then
I can't configure the placement of the scales and labels in the
Table until after realization, which would seem to cause a lot of
display flashing.

Anyone else seen this? Thanks for any help.


--Dave Sharp			sharp@aicenter.mdc.com
--McDonnell-Douglas Corp.
From: murrays@Tymnet.COM (Scott Murray)
Newsgroups: comp.windows.x.motif
Subject: Motif Vendor Opinions!?
Date: 22 Jan 93 20:28:32 GMT
Organization: BT North America, San Jose CA.


Hi,

I'm looking into getting Motif from some different vendors and
would appreciate any comments on the following companys or 
suggestions of others to contact.

IXI
ICS
Bluestone (Black and White software on the west coast)
SI systems Ltd.

Thanks,

Scott
Email murrays@tymnet.com
Newsgroups: comp.windows.x.motif
From: astoch@afs1.ic.ac.uk (Dr A. Stochniol)
Subject: Re: Text widgets - solution with one stroke "delay"
Organization: Imperial College Centre for Computing Services.
Distribution: inet
Date: Tue, 26 Jan 93 16:40:22 GMT

In article <9301222210.AA04057@lilbit.tdtech.com>, prakash@lilbit.UUCP (Prakash Baskaran) writes:
|> > 
|> > On Jan 21,  5:49pm, Prakash Baskaran wrote:
|> >
|> >  2.  As the user moves around in the text widget using arrow keys or
|> >  mouse, I would like to show the x,y ( column and line number) in the
|> >  text widget.  Any good ways to do these?
|> > 
|> 
|> Hello:
|> 
|> I used to following technique to solve the problem.  It works allright
|> -execpt- that I get the answer one "stroke" later.  I am using
|> XmNmotionVerifyCallback to return the x, y position of my cursor. And
|> I get x,y position for the previous click or movement for my current
|> movement and the current positions are printed for the next movement.
|> Obviously I am missing something trivial.  Can any one guess what it
|> is ?
.
.
.
|> void cursor_moved (cb,  w, cbs )
|>      Widget cb, w;
|>      XmTextVerifyCallbackStruct *cbs;
|> {
|>   char *selection;
|>   int lines = 0, chars = 0;
|>   
|>   if (cbs->reason != XmCR_MOVING_INSERT_CURSOR ) return;
|> 
|>   selection = select_to_beginning ( cbs->currInsert, w );
|>   get_number_of_lines_and_chars (selection, &lines, &chars, cbs->currInsert);
|>   printf ("x:y = %d, %d\n", lines, chars);
|>   XtFree ( selection );
|> }
|> 


In the above function you should use cbs->newInsert instead of cbs->currInsert !!
(the values reflects Text status before the action has taken place).

By the way, there is a bug in your program: XmTextPosition is equivalent to long,
so you should declare pos in  "get_number_of_lines_and_chars" as long (or even
better as XmTextPosition).

I wonder why people are not using strict ANSI prototypes ??

Andrzej
From: smith@compound.se (Bjorn Smith)
Newsgroups: comp.windows.x.motif
Subject: Why doesn't XmNscrollBarDisplayPolicy=XmSTATIC works on ScrolledLists ?
Date: 27 Jan 93 18:54:49 GMT
Organization: Compound Systems AB
X-Newsreader: TIN [version 1.1 PL8]

Hi,
I`m having problems with finding out how to unconditionally display
the vertical scrollbar in a scrolled list. My code is:

    Ftg = XmCreateScrolledList(MainWindow, "Ftg", NULL, 0);

    XtVaSetValues(XtParent(Ftg),
        XmNscrollBarDisplayPolicy, XmSTATIC,
        NULL);

    XtVaSetValues(Ftg, XmNvisibleItemCount, 6, NULL);

    XtManageChild(Ftg);

As I understand the manual (and the O`Reilly book Vol 6) the verical
scrollbar should allways be visible with this code.

Could someone please explain what`s wrong or missing ?

Many thanks in advance !
--
Bj|rn Smith	Compound Systems, phone +46 8 7923689
UUCP:	 	{uunet,mcsun}!seunet!comsys!smith
Domain Address:	smith@compound.se
-- 
Bj|rn Smith	Compound Systems, phone +46 8 7923689
UUCP:	 	{uunet,mcsun}!seunet!comsys!smith
Domain Address:	smith@compound.se

--
Bj|rn Smith	Compound Systems, phone +46 8 7923689
UUCP:	 	{uunet,mcsun}!seunet!comsys!smith
Domain Address:	smith@compound.se
-- 
Bj|rn Smith	Compound Systems, phone +46 8 7923689
UUCP:	 	{uunet,mcsun}!seunet!comsys!smith
Domain Address:	smith@compound.se
From: mag@minnie.nic.kingston.ibm.com (Michael Gray)
Subject: Re: mixing motif 1.2 and other widgets
Date: Tue, 26 Jan 93 12:31:49 GMT
Distribution: World
Organization: IBM Corp., Kingston NY

REPOST -- OOPS :-)


This really has to do with the fact the Motif 1.2.x depends, unfortunately, on a widget having
an extension class record.  This record should be of type XmBaseClassExtRec.  Fill it in with
all NULL/FALSE/0, etc information...  Then supply its address to the Class record in the extension field.
 
You also may have to Add a Class Initialize function wherin you do some basic initialization like:
 
_XmRegisterConverters();
_XmRegisterPixmapConverters();
_XmInitializeExtensions();
 
Also, you'll need to set the "record_type" field of your extension record to 
XmQmotif.
 
This certainly seems hacky, but I was unable to get any of my widgets to work without all these
girations..
 
Also,  It seems that Motif 1.2.x wants to add translations to your widget, even if you don't want any.
To override this behavior, I added a classPartInitPrehook.  In this function, I set the flags[0] field of the
Extension record to 1;  This keeps motif from adding translations, because it tells motif that it already did.

P.S.  This is undoubtedly a completely unorthodox solution.  If there is anyone out there that can
          provide a simpler one, I'd be happy to use it.


Hope this helps...

Regards,

Michael Gray
IBM
minnie.nic.kingston.ibm.com
From: carl@canada.dgi.com (Carl Godkin)
Newsgroups: comp.windows.x.motif
Subject: Motif question
Date: 22 Jan 93 23:10:00 GMT
Distribution: inet
Organization: The Internet


I am looking for a way to find shell children widgets of a widget.

I am familiar with using XtVaGetValues to get the XmNchildren &
XmNnumChildren resources from widgets subclassed from Composite, but
Shell children do not seem to be included.  (And I can see why that is
a good thing, at least in some cases.)  But is there any way to find
all of the shell children?

Thanks,

        Carl Godkin
        Dynamic Graphics, Inc.
        1015 Atlantic Ave.
        Alameda, CA 94501

        carl@dgi.com
        tel: 510/522-0700
        fax: 510/522-5670
 
Newsgroups: comp.windows.x.motif
From: tommc@hpcvusc.cv.hp.com (Tom McFarland)
Subject: Re: XmText and tab length
Reply-To: tommc@cv.hp.com
Organization: Hewlett Packard UTD-Corvallis
Date: Thu, 28 Jan 1993 18:58:45 GMT

In article <1993Jan14.012718.13690@gasco.com>, dlc@gasco.com (Darci L. Chapman) writes:
|> I asked this before over the holidays and didn't get any response
|> so I'll try again:
|> 
|> Is there any way for the user to specify the number of spaces
|> for a tab character in an XmText widget?

Sorry.  The length is hardcoded in the widget.

|> Thanks for any help!
|> 
|> >>-Darci->
|> 
|> -- 
|> __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
|> \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 
|> Darci L. Chapman                                  X Window Systems Consultant
|> Northwest Natural Gas         Portland, Oregon                  dlc@gasco.com 
|>        "The OCA hates you too"                "Choose Life: Come Out!"
|>     (I do not speak for the Gas Company, and They do not speak for Me)

Tom McFarland
<tommc@cv.hp.com>
Newsgroups: comp.windows.x.motif
From: jxt@stc06.ctd.ornl.gov (TOLLIVER J S)
Subject: Scrolled List auto scrolling with explicit focus
Reply-To: jxt@stc06.ctd.ornl.gov (TOLLIVER J S)
Organization: Oak Ridge National Laboratory
Date: Tue, 26 Jan 1993 20:51:38 GMT

I have two scrolled Lists. They are connected together in the sense that when
one scrolls the other one ought to scroll also. This mostly works fine by
putting callbacks on the scrollbar of one and scrolling the other when needed.

However, I've detected a problem with explicit focus policy and keyboard
traversal. The down arrow key can move the dashed lines around the item
that would be selected if the Return key is hit down so far that the first
list needs to scroll. And it does. But I don't get any of the scrollBar
callbacks activated. How can I detect this situation and scroll the
other list too?

Thanks,
Johnny Tolliver
Oak Ridge National Laboratory
jxt@ornl.gov