HDTenEightyP/NetNews huggingface dataset:
From: mailer@nyx.cs.du.edu (mailer)
Subject: Re: * Label Pixmap Problems *
X-Disclaimer: Nyx is a public access Unix system run by the University
	of Denver for the Denver community.  The University has neither
	control over nor responsibility for the opinions of users.
Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
Date: Sat, 21 Nov 92 01:52:11 GMT

daniel@juliet.osf.org (Daniel Dardailler) writes:
>|> As the title suggests, I'm having some problems getting a pixmap
>|> image to appear on a label widget.  What I'm trying to do is
>|> copy an area from a window in another program, and have that
>|> area appear on the label widget as reference...  What I've tried
>|> is setting up a shared header file between the two programs, which
>|> simply contains the declaration for the pixmap.  Then, in the 
>|> first program, when the user clicks on an area, I use XCreatePixmap
>|> and XCopyArea to copy the region to the pixmap.  In the other
>|> program with the label, I try to set it up with the LABEL_PIXMAP
>|> type, and initialize it with the same pixmap.  The program always
>|> bombs with an X error.  Any ideas on what's going wrong here?
[...]
>You said you share a header file between your two programs where
>you declare the pixmap variable and then, when the user click in one
>area, you create the pixmap ??
>
>Unless you're using some kind of shared memory mechanism, 
>simply using the same header file in 2 different 
>programs doesn't give you any sharing at all.
>
>You have to come up with some inter-client communication solution
>to have program2 aware of the pixmap id created by program1.
>
>I'd suggest you take a look at ClientMessage in X.

Okay... I got a hold of 'Xlib Programming Manual' (O'Reilly, 1991),
but the XClientMessageEvent was hardly covered!  (Hmm, and the Motif
book was so thorough.  $34.95 out the door, oh well.)  Anyways, what
am I supposed to do?  Pass the window id as an atom?  I'm totally
but the XClientMessageEvent was hardly covered!  (Hmm, and the Motif
book was sosed to do?  Pass the window id as an atom?  I thought I 
was on to something when I discovered the 'XWriteBitmapFile' and 
'XReadBitmapFile' functions.  "Wow," I said, "I'll just store the
image from the first program in a bitmap file, and then retrieve it
in the second."  Well, at least I could view the bitmap and see that
the image was being copied correctly.  But, the image can change
during program execution, and if I try to rewrite the bitmap file,
I get an X error.  What to do?  

To summarize:  program A copies a pixmap P from a window W.  program B 
is to display pixmap P on a label L.  ideas anyone?????

(one or two lines of sample code would be *very* helpful for this
 X illiterate. :)
From: jlothian@castle.ed.ac.uk (J Lothian)
Newsgroups: comp.windows.x.motif
Subject: Re: POSITIONING of dialog boxes. How do I do that ???
Date: 16 Nov 92 17:28:24 GMT
Distribution: comp
Organization: Edinburgh University Computing Service

From O'Reilly guides, vol 1, chapter 10, P 308 (2nd edition):
"The x, y, width and height members.... are obsolete, because
the window-manager will use the initial size and position of 
the window when mapping to get this information."

Of course, this assumes that you're willing to muck about at
the XLib level. I always set x, y, width and height anyway,
just to be on the safe side. The openwindows WM seems to 
honour these hints, despite the fact that they're obsolete.

James
-- 

-------------------------------------------------------
James Lothian        |      "It's life, Jim, 
james@uk.ac.ed.caad  |   but not as we know it"
From: snail@lsl.co.uk
Newsgroups: comp.windows.x.motif
Subject: Re: visual cues for insensitive list don't work
Date: 20 Nov 92 14:48:17 GMT
Organization: Laser-Scan Ltd., Cambridge

In article <1992Nov18.183154.1539@tfs.com>, paigen@tfs.com (David Paigen) writes:
> Why doesn't the list text turn grey?  Is this a motif bug?  Feature?
> 
I think it's officially a feature.

That said, I think it's an implementation bug or oversight.

Not having seen version of Motif later than 1.1.3, I can't comment on later
versions. I've had several people complain to me about this.
-- 
snail@lsl.co.uk      

"para-phrasing an American's .sig"....
For the record, I did not vote for Bill Clinton
:-)
Newsgroups: comp.windows.x.motif
From: drand@spinner.osf.org (Douglas S. Rand)
Subject: Re: Need subclassing help!?
Organization: Open Software Foundation
Date: 19 Nov 92 17:33:41

In article <4312@cvbnetPrime.COM> dhukill@esprit.prime.com (Dave Hukill x4056 5-1) writes:

   I'm having a problem with a widget I've subclassed under motif. I get the
   following error:

   Warning: 
       Name: menubar
       Class: XmRowColumn
       Attempt to add wrong type child to a homogeneous RowColumn widget

OK.  I'm not promising to answer this.  But I want to point out
that you've said absolutely nothing relevant to your question.  You
do not say what class you've started with,  what you're attempting
to do,  where you are getting the actions and translations from, etc.  

I will suggest,  having some small knowledge of the menu system,
that you might be advised to start with something less likely
to cause problems.  

Now one last question, if it makes no sense, then you will never get
this to work.  Have you taken care of the BaseClass extension record?
--
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
From: smerrill@aristotle.ils.nwu.edu (Shannon Merrill)
Newsgroups: comp.windows.x.motif
Subject: FAQ Request
Date: 17 Nov 92 15:35:37 GMT
Article-I.D.: ils.1992Nov17.153537.27854
Organization: The Institute for the Learning Sciences
X-Useragent: Nuntius v1.1

Could someone please email me a complete copy of this or last month's
FAQ?  My address is smerrill@ils.nwu.edu

Thanks!
Xref: sparky comp.windows.x.motif:7547 comp.windows.x:19280 comp.windows.x.apps:1509 comp.windows.x.intrinsics:544
From: bharat@88opensi.88open.ORG (Bharat Kurani)
Newsgroups: comp.windows.x.motif,comp.windows.x,comp.windows.x.apps,comp.windows.x.intrinsics
Subject: XOpenIM() call Need Help ?
Keywords: XOpenIM() windows
Date: 17 Nov 92 23:29:01 GMT
Followup-To: poster
Organization: 88open Consortium Ltd., San Jose

Here is the program  I tried and fails
--------------------------------------

#include <stdio.h>
#include <X11/Xlib.h>
#include <locale.h>

main(argc, argv)
int   argc ;
char *argv[] ;
{
  Display *dpy ;
  XIM im ;
  char *list ;
  char mod[256] ;
 
  if (setlocale(LC_CTYPE, "C" ) == NULL ) {
     printf("cannot set locale\n") ;
     exit(1) ;
  }
  else
     printf("pass 1/setlocale\n") ;

  if ((dpy = XOpenDisplay(NULL)) == NULL ) {
     printf("cannot open display\n") ;
     exit(1) ;
  }
  else
     printf("pass 2/XOpenDisplay\n") ;

  if (!XSupportsLocale()) {
     printf("doesnot support locale \n") ;
     exit(1) ;
  }
  else
     printf("pass 3/XSupportsLocale\n") ;

  strcpy(mod,"@im=C") ;

  if ((list = (char  *)XSetLocaleModifiers(mod)) == NULL ) {
     printf("cannot setlocale modifier\n") ;
     exit(1) ;
  }
  else
     printf("pass 4/XSetLocaleModifiers\n") ;

  printf ("list=%s\n", list);

  im = (XIM)malloc(sizeof(XIM) ) ;

  if ((im = XOpenIM(dpy, NULL, NULL, NULL)) == NULL ) {
     printf("cannot open input method\n") ;
     exit(1) ;
  }
  else
     printf("pass 5/XOpenIM\n") ;
}
From: snail@lsl.co.uk
Newsgroups: comp.windows.x.motif
Subject: Re: Need subclassing help!? (at BK, you got it! :-) )
Date: 23 Nov 92 11:02:45 GMT
Organization: Laser-Scan Ltd., Cambridge

In article <4312@cvbnetPrime.COM>, dhukill@esprit.prime.com (Dave Hukill x4056 5-1) writes:
> I'm having a problem with a widget I've subclassed under motif. I get the
> following error:
> 
> Warning: 
>     Name: menubar
>     Class: XmRowColumn
>     Attempt to add wrong type child to a homogeneous RowColumn widget

The answer is to set the resources XmNisHomogenous and XmNentryClass of the
rowcolumn widget.

So either:- XmNisHomogenous = TRUE
            XmNentryClass   = TheWidgetClassYouWant

Or, if you're mixing widget classes in the rowcolumn:-

            XmNisHomogenous = FALSE

Regards
-- 
snail@lsl.co.uk      

"para-phrasing an American's .sig"....
For the record, I did not vote for Bill Clinton
:-)
Newsgroups: comp.windows.x.motif
From: fsset@bach.lerc.nasa.gov (Scott Townsend)
Subject: request help re: FAQ 92
Organization: NASA Lewis Research Center [Cleveland, Ohio]
Distribution: na
Date: Fri, 20 Nov 1992 15:40:29 GMT

I've read FAQ 92 and tried the solution out in two ways:

1. Use the work area provided by a PromptDialog.  The main problem I have with
   this technique is that the area provided to the buttons appears to be
   set via XmATTACH_POSITION, i.e. it's proportional to the size of the dialog.
   I want the work area to take any space not needed by the buttons.
   A second problem is that the work area does not get the whole width & height
   available.  There appears to be an offset of about 10 or so.

2. Since I'm trying to model my dialog button layout like the file selection
   box, I tried using it while shutting-down all non-button widgets.  This
   was even more interesting!  Upon mapping my top level goes away.  The
   work area given still has the above offset problem, but the top offset
   is huge.  Apparently unmanaging the widgets doesn't change the work area's
   assignment on the form.

I've got my own style dialog working fine except for the fancy positioning
of the buttons.  My help button stretches to accomodate a wider form and I'd
prefer the buttons to spread out.

I'm just learning this stuff, do I need to manually reposition my buttons
upon a resize event or something?  If so, how do I keep the current resizing
from being attempted at the same time?



-- 
Scott Townsend,  Sverdrup Technology Inc.  NASA Lewis Research Center Group
fsset@bach.lerc.nasa.gov
From: bob@odi.com (Bob Miner)
Newsgroups: comp.windows.x.motif
Subject: converting Japanese fonts to FontSet
Date: 17 Nov 92 21:28:22 GMT
Distribution: inet
Organization: The Internet

Motif 1.2.1 on a SunOS 4.1.1, running MIT X11R5 PL17, including the X server.

I'm having problems getting Japanese fonts to behave properly when
used in Motif font lists.  Specifically, I've got an application called
'japan' which creates XmString's:

text1 = XmStringCreate ("<some Japanese text in JIS encoding>","JIS");
text2 = XmStringCreate ("foo","BIG");
text3 = XmStringCreate ("bar","SMALL");

and in my .Xdefaults I've got

japan*fontList:	-misc-fixed-medium-r-normal--0-0-75-75-c-0-jisx0208.1983-0:JIS,\
		9x15:BIG,\
		6x12:SMALL

Running this application results in:

> japan
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-misc-fixed-medium-r-normal--0-0-75-75-c-0-jisx0208.1983-0" to type FontSet

Using the JIS font alone works.  For example, changing the resource statement
to:

japan*fontList:	-misc-fixed-medium-r-normal--0-0-75-75-c-0-jisx0208.1983-0

causes the Japanese text to display properly (and the ASCII text to be
displayed as gibberish, which is understandable).  And using:

japan*fontList:	9x15:BIG,\
		6x12:SMALL

works fine for the ASCII text (but not for the Japanese text, which is ok).

The Motif 1.2.1 documentation certainly makes it sound like this should work.
This could be due, I suppose, to only having the C locale, as X seems to get
picky about what character sets are valid in a given locale.  But it seems
funny that displaying such text works fine except when using font sets.

I'll send this to motif-defect if I don't hear anything, I guess.

Thanks,

Bob Miner
bob@odi.com
Newsgroups: comp.windows.x.motif
From: daniel@moonshine.osf.org (Daniel Dardailler)
Subject: Re: library incompatibility question (Motif v1.1.3 to v1.2)
Keywords: 
 
Organization: Open Software Foundation, Motif Team
Date: Tue, 17 Nov 1992 18:49:49 GMT

|> 	The problem I am having seems to be in the CompositeClassPart.
|> 	I am getting a segmentation violation when XmIsGadget (in
|> 	Manager.c) is called.  It seems that core_class.extension is
|> 	pointing to a variable that is not defined.
 
Yes, that's a problem I've been working on lately.

The internal version of XmIsGadget checks for a bit_bield (the fast 
subclassing mechanism) present in the Motif extension record without 
checking for the extension existence first...

It'll be fixed in 1.2.2, but in the mean time, the workaround is
to add a Motif extension record to your classes (or move your widget classes
as Motif subclasses).

Since no documention is currently available for this, here is some code:


THIS IS AN EMPTY MOTIF EXTENSION RECORD:

static XmBaseClassExtRec baseClassExtRec = {
    NULL,
    NULLQUARK,
    XmBaseClassExtVersion,
    sizeof(XmBaseClassExtRec),
    NULL,				
    NULL,				
    NULL,				
    NULL,				
    NULL,				
    NULL,				
    NULL,               		
    { 0 },      			
    NULL,				
    NULL,				
    NULL,                               
    NULL,                               
    NULL,                               
    NULL,                               
    0,                                  
    FALSE,                              
    NULL,                               
    NULL                                
};




THEN YOU STUFF IT IN YOUR CORE CLASS PART, IN THE EXTENSION FIELD
(or if you have more than one extension, you add it in the list)

(XtPointer)&baseClassExtRec,              /* extension          */



AND IN YOUR CLASS_INITIALIZE, YOU UPDATE THE RECORD_TYPE
(that can't be done statically in C).

ClassInitialize( void )
{   
  /* + your code */
  baseClassExtRec.record_type = XmQmotif ;
}




Hope that helps.

Daniel - daniel@osf.org
Newsgroups: comp.windows.x.motif
From: paigen@tfs.com (David Paigen)
Subject: program control of list selections doesn't work
Keywords: list motif x windows extended select problem 
Organization: TRW Financial Systems
Date: Wed, 18 Nov 1992 18:58:29 GMT

I have a dialog box that contains a list in extended select mode.
Whenever the dialog box pops up, I need to initialize the list to
however it was set the last time.

To do this, I store the list of items that were selected last time.
When the dialog is started, I loop through the list and use
XmListSelectPos for each item that should be selected.  This works
fine for single, browse, and multiple selection modes, but it does
not work for extended select mode.  As each item is selected, the
previous item is unselected.

Unfortunately, multiple select mode is not an option.

Why doesn't this work?  I have tried setting AddMode, but that doesn't
change anything.

The OSF Reference manual lists a number of routines, ListBeginSelect(),
ListEndSelect(), etc. that can be (and are) associated with events.  Is
there any way I can invoke these routines under program control?

----------------------->"Lay on, McDuff,    14th c. ideals in a 21st c. world
David Paigen            and damn'd be he        N: PLO Bush IRA CIA KKK
TRW Financial Systems   who first cries,        S: terrorism pipe bomb kill
paigen@tfs.com          'hold, enough!'"        A: assasination maim
Newsgroups: comp.windows.x.motif
From: lps@swl.msd.ray.com (LYNN SHEA)
Subject: can I display a Motif window with a blank title in the title bar?
Summary: Is there any way to create Motif windows with the title bar area 
Organization: Raytheon Company, Tewksbury, MA
Date: Wed, 18 Nov 1992 17:20:10 GMT

Is there any way to create Motif windows with the title bar area displayed but
not containing a title?  If I set the title resource to " " the quotes are 
displayed.  If I set it to nothing (just spaces) Motif fills it in with the 
widget name.

Is it Motif-compliant not to display a title?  What is generally acceptable?

Thanks,

Lynn Shea
Raytheon Company
(508)858-1912
lps@swl.msd.ray.com

Newsgroups: comp.windows.x.motif
From: lps@swl.msd.ray.com (LYNN SHEA)
Subject: Motif GUI builder for PCs.
Summary: Need info. on GUI builders for PCs.
Organization: Raytheon Company, Tewksbury, MA
Date: Wed, 18 Nov 1992 17:22:25 GMT

Does anyone know of any commercial GUI builders for PCs, Motif or otherwise?

Thanks in advance,

Lynn Shea
Raytheon Company
(508)858-1912
lps@swl.msd.ray.com

Newsgroups: comp.windows.x.motif
From: ori@eddie.technion.ac.il (Ori Degani)
Subject: xmFormWidgetClass, how to use.
Organization: Heart of Gold Institute
Date: Wed, 18 Nov 1992 23:45:56 GMT
Keywords: Form

I'm trying to use a Form widget to manage a fileselection box on
top of a selection list.  I tried the following:

  father = XtVaCreateManagedWidget ("father",
                                    xmFormWidgetClass,
                                    toplevel, NULL);

... (create fileList  -FileSelectionBox widget)
... (create selectionList widget)

  XtVaSetValues (fileList, 
                 XmNleftAttachment, XmATTACH_FORM,
                 XmNrightAttachment, XmATTACH_FORM,
                 XmNtopAttachment, XmATTACH_FORM,
                 XmNbottomWidget, selectedList,
                 NULL);

  XtVaSetValues (selectedList, 
                 XmNleftAttachment, XmATTACH_FORM,
                 XmNrightAttachment, XmATTACH_FORM,
                 XmNbottomAttachment, XmATTACH_FORM,
                 XmNtopWidget, fileList,
                 NULL);


But the window turns out to include only the FileSelectionBox widget w/o 
the selection List widget.

Is this the right way to use form?

Thanks
Ori
-- 
   |  ----      Ori Degani
   |  |___      ori@eddie.technion.ac.il   (Ship Computer on the HOG)
   |  |         ori@marvin.technion.ac.il  (Who else) 
   |  ----      s2973229@techst02.technion.ac.il (Ech..)
From: lgzanl@vax.nott.ac.uk (Andrew Leason)
Newsgroups: comp.windows.x.motif
Subject: Re: Clean up ...
Date: 20 Nov 92 17:31:37 GMT
Reply-To: lgzanl@vax.nott.ac.uk (Andrew Leason)
Organization: University of Nottingham, UK

Dear Henry,

yes you could just use exit(0); but it may not
be the most elegent way, as you said. 

Personally I use

XtCloseDisplay, XtDestroyApplicationContext 
and then exit(0)

hope this helps,

Andy.
------------------------------------------------------------------------
Andrew Leason                       Department of Geography,
                                    University of Nottingham,
e-mail: lgzanl@uk.ac.nott.vax       United Kingdom.

------------------------------------------------------------------------
Newsgroups: comp.windows.x.motif
From: Shannon Merrill <smerrill@aristotle.ils.nwu.edu>
Subject: Thank you!  (was FAQ Request)
Organization: The Institute for the Learning Sciences
X-Useragent: Nuntius v1.1
Date: Wed, 18 Nov 1992 17:15:38 GMT

Just a quick note to thank those who sent the FAQ I needed.  Your help
was greatly appreciated!

--Shannon Merrill
Newsgroups: comp.windows.x.motif
From: Shannon Merrill <smerrill@aristotle.ils.nwu.edu>
Subject: Re:  FAQ Request
Organization: The Institute for the Learning Sciences
X-Useragent: Nuntius v1.1
Date: Mon, 23 Nov 1992 16:11:17 GMT

I have received several email requests for the FAQ I was sent.  Should I
post the FAQ to the net?  Please let me know.

Thanks!

--Shannon Merrill
From: mattb@plato.ds.boeing.com (Matt Baney)
Newsgroups: comp.windows.x.motif
Subject: Resources ??
Summary: What are they and how do I use them?
Date: 20 Nov 92 21:35:56 GMT
Reply-To: mattb@plato.boeing.com (Matt Baney)
Organization: Boeing Defense & Space Group

I am just recently learning MOTIF and C++ and I see a lot of references
in the documentation to customizing an applications with "Resources"
and appdefaults files?  What are these?  What are all the "resources"
I have access to or can change.  I have changed
MYAPP*Foreground: pink
MYAPP*Background: blue

But I would like to change the color of the MOTIF window border that is
wrapped around my application window, among other things.
Any suggestions?

thanks
matt

-- 
|  Matt Baney         | Boeing Defense and Space Division    |
|  -----------------  |   Knowledge Systems Group            |
| "I can't tolerate   | UUCP:        ..!bcstec!plato!mattb |        
| intolerant people!" | Internet:   mattb@plato.boeing.com |
Newsgroups: comp.windows.x.motif
From: daniel@moonshine.osf.org (Daniel Dardailler)
Subject: Re: Resize Problem With Motif Form
Keywords: 
 
Organization: Open Software Foundation, Motif Team
Distribution: usa
Date: Thu, 19 Nov 1992 17:53:46 GMT

|> I currently have a Motif form with a text widget, H slider, V slider,
|> label widget and cusor. It currently does all it's funtions correctly,
|> excepting: That when you resize the form, the form stays resized untill
|> you selection a function that restructures the data in the form and does
|> a redisplay of the entire form. The form then defaults back to the
|> intial default size. 

Probably you need to control the requests made from "inside" with resources
like XmNresizable (for child of the form), XmNresizePolicy (for the form),
or XtNallowShellResize (for a shell encapsulating the form).
From: mattb@ssc-vax (Matt Baney)
Newsgroups: comp.windows.x.motif
Subject: Motif FAQ information question??
Date: 17 Nov 92 16:36:34 GMT
Reply-To: mattb@ssc-vax.boeing.com (Matt Baney)
Organization: Boeing Aerospace & Electronics


I saw some references in the MOTIF faq and in the O'Reilly
books to something called Widget Creation Library.  Does
anyone know anything about this or where I could get more
information.  I would also be interested in other comments/
opinions/suggestions about using any other interface building
tools for MOTIF, especially shareware ones. 

Sorry if this is a FAQ but I didn't see it in the FAQ?

thanks 
matt
-- 
|  Matt Baney         | Boeing Defense and Space Division    |
|  -----------------  |   Knowledge Systems Group            |
| "I can't tolerate   | UUCP:        ..!bcstec!ssc-vax!mattb |        
| intolerant people!" | Internet:   mattb@ssc-vax.boeing.com |
From: danny@nessie.mcc.ac.uk (Danny Graham)
Newsgroups: comp.windows.x.motif
Subject: FAQ Answers ?
Date: 20 Nov 92 15:35:19 GMT
Organization: Manchester Computing Centre

I managed to get the FAQ section headings from csc.canberra.edu.au
The answers to go with them however, were not in the file. I know
I'm probably being thick, but could someone point me in the right
direction.
Thankyou for your time,

Danny
Newsgroups: comp.windows.x.motif
From: epc1@quads.uchicago.edu (Merlin)
Subject: Opinions on best prototyping tools wanted
Reply-To: epc1@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Mon, 16 Nov 1992 17:56:17 GMT


After going through the FAQ list on motif, I saw that there were a number
of prototyping tools, both commercial and non.

I would like to know what, in everyone's opinion, is the best for most 
rapidly and conveniently producing interface screens.  I don't need support
for app code as I can do that myself but I would like the prototyping tool
to generate C code for the interface screens which I create.

Although shareware is preferred, any really good commercial product info
would be good.

Thanks everyone.

-- 
En Pum Cho					
University of Chicago Class of 1994
math & economics major
epc1@midway.uchicago.edu
Newsgroups: comp.windows.x.motif