HDTenEightyP/NetNews huggingface dataset:
From: stefans@bauv106.bauv.unibw-muenchen.de (Stefan Schwarz)
Subject: Re: Translations in DrawingArea
Organization: Universitaet der Bundeswehr Muenchen (Germany)
Distribution: usa
Date: Tue, 10 Nov 1992 08:48:33 GMT

digalog.systems <digalog.systems@mixcom.mixcom.com> writes:

>I am having a problem with a DrawingArea widget. The program is a editor to
>create parts for a schematic type drawing program. I am drawing lines, arcs,
>and text in the window. In order to place the "primitives," I want the user
>to be able to use the arrow keys or the mouse to place the objects. I have
>set up a translation table to process the events but the arrow keys don't
>seem to ever get processed. Here is an excerp from the application defaults
>file:

>    *keyboardFocusPolicy:   pointer
>    *draw.translations: \
>        <Key>Up: Move(Up) \n\
>        <Key>Down: Move(Down) \n\
>        <Key>Right: Move(Right) \n\
>        <Key>Left: Move(Left) \n\
>        <Key>i: Move(Up) \n\
>        <Key>m: Move(Down) \n\
>        <Key>k: Move(Right) \n\
>        <Key>j: Move(Left) \n\
>        <Key>space: Select() \n\
>        <Key>Escape: Unselect() \n\
>        <Btn1Down>: Select() \n\
>        <Motion>: Move(Any) \n\
>        <EnterWindow>: Enter() \n\
>        <LeaveWindow>: Leave() \n

>The 'i', 'j', 'k', 'm', and 'space' keys work fine but 'Up', 'Down',
>'Left', 'Right', and 'Escape' never translate to my functions. I tried
>the 'osfUp' bindings as well and the same thing happens. Why????
>And, what can I do to fix it.

Use the virtual bindings.
<Key>osfUp: Move(Up) \n\
...

I tried this, and it works perfectly.

Stefan
-- 
__
Stefan Schwarz                            University of the armed forces
Laboratory for graphical data processing  W-8014 Neubiberg, FRG
--
From: JJHildebrand@DOCKMASTER.NCSC.MIL
Newsgroups: comp.windows.x.motif
Subject: Re: Drag-and-Drop in Motif
Date: 10 Nov 92 14:03:00 GMT
Distribution: inet
Organization: The Internet

What specific drag-and-drop functionality is provided in 1.2?  We are running
1.1.x on Suns, and are contemplating bidding on a contract which would
neccessitate d-n-d, but we have no docs to know what we can promise.  Is 
1.2 covered in Volume 6, or should we order a new programmer's manual from
OSF? ... duh.  It might be easier for me to find an O'Reilly v.6.

Thanks,
joe
Newsgroups: comp.windows.x.motif
From: rharmon@uucp (Robert Harmon)
Subject: Re: Scroll a ScrollWindow by program ?
Organization: Arinc Research Corporation, Annapolis MD
Date: 10 Nov 92 15:53:11


In article <1992Nov6.085514.29513@edf.fr> zi@edf.fr (Zixiong WANG) writes:
   : 
   : 	How do you scroll a ScrolledList by program when XmNscrollingPolicy
   : is either XmAPPLICATION_DEFINED or XmAUTOMATIC.
   : 
   : 	I'v tried setting the ScrollBar's value by XmScrollBarSetValues() and
   : setting the XmNy's or the XmNx's value of the list, no effect.
   : 
	   I'v just realized that with Motif 1.0, XmScrollBarSetValues() doesnt
   scroll the list, but with Motif 1.1, it does.


Better to use XtCallActionProc.  And give it the name of the
Translation Table Action proc use want to use.  i.e. "page-down"
"end-of-file", "extend-adjust", ..etc

Motif doesn't repeat functionality found in Xt, you're supposed to figure
that stuff out too.

BTW signatures > 5 lines are, as some folks say, 'bad form'.
--
rharmon@srg.uunet.uu.net        |
Robert B. Harmon ms:5-230       |  This space is left intentionally blank.
Arinc Research 2551 Riva Rd.    |  
Annapolis, Md 21401             |
From: zi@edf.fr (Zixiong WANG)
Newsgroups: comp.windows.x.motif
Subject: Scroll a ScrollWindow by program ?
Date: 6 Nov 92 08:23:31 GMT
Organization: EDF Direction des Etudes et Recherches
X-Newsreader: TIN [version 1.1 PL6]


Hi,

	How do you scroll a ScrolledList by program when XmNscrollingPolicy
is either XmAPPLICATION_DEFINED or XmAUTOMATIC.

	I'v tried setting the ScrollBar's value by XmScrollBarSetValues() and
setting the XmNy's or the XmNx's value of the list, no effect.

	Using XSendEvent to a ScrollBar seems to work, but I have to find out
the right x, y values of the mouse position each time.

	Do you have a simpler way to do that ?

	Thanks in advance.

--
================================================================================
                                          _/          | Zixiong WANG
           _/_/_/_/_/_/   _/_/_/_/_/    _/  _/  _/    | zi@cli52na.edr.fr
               _/               _/    _/_/_/_/ _/_/_/ | 
              _/              _/              _/      | Groupe Outils de
             _/             _/      _/_/_/_/ _/_/_/   | Dialogues pour
        _/_/_/_/_/    _/_/_/_/_/   _/    _/           | Informatique
           _/            _/       _/_/_/_/  _/        | (Computer Dialogue
          _/            _/       _/    _/  _/_/_/     | Techniques Group)
         _/            _/       _/_/_/_/  _/          | 
        _/            _/       _/    _/  _/_/_/_/     | Electricite de France
       _/        _/  _/                               | Clamart
_/_/_/_/_/_/_/    _/_/     _/    _/    _/     _/      | France
================================================================================
Newsgroups: comp.windows.x.motif
From: joes@lpi.liant.com (Joe Stewart)
Subject: Re: interface toolkit for motif?
Reply-To: joes@lpi.liant.com
Organization: LIANT Software Corporation
Date: Mon, 9 Nov 1992 14:25:54 GMT

In article <1992Nov9.064756.21108@nuscc.nus.sg>, fbaos@nuscc.nus.sg (Ozekici Suleyman (DR)) writes:
|> Hello...
|> 
|> I would like to know if there is a user interface toolkit for motif
|> similar to the UIT for XView ?
|> 
|> For those who don't know what UIT is, it's a package that wraps widgets
|> such as frames, buttons,etc as c++ objects so that no X calls are needed
|> when building user interfaces.

You may want to take a look at Liant's C++/Views, a C++ class library for
developing MOTIF GUI's.  One big benifit of this class library is that
your GUI can be ported to OS/2 PM and Windows with just a recompile and
relink.  The GUI will take on the Look and Feel of the window manager.
Pretty neat!

Anyway, if you want the usual marketing literature, send a note to 
info@liant.com.

If you have technical questions, send them to me, joes@lpi.liant.com.

Joe

-- 
---------------------------------------------------------------------
 Joseph Stewart
 Senior Applications Engineer (FIGARO+, FIGt, FIGraph)
 Liant Software Corporation
 959 Concord Street 
 Framingham MA 01701-4613 (USA)
 508-872-8700 x340
 joes@lpi.liant.com -- {uunet,necntc,drilex}!lpi!joes
---------------------------------------------------------------------
From: meeks@osf.org ("W. Scott Meeks")
Newsgroups: comp.windows.x.motif
Subject: Re: setting Font List in .Xdefaults
Date: 10 Nov 92 15:46:56 GMT
Distribution: inet
Organization: The Internet

>Date: 4 Nov 92 23:25:05 GMT
>From: nsisrv!ssvs.gsfc.nasa.gov!erler@ames.arc.nasa.gov  (Scott Erler)
>How do I set a fontlist in the .Xdefaults file?  For example, how would
>the following UIL code be put in .Xdefaults?
>
>value
>  k_font1 : font ( '-*-something-1' );
>  k_font2 : font ( '-*-something-else-1' );
>  k_font_table : font_table ( iso_latin1 = k_font1, 
>				dec_kanji = k_font2);
>
>I thought...
>
>*oneFont: -*-something-1
>*twoFont: -*-something-else-1
>*fontList: oneFont, twoFont
>
>...but it seems to ignore the second font.

Close, but you also need the font list entry tag information in the
defaults file similarly to the tag in the uil file.  So what you really
need is:

*oneFont: -*-something-1
*twoFont: -*-something-else-1
*fontList: oneFont = iso_latin1, twoFont = dec_kanji\

You might want to review the Programmer's Guide description of XmStrings
and the Programmer's Reference entry for XmFontList.

W. Scott Meeks           
Open Software Foundation 
meeks@osf.org            
(617) 621-7229           
Practice random kindness and senseless acts of beauty.
From: meeks@osf.org ("W. Scott Meeks")
Newsgroups: comp.windows.x.motif
Subject: Re: Drag-and-Drop in Motif
Date: 9 Nov 92 18:03:21 GMT
Distribution: inet
Organization: The Internet


Motif 1.2 provides a documented API and protocol for drag and drop.  If
it's feasible for you, I would highly recommend moving to 1.2.

Let me know if you have any further questions.

W. Scott Meeks           
Open Software Foundation 
meeks@osf.org            
(617) 621-7229           
Practice random kindness and senseless acts of beauty.
From: adrian@ORA.COM (adrian)
Newsgroups: comp.windows.x.motif
Subject: RE: Motif Resource Editor
Date: 9 Nov 92 17:59:58 GMT
Distribution: inet
Organization: The Internet


> 	Where does one find the Motif Resource Editor (MRE).  I have
> read about it in the O'Reilly books, but can't seem to locate it.

It doesn't come with Motif anymore.

*************************************************************
Adrian Nye (314) 531-1231    Editor, The X Resource
O'Reilly & Associates, Inc., Publishers of Nutshell Handbooks
4466 West Pine Blvd.  20-G   St. Louis MO 63108
Internet:   adrian@ora.com    	UUCP:   uunet!ora!adrian      
*************************************************************

Newsgroups: comp.windows.x.motif
From: zdxh0a@trc.amoco.com (Douglas Horn)
Subject: Re: MOTIF 1.2 source code from OSF
Originator: zdxh0a@gpss53
Keywords: source code
Organization: Amoco Production Company, Tulsa Research
Date: Mon, 9 Nov 1992 23:18:37 GMT


In article <BxGvDx.Ipz@netnews.jhuapl.edu>, ygor@aplexus.jhuapl.edu (Daniel E. White  (F2C)) writes:
> In article <1992Nov9.195800.1968@nynexst.com>, jungsj@nynexst.com (Shana-Ji Jung) writes:
> |> I am interested in getting motif source code for the our developments,
> |> Specially the source code of the release 1.2.   Could someone tell me where and how
> |> to order one?
> |> 
> |> Thank you!
> 
>   You answered your own question in your Subject: line.
> 
>   OSF is the ONLY source of Motif source (I think).
> 
> -- 
> ------------------------------------------------------------------------
>                                                                Dan White
> ------------------------------------------------------------------------
> "Sometimes  I  think  the  surest  sign  that  intelligent  life exists
>  elsewhere  in the universe is that none of it has tried to contact us."
>                                                   Calvin (Bill Waterson)


OSF number is (617)621-8755.

-- 
/*  Douglas Horn (zdxh0a@trc.amoco.com)     (918)660-3247             

    Helpful hints:   Stop programming before it is too late.  */
From: chow@slug.ssc.gov (Ivan Chow,,6212)
Newsgroups: comp.windows.x.motif
Subject: Scrolling in File Selection Dialog Box
Date: 6 Nov 92 17:19:14 GMT
Article-I.D.: sunova.1992Nov6.171914.20837
Reply-To: chow@slug.ssc.gov
Organization: SSC

Dear Xperts,
    I am writing a motif application and use the
File Selection DialogBox.  I like this widget,
however, I don't know how to control the scrolling
of the DIR and FILE scrolled window.  What I mean
is these windows also scroll all the way to the left.
Is there a way to control that?  I know
XmFileSelectionBoxGetChild (fs, XmDIALOG_DIR_LIST)
can return the XmList widget, but what about
the scrolled windows. Please help.

Also I have a question of about memory, I always write
my programs like this:

XtSetArg (args[0], XmNlabelString, XmStringCreateSimple("aaa"));
...

Is that OK? Or I have to do:

labelstr = XmStringCreateSimple("aaa");
..
XtSetArg (args[0], XmNlabelString, labelstr);
..
XmStringFree (labelstr);


Which has a better memory management?


Thanks for any info.

Ivan
Organization: Arizona State University
Date: Thursday, 12 Nov 1992 18:04:14 MST
From: <ASODL@ASUACAD.BITNET>
Newsgroups: comp.windows.x.motif
Subject:    Motif and X-windows Net Docs

I would like to know archive sites and the like where I might find programming
documentation for Motif.  It seems as though I have seen them around some where
but I cannot presently remember and I don't presently have access to the HD on
which such information may have been stored.

Thanks
olee
Newsgroups: comp.windows.x.motif
From: thielman@infko.uni-koblenz.de
Subject: nasty warning with text widgets and motif 1.2
Organization: University of Koblenz, Germany
Date: Thu, 05 Nov 1992 09:32:49 GMT

Hy folks,

since I'm using motif 1.2 I get this nasty warnings when entering a text
widget.

Warning: Actions not found: select-end, insert-selection, search, kill-selection

This warning was not shown with motif 1.1 .

I have no experience with with translations, so could one be so kind and post
or EMail me the necessary translations to avoid this warning.

Thanks in advance.

Marcus


------------------------------------------------------------------------------
use this address when replying via EMail:

		thielman@sun.koblenz.fh-rpl.de
		
------------------------------------------------------------------------------
Xref: sparky comp.windows.x.motif:7459 comp.windows.x:19103
From: hughm@brwah.inmos.co.uk (Hugh McIntyre)
Newsgroups: comp.windows.x.motif,comp.windows.x
Subject: How to create "TopLevelShell" subwindow with Motif/UIL?
Keywords: motif uil
Date: 13 Nov 92 12:55:23 GMT
Followup-To: comp.windows.x.motif
Organization: INMOS Limited, Bristol, UK


I have a program which uses Motif and UIL.  It has a main window, and
(possibly several) popup graph windows (dialogs).

The problem is that the dialogs are not iconifiable separately from the main
window, and (worse) they always obscure the main window.

I know how to get round this if UIL is not used (by creating the dialog with
XtVaCreatePopupShell("name", topLevelShellWidgetClass, ...)).  However, when
UIL is used, there is no call to XtVaCreatePopupShell.  Does anyone know how
can I do this if UIL must be used (since the program is already written)?

Please send e-mail, and I'll post a summary if I get a response.



Hugh McIntyre.
INMOS Limited, Bristol, UK.
E-mail:
Newsgroups: comp.windows.x.motif
From: kobet@picker.com (Harry Kobetitsch)
Subject: Text Widget Backspace
Organization: Picker International, Inc.
Distribution: na
Date: Thu, 5 Nov 1992 22:13:47 GMT

Hi,

I would like to know if anyone who has had problems with Motif's
Text Field widget (1.1.x). I am running on a SunSPARCstation
IPX (SunOS 4.1.2) and can't seem to backspace inside the widget.
Instead of going back the cusor goes forward.
-- 
Harry J. Kobetitsch
Picker International, Inc.
595 Miner Road
Highland Heights, Ohio 44143
From: ks@n8pph52.BNR.CA
Newsgroups: comp.windows.x.motif
Subject: Question on XmText.... Help...
Date: 5 Nov 92 21:24:59 GMT
Reply-To: ks@n8pph52.BNR.CA
Organization: Bell-Northern Research Ltd.

How can I create a text widget with a fixed number of lines (rows) ?

Note that not only I want to create it of a certain number of rows using
XmNrows, but I would like to make sure that the user can not go past the 
size of the widget, or can enter more rows of info than the one set
while creating the widget.

I would really appreciate the response on the net since I do not have
access to the internet other than reading news.

thanks 
- Kamlesh
From: dansmith@autodesk.com (Daniel Smith)
Newsgroups: comp.windows.x.motif
Subject: XmListGetSelectedPos bugs?
Date: 10 Nov 92 21:45:05 GMT
Distribution: inet
Organization: The Internet


	With 1.1.4 or 1.2, what are the known bugs of XmListGetSelectedPos?
I have a situation where a listbox does not have anything selected, and the
callback calls XmListGetSelectedPos().  Most of the time this is fine,
but sometimes XmListGetSelectedPos returns FALSE.  Seems to be random.
Any ideas?

				Daniel
Newsgroups: comp.windows.x.motif
From: dao@rchland.vnet.ibm.com (Dan Dao)
Subject: X fonts
Date: Tue, 10 Nov 1992 15:22:13 GMT
Reply-To: dao@rchland.vnet.ibm.com
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM Rochester

-- 
I'm writing a drawing application and running into many problems
with fonts.

Between display and printing (postscript), how do I find the font
that match? X uses some name for its fonts and postscript uses something else.
I saw many applications hardcode the font names. Is this the right choice?
I did hardcode some of the fonts. But when the system changed and if the
fonts are no longer there, my application just abort.

Are there any good solutions?
I heard about true type font. Does X support anything like that?

Thanks
---
Dan Dao dao@rchland.vnet.ibm.com (507)253-8023
Newsgroups: comp.windows.x.motif
From: johndew@watson.ibm.com (John Dewysocki)
Subject: Cut+Paste buggy in Motif1.1 on aix3.2.2 ??  
Date: Fri, 06 Nov 1992 23:49:15 GMT
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM T.J. Watson Research Center


We just converted to AIX 3.2.2 on our rs6k's, running
Motif1.1, and suddenly cut and pasting is having problems
between a wide variety of applications.  Most importantly
we can no longer cut+paste from an xterm to emacs -w.
I know of the fix for this, and we had put this in long
ago.  This is a new problem, because if I change window
manager to twm, it works fine --> so it is a motif problem
not an emacs one.  Has anyone else had this problem and/or
fixed this?  Thanks in advance for any help.
-- 

     ~    John    ~ 
|///////////\\\\\\\\\\\|
From: rtipnis@wpi.WPI.EDU (Rajeev Tipnis)
Newsgroups: comp.windows.x.motif
Subject: Drawing Strings in the DrawingArea
Date: 12 Nov 1992 03:11:55 GMT
Organization: Worcester Polytechnic Institute
Distribution: world
NNTP-Posting-Host: wpi.wpi.edu
Originator: rtipnis@wpi.WPI.EDU



	I was having problems drawing in the 
	drawingarea, which was contained in the
	shell I was popping.

	Thanks to all those who replied.

	When I waited for an expose event explicitly, 
	after popping the widget, and then drew in it,
	it worked.

-- Rajeev
From: meir@tfs.com (Meir Zaid)
Subject: Backing Store
Organization: TRW Financial Systems
Date: Wed, 11 Nov 1992 02:39:44 GMT


I am trying to actvate this feature in a Motif application that I am
working on.  I have some graphical charts displayed in Motif drawing
area widget, and I need to redraw these windows whenever they are
exposed, or resized.  From some reason this does no work.  The Drawing
Areas do not refresh.  My terminal DOES have Backing Store capability
and it IS activated.  The only other thing I can think of is that the
Backing Store only works for windows created with XCreateWindow()
instead of XCreateSimpleWindow().  The creation of my windows are done
by the Xm Motif routines.  Are these using XreateSimpleWindow() ?

Any other ideas of why the backing store does not work?
-- 

Meir Zaid			meir@tfs.com
TRW Financial Systems		(510) 704-3362
Berkeley,  California		Fax: (510) 845-7311
Newsgroups: comp.windows.x.motif,comp.windows.x.intrinsics
From: jim@teclogic.wa.com (Jim Newberry)
Subject: Map dialog without Raising parent?
Organization: Tech*Logic, Inc. Woodinville, WA
Distribution: na
Date: Wed, 11 Nov 1992 20:52:51 GMT

Is it possible to create a DialogShell and initially Manage/Map
it without having the DialogShell's topLevelShell parent raised?

I'd like to retain most aspects of transient behavior (can't push
behind parent, iconifies with parent). Short of creating a
topLevelShell and trying to manage the stacking order myself (gulp!) I
can't think of a way to do this...

Anyone got a trick?

Jim
-- 
-------------------------------------------------------------------
| Jim Newberry... jim@teclogic.wa.com                             |
| Tech*Logic, Inc. Woodinville, WA (Yes it always rains here.)    |
-------------------------------------------------------------------
Newsgroups: comp.windows.x.motif
From: agy@cse.nd.edu (alan yoder)
Subject: Re: TAB key support in text widget?
Reply-To: agy@cse.nd.edu (alan yoder)
Organization: Univ. of Notre Dame
Distribution: inet
Date: Thu, 5 Nov 1992 16:08:12 GMT

In article <9210221245.AA12547@relay1.UU.NET>, man@icarusmd.local (Man Wai Chiu) writes:
|> >We are using applications built on OSF/Motif 1.1.4.  Is there or will there be
|> >support for the TAB key in the text widget?  The kind of support I'm looking
|> >at is basic: change it from standard (at least standard on my machine) 8 to
|> >something else.
|> >
|> >If there is support, how?  Through a resource?  Programatic?
|> >
|> >Thanks
|> >Gary Fong (gfong@bellahs.com)
|> >Bell Atlantic Healthcare Systems
|> 
|> You can do it programatically.
|> Here is an example.
|> 
|> #include <Xm/Text.h>
|> #include <Xm/TextP.h>
|> #include <Xm/TextOutP.h>
|> 
|> Widget text;
|> 
|> /* create your text widget */
|> 
|> XmTextWidget textw;
|> 
|> textw = (XmTextWidget) text;
|> /* set tabwidth to 4 */
|> textw->text.output->data->tabwidth = 4;
|> 
|> You can look at the header files for more detail.
|> It will be nice if OSF can give us a tabwidth resource on the Text widget.
|> 
|> M. W. Chiu
|>



Actually, the tabwidth field is in pixels.  Fortunately, so is a quantity called the averagecharwidth.  So more correctly:


XmTextWidget textw;

textw = (XmTextWidget) text;
/* set tabwidth to 4 */
textw->text.output->data->tabwidth = 
	4 * textw->text.output->data->averagecharwidth;


Alan G. Yoder
Newsgroups: comp.windows.x.motif
From: daniel@moonshine.osf.org (Daniel Dardailler)
Subject: Re: Using Multiple Mouse Buttons: Callback or EventHandler ?
Keywords: 
 
Organization: Open Software Foundation, Motif Team
Date: Fri, 13 Nov 1992 18:20:29 GMT

|>    Currently I have an array of PushButton Widgets managed by a 
|> Row Column Widget.  What I would like to do is be to able to respond
|> to one specific function should the user press any three of the mouse buttons
|> while over one of the RowColumn's push buttons.  Then the function will 
|> elicit a different response for each button.  


Changing the default-style guide compliant behavior of Buttons is a bad idea.
Button1 should always activates, Button2 drags, and Button3 pops a menu.
(or something like that, check the book).
Expect your users to complain if you change that behavior for something
weird that requires eating a new pile of UI documentation.
There is a probably a style guide compliant way of implementating the
functionality you're about to provide, and even if it's less
user-friendly-smart-shortcut to your eyes, rethink of it in term of what
friendly really means for the end-user.

Enough philosophy.

If you still insist on doing that, give a try to that:

yourapp*rowcol.XmPushButton.translations:#override\n\
<BtnDown>:Arm()\n\
<BtnDown>,<BtnUp>:Activate() Disarm()\n\
<BtnDown>(2+):MultiArm()\n\

and in the Activate callback, check for
(cbdata->event->xbutton.button == Button1), or the others.


Daniel
Newsgroups: comp.windows.x.motif