HDTenEightyP/NetNews huggingface dataset:
From: snail@lsl.co.uk
Newsgroups: comp.windows.x.motif
Subject: Re: Question: resizing of resources
Date: 1 Sep 92 17:18:27 GMT
Followup-To: scurry%srg@uunet.uu.net
Organization: Laser-Scan Ltd., Cambridge

In article <1992Aug28.131723.24171@srg.srg.af.mil>, scurry@srg.af.mil (Scott Curry) writes:
> 
> 
> 
> Hopefully, I can explain the problem clearly.  
> 
> What I have:
> *	running SCO Unix 3.2 with ODT 1.0
> 
> *	a form with several children attached to it such as label gadgets, 
> textboxes, listboxes, etc.
> 
> * 	each of the children are sized and position according to a percentage.
> 
> *	These children are attached by position and the form is 
> proportionally resizable.
> 
> 
> What I want:
> *	each textbox to be sized according to the number of characters expected.
> for instance, if I have a textbox expecting 20 characters, I want the textbox
> to be only 20 characters long.  I need to calculate this size on the fly.
> 
> *	all children of the form except the textboxes to be resized according
> to the correct proportions of the form when it is resized.  The textbox 
> children should remain the same size regardless of the form's size to
> support the above.
> 
> 
> So given the above, is there a way to do this with Motif?  Second, is there an
> easy way to do this?  
> 
> Any help, guidance, comments, RTFM info, code frags, etc. would be most
> appreciated.  Your welcome to post or email responses.
> 
> If there is interest, I will post a summary of responses.
> 
> Thanks in advance,
> 
> Scott

I couldn't get any of your email addresses, so here goes.

Try the resources XmNcolumns
                  XmNmaxLength
                  XmNrows

Also see the XmText Output Resource Set in the Fine Manual.

snail@lsl.co.uk      

Interviewer: "What's the most satisfying thing about being in
              The Sisters Of Mercy?"
Eldritch:    "When I collapse at the end of it..."
Interviewer: "Do you mean that?"
Eldritch:    "Yeah...."

Vote for Bill Clinton. Vote for Bill Clinton. Vote for Bill Clinton.
Newsgroups: comp.windows.x.motif
From: scurry@srg.af.mil (Scott Curry)
Subject: Question: resizing of resources
Organization: ARINC Research, Corp.
Date: Fri, 28 Aug 92 13:17:23 GMT
Followup-To: scurry%srg@uunet.uu.net
Keywords: resize resources ODTI need some help with a particular Motif problem.  




Hopefully, I can explain the problem clearly.  

What I have:
*	running SCO Unix 3.2 with ODT 1.0

*	a form with several children attached to it such as label gadgets, 
textboxes, listboxes, etc.

* 	each of the children are sized and position according to a percentage.

*	These children are attached by position and the form is 
proportionally resizable.


What I want:
*	each textbox to be sized according to the number of characters expected.
for instance, if I have a textbox expecting 20 characters, I want the textbox
to be only 20 characters long.  I need to calculate this size on the fly.

*	all children of the form except the textboxes to be resized according
to the correct proportions of the form when it is resized.  The textbox 
children should remain the same size regardless of the form's size to
support the above.


So given the above, is there a way to do this with Motif?  Second, is there an
easy way to do this?  

Any help, guidance, comments, RTFM info, code frags, etc. would be most
appreciated.  Your welcome to post or email responses.

If there is interest, I will post a summary of responses.

Thanks in advance,

Scott


please try any of the email addresses below:

scurry%srg@uunet.uu.net
scurry@srg.af.mil
uunet!srg!scurry
 


-- 
***Disclaimer: The above are solely my own opinions, NOT of Arinc Research.  *
* Scott Curry, Analyst	 		 Email: scurry%srg@uunet.uu.net	     *
* Phone:  (410)266-4940 		 Smail: 2551 Riva Road  MS 5-230     *
* Fax:    (410)573-3024		                Annapolis, MD  21401-7461    *
--
***Disclaimer: The above are solely my own opinions, NOT of Arinc Research.  *
* Scott Curry, Analyst	 		 Email: scurry%srg@uunet.uu.net	     *
* Phone:  (410)266-4940 		 Smail: 2551 Riva Road  MS 5-230     *
* Fax:    (410)573-3024		                Annapolis, MD  21401-7461    *
Newsgroups: comp.windows.x.motif
From: rohit@NeoSoft.com (Rohit Mehrotra)
Subject: Passing Events to Application
Organization: NeoSoft Communications Services -- (713) 684-5900
Date: Sun, 30 Aug 1992 00:36:12 GMT

Hi,

Can some one tell me how can I pass the keystrokes Alt-F4 etc to
the application without having mwm trap the first. 

The problem is that I have an application which uses keystrokes like
Alt-F[1-12] and it is severely crippled under Motif because mwm is
using these keystrokes also, for example to iconify the window etc.

I want somehow that these keystrokes be passed to my application and
not trapped by mwm when the keyboard focus is on my application.

Thanks in advance.

Please EMAIL and I would post a summary.

Rohit
-- 
Rohit Mehrotra
------------------------------------------------------------------------------
VITAL				| 	10755 Meadowglen Lane, #238
Ph: 713-781-7406		| 	Houston, TX 77042.
Xref: sparky comp.windows.x.motif:5880 comp.windows.x:15761 alt.3d:949
From: slangley@constant.demon.co.uk (Simon Langley)
Subject: symbol not found: XtUngrabKey
Organization: Home
X-Newsreader: Tin 1.1 PL5
Date: Sun, 30 Aug 1992 10:28:03 GMT

I have just installed Motif on my ESIX SVR4 system.  Most things work as 
expected but xmdialogs, xmlist and xmfonts all produce the following o/p:

$ xmdialogs
dynamic linker: xmdialogs: relocation error: symbol not found: XtUngrabKey
Killed

I presume the progs are expecting to find XtUngrabKey in a shared library
but as my whole setup is bog standard I am at a loss to understand why this
should happen.  Can anyone tell me what the cause of this is?

-- 
   Simon Langley                   (preferred)   slangley@constant.demon.co.uk
   Hampstead, London                             slangley@cix.compulink.co.uk
From: andy@autodesk.com (Andrew Purshottam)
Newsgroups: comp.windows.x.motif
Subject: Multicolor Application Icons.
Date: 28 Aug 92 01:56:05 GMT
Distribution: inet
Organization: The Internet

Hi, has anyone had any luck defining a multicolor icon using the 
XmNiconPixmap resource and XPM? I have a nice icon that sxpm displays
in many colors, but when I install it as my application Icon it comes out in 
black and grey.

Any Hints? Thanks, Andy
-
Andrew V. Purshottam      /\     |  andy@autodesk.com  ...!fernwood!acad!andy 
Autodesk, Inc.	         //\\    |  (415)332-2344x2161  FAX (415) 331-8093
2320 Marinship Way      ///\\\   |  Sausalito CA 94965
"The views expressed are those of the speaker."
From: DBOHDAL@JAGUAR.ESS.HARRIS.COM
Newsgroups: comp.windows.x.motif
Subject: UIM/X generating UIL....
Date: 2 Sep 92 20:48:00 GMT
Distribution: inet
Organization: The Internet

UIM/X Users:

   I am using UIM/X version 2.00 and would like to convert the dot i files
generated by UIM/X into UIL.  UIM/X provides functionality to read
in UIL but does not appear to provide functionality to write UIL.  Does anyone
know of a tool or patch available to do this???

Thanks!
Debbie Bohdal dbohdal@jaguar.ess.harris.com
From: eaker@ukulele.crd.ge.com (Chuck Eaker)
Newsgroups: comp.windows.x.motif
Subject: How to create a clone of an existing widget?
Date: 26 Aug 92 18:35:52 GMT
Organization: GE Corporate Research and Development

Is there a canonical way to get the resrouces from an
arbitrary existing widget so that they can be handed to
XtCreateManagedWidget() to create a look-alike clone of
the original widget?

-- 
Chuck Eaker / P.O. Box 8, K-1 3C12 / Schenectady, NY 12301 USA
eaker@crd.ge.com        eaker@crdgw1.UUCP       (518) 387-5964
Newsgroups: comp.windows.x.motif
From: rohrbach@rhrk.uni-kl.de (Axel Rohrbacher [MW])
Subject: OptionLabel problem since update to Motif 1.2
Organization: University of Kaiserslautern, Germany
Date: Wed, 2 Sep 1992 15:20:22 GMT

Hello,

we updated our Motif-version from 1.0 to 1.2 and we are working (now)
with X11R5 on Sparc-stations. Then, we recompiled our Motif-Applications
which are working fine but with one strange appearance:

In some dialogs, we have Popup-Buttons, which are now right shifted at 
the length of the word "OptionLabel", which is printed at the original
position of the Popup-Button.

I didn 't find a way to remove this string. Do I have to set some
resources ? 

Any hints and suggestions are welcome. Thanks


Axel Rohrbacher               rohrbach@ccksun3.cck.uni-kl.de
CIM-Centrum Kaiserslautern    rohrbach@131.246.9.194
Germany
Newsgroups: comp.windows.x.motif
From: cecchinr@hornsby.cs.rpi.edu (Ron Cecchini)
Subject: PLEASE save my hair... FONTS!
Organization: Rensselaer Polytechnic Institute, Troy, NY
Date: Thu, 3 Sep 1992 00:24:29 GMT



Hi all,

 First let me say that I did check all the appropriate sources (Heller, FAQ,
"knowledgeable" friends, this group, etc.) and I am still ripping my hair out!

 My questions involve fonts, which I have readily determined to be one of
the most annoying things known to man...

Question 1:
In 50 words or less: What is the precise difference betwen a font and
a charset, especially w.r.t. an XmString (NOT a widget).

Question 2:
I want to write a routine that, given a widget, will display everything 
in that widget's fontList - specifically, the charsets (written in the
"-*-courier-*-r-*--*-*" format...)

I started writing the following, but something isn't working correctly.
Would someone care to finish it?

----------

Display_Font_List (w)
  Widget w;
{
  XmFontList font_list;
  XmFontContext context;
  XmStringCharSet charset;
  XFontStruct *font;
 
 XtVaGetValues(w, XmNfontList, &font_list, NULL);
 XmFontListInitFontContext(&context, font_list);
 
 while ( XmFontListGetNextFont(context, &charset, &font) != False )
   {
/*
    printf("DEBUG:font = '%s'\n", font->fid);
    printf("DEBUG:charset = '%s'\n", charset);
*/
     /* Basically, I don't know *WHAT* to print here! */
 
    XtFree(charset);
    /* DO NOT FREE font !!!!! */
   }
 
 XmFontListFreeFontContext(context);
}

--------------------

Question 3:
Given that you can determine a string's font, how do you calculate the
"bold" version of it?  Do you just substitute a "b" in the charset or
font (or whatever the hell its called) string?

Question 4:
I want to specify the font (or is it charset?) of a string at
runtime; i.e. no resource file specifications.
XLoadQueryFont() returns a font.  What do I use to get a charset
to specify to XmStringCreate() ?

Basically, what I am trying to do is create a list of XmStrings (in the
list widget of a selection box) where some of the strings are of a
normal (default) font (or is it charset?), and where some of them are
in bold face.

The FAQ says that I can do this.  But given that I am having all this
difficulty just trying to change the font of one darned string, I ain't
got nothing working yet...

Thank you very much,
Ron

Newsgroups: comp.windows.x.motif
From: ccarpent@dw3f.ess.harris.com (Craig Carpenter)
Subject: Problem with XmTextGetString
Date: Fri, 28 Aug 1992 14:12:51 GMT
Distribution: usa
Reply-To: ccarpent@dw3f.ess.harris.com (Craig Carpenter)
Organization: Harris ISD

--
I cannot seem to find out why I keep getting null strings returned from
XmTextGetString. I
can see the widget and it has values in it, but I aloways get nulls, any
ideas ??

used XmTextSetString(widget, &text) to fill it

XmTextGetString (widget, &text);


Thanks
============================================================================= 
                                                 
Craig Carpenter                                   HARRIS CORPORATION
E-Mail: ccarpent@dw3f.ess.harris.com 	  IIIIIIIII    SSSSSSSS   DDDDDDD
Phone : (407)984-6444                         I        S          D      D
Fax   : (407)984-6327                         I        SSSSSSSS   D      D
                                              I               S   D      D
"Me, Myself, and I have                   IIIIIIIII    SSSSSSSS   DDDDDDD
these opinions, not the company"
============================================================================
From: DBOHDAL@JAGUAR.ESS.HARRIS.COM
Newsgroups: comp.windows.x.motif
Subject: Motif stop watch application
Date: 2 Sep 92 20:50:00 GMT
Distribution: inet
Organization: The Internet

Does anyone know of a Motif stop watch application and where I can
get it??

Thanks!
John Armstrong jarmstrong@jaguar.ess.harris.com
Newsgroups: comp.windows.x.motif
From: mmf@evolving.com (Mark Frazier)
Subject: more OpenInYourFace info
Date: Fri, 04 Sep 1992 15:39:21 GMT
Organization: Evolving Systems, Inc.
X-Newsreader: Tin 1.1 PL4

The continuing saga of our attempt to use OpenInYourFace, by Neurotic data.....


But seriously folks,

	We still have problems with the OpenEditor trashing our data files, even
	though we try to save changes on a frequent basis. Another problem. We
	designed our screens, which are very busy. We were trying to get everything
	on one screen. Our development screen is 17" diag. But the target machine
	is a notebook (for the sales people to use). When we run the executable
	on the smaller screen, it doesn't "shrink", just truncates the screen. THe
	technique they've supplied for resizing the screen doesn't work quite right.
	It only resizes the window, and truncates the contents. So now we're going
	with scrollable panels......

MMF

These views are my own (including the nickname!) and are not those of ESI
Newsgroups: comp.windows.x.motif
From: janzen@lichen.mpr.ca (Martin Janzen)
Subject: Re: Motif stop watch application
Reply-To: janzen@mprgate.mpr.ca
Organization: MPR Teltech Ltd.
Date: Thu, 3 Sep 92 17:52:37 GMT

In article <9209022050.AA27295@BU.EDU>, DBOHDAL@JAGUAR.ESS.HARRIS.COM writes:
>Does anyone know of a Motif stop watch application and where I can
>get it??

There's one in the example source code for Douglas Young's book, "Object-Oriented
Programming with C++ and OSF/Motif".  The source is on export.lcs.mit.edu, in the
file /contrib/young.c++.tar.Z.  As you've probably guessed from the book's title,
you need a C++ compiler to build it.

-- 
Martin Janzen                     janzen@mprgate.mpr.ca (134.87.131.13)
MPR Teltech Ltd.                  Phone: (604) 293-5309
8999 Nelson Way                   Fax: (604) 293-6100
Burnaby, BC, CANADA  V5A 4B5
Newsgroups: comp.windows.x.motif
From: "John Morey" <p00103@mail.psi.net>
Subject: Motif implementation for Sun SPARC stations
Organization: Hitachi Telecom
Date: Sun, 30 Aug 1992 17:36:40 GMT
X-Mailer: PSILink (3.11)

I was wondering if anyone could lead me in the direction of a good 
implemenation of Motif for Sun SPARC stations.  We are looking at 
getting workstations where I work, HPs or Suns, and if we get the Suns 
we would like to run Motif and not Open Look.  Also I was wondering if 
there are many problems running Motif on Sun SPARC stations.

Thanks for any comments,

John Morey
Xref: sparky comp.windows.x.motif:5875 comp.windows.x.pex:504 comp.graphics:9221
From: mike@sdd.comsat.com (Mike Stennett)
Newsgroups: comp.windows.x.motif,comp.windows.x.pex,comp.graphics
Subject: OPINIONS ON 2D GRAPHICS WANTED
Date: 27 Aug 92 15:25:57 GMT
Organization: SDD, COMSAT Labs, Clarksburg, MD



I am new to the graphics area and would like opinions / recommendations
from anyone experienced in working with graphics and X.

Currently our department is looking into the best way to provide application 
programmers with 2D interactive graphics.  We work in an X Windows/Motif 
environment and would like some package to at least run on the majority 
of UNIX architectures.  We would also like to have some ability to implement
user-controlled motion dynamics and update dynamics.  At least be able to 
drag simple objects around a complex background drawing without the cursor
getting ahead of the object.  

My initial thought was to create a simple package myself expanding on X 
primitives.  I felt most of the work had be done and 2D graphic scaling and
rotating algorithms are fairly simple.  However, I have looked into the X 
primatives more closely and have found a few problems in creating my own 2D 
package.  The following are examples of the concerns I have.

 - First, I see no reasonable way to rotate text.  This seems rather absurd.  
   The only way I see to do it is to pull an XImage of the text and rotate it
   pixel by pixel which I would think yields terrible performance.  Is there
   a better way?
   
 - Next, to allow ellipses to rotate it would seem XFillPolygon would have to
   be used.  XFillArc only allows ellipses on the X or Y axis.  This 
   requires the calculations of the points along the path of the ellipse.
   These points could be stored but would still need to be recalculated every
   time the ellipse is scaled.  Again I would think the end result would be
   poor performance relative to XFillArc (especially since I bet XFillArc does 
   its calculations on the server side).  This type of performance hit I would
   think make update dynamics impossible.
   
I would like to know if your experience with X primitives has found that they
are worth working around such problems.  Do you recommend another graphics 
package?  We currently have GKS but several application programmers complain
it is slow and does not allow them functionality like XOR rubber banding.  GKS
also has poor modeling capability.  Not being able to edit segments proves
to be a problem.  

I have also heard of PEX-SI but I am worried that such a 3D package will have
a large overhead and we do not need the 3D features at this time.  I have 
also been told that editing PHIGS structures can be a real pain (but maybe 
those people are just belly acres).   Can I do rubber banding and everthing
in PEX-SI that I can do in X?  Is PEX-SI a good choice for 2D graphics?

I await anyone's wisdom on this subject and thank you in advance for your help.

Mike Stennett (mike@sdd.comsat.com)
COMSAT Laboratories, SDD
Xref: sparky comp.windows.x.motif:5959 comp.windows.x:16058
From: rosey1@cs.umd.edu (Mark Rosenblum)
Newsgroups: comp.windows.x.motif,comp.windows.x
Subject: Problem with MotionNotify Event
Date: 2 Sep 92 18:04:37 GMT
Followup-To: rosey1@tove.umd.edu
Distribution: na
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742

My name is Mark Rosenblum and I fairly new to X.  I am trying to build an
X application using XtIntrinsics and Motif on a SUN Sparc.  I need to build
an event handler that tracks the mouse's position over the entire screen.
I want to use the XtIntrinsics convenience function XtAddEventHandler to add
this event handler, as opposed to building my own event loop.  I made several
attempts to build this event handler, but I was not successful.  Below is 
a summary of my widget setup and my attempts.

	Widget Setup:

		-----------------------------------------
	     	| Screen				|
	        |            ------------------         |
		|            | A              |       	|
		|      	     |                |		|
		|            |		      |         |
		|            |                |      	|
		|            ------------------       	|
	        |					|
		-----------------------------------------



Attempt 1:  XtAddEventHandler(A,PointerMotionMask,FALSE,foo_handler,NULL);

	The problem with this attempt was that the event was only triggered
	when the mouse moved in widget A.  When the mouse moved outside of
	widget A, no MotionNotify event was triggered.

Attempt 2: XtAddEventHandler(A,ButtonMotionMask,FALSE,foo_handler,NULL);

	In this attempt a MotionNotify event was triggered both in and 
	outside of widget A, which is the response that I need, but it was
	necessary for a mouse button to be pressed to get this response.  In
	my application I do not want to have to press a mouse button in order
	to track the mouse over the whole screen. 


I would greatly appreciate any help. 
Thanks in advance.

Mark Rosenblum
Univerity of Maryland
Center for Automation Research
College Park, Maryland
From: ernst@sinix.UUCP (Reiner Ernst)
Newsgroups: comp.windows.x.motif
Subject: Keyboard support for popup menues
Keywords: popup, keyboard
Date: 26 Aug 92 07:45:50 GMT
Organization: SNI AG Muenchen, STO XS


Dear Net!

We have problems with Motif popup menues and keyboard support. May be someone
could help me. I have a browser widget, which shows icons, that are not
widgets. The browser widget itself is a primitive widget, not a manager
(performance reasons). I have popup menues for each icon in the browser 
widget, which causes no problem using the mouse. I can use XmMenuPosition()
to position a popup to its associated icon. But how can I support
keyboard ? I want to popup a menu of an icon, which has the input focus,
using the osfMenu key. Unfortunately the current Motif version is only able
to have one popup menu for each widget and one can set the XmNmenuAccelerator.
I have multiple popups for one widget, so the system doesn't know which popup
I want to show, if I press osfMenu. (One would have a similar problem, if
he wanted to show a different popup for every list entry of a list widget).

Right now we don't use XmNmenuAccelerator's, but a callback from the browser
widget, if osfMenue has been pressed. This callback has the event (in case of 
keyboard, its a KeyPress event) and we use 
  XmMenuPosition (popup_wid, (XButtonPressedEvent*)event);
  XtManageChild (popup_wid);
to show and position the popup. This works fine, I can use the mouse to
activate an entry or Esc to unmap the popup, but ... I cannot use
the cursor keys to traverse the popup. Is this a bug ? Is there a trick
to enable keyboard traversability for popups, without using 
XmNmenuAccelerator ?

We're using OSF/Motif V1.1.3 on System V Release 4.

Thanks for your help

	Reiner

------------------------------------------------------------------------------
S I E M E N S  Reiner Ernst                    P.O.Box 83 09 51
-------------  SNI STO XS 324		       D-8000 Munich 83
N I X D O R F  Phone: (..89) 636 - 46455       Email: ernst@sinix
                                               or     ernst%sinix@germany.eu.net
Newsgroups: comp.windows.x.motif
From: pjp@sloth.mlb.semi.harris.com (Pat J. Pinchera)
Subject: Re: XUSERFILESEARCHPATH and the app-defaults file
Date: Fri, 28 Aug 1992 14:40:05 GMT
Organization: Interface & Control Systems, Inc., Melbourne FL

In article <1992Aug25.144920.12174@mlb.semi.harris.com> pjp@sloth.mlb.semi.harris.com (Pat J. Pinchera) writes:
>Has anyone had any success using the 'XUSERFILESEARCHPATH' environment
>variable?  
  [stuff deleted]



Many thanks to those who replied.  My problem was that I DID NOT
specify the class name (%N) at the end of the environment variable:

	setenv XUSERFILESEARCHPATH /usr2/myacct/defaults/%N

This is documentewd, but not explained very well, or I'm too 'literal
minded' :-).  In case you're interested, here are the other
substitutions:

# For details read OSF Motif Programmers Reference
#     The following substitutions are used in these paths:
#     %T   The literal string "app-defaults".
#     %N   The class_name of the application.
#     %L   The value of the LANG environment variable.
#     %l   The language component of the LANG environment variable.
#

Once again, thanks to Ricky Ralston, Gary Fong, and especially Joe
English.

Pat
Newsgroups: comp.windows.x.motif