HDTenEightyP/NetNews huggingface dataset:
From: ram@hertz.sbi.com (Srinivasan Sriram)
Newsgroups: comp.windows.x.motif
Subject: .gif to pixmap
Keywords: .gif, pixmap, Image, pushbutton
Date: 21 Jul 92 12:57:10 GMT
Organization: BTO - Salomon Inc., NY

Hi,

 	>I would like to have a pushbutton which has a .gif
        >file as a label. XmGetPixmap() which creates a
        >pixmap from a specified file requires that the
        >file be in the X11 bitmap format.

        >Does anyone have any ideas ?

	
>>vasudev@tcsi.tcs.com (Vasu Vallabhaneni) provided me with the following
>>Here's what you can do:

        >>Load .gif into XImage structure
        >>Call XmInstallImage() to install the image
        >>Call XmGetPixmap()

>>Just wondering if Drawn button is what you need, rather than
>>push button.

I was finally able to get it working by hacking the LoadGIF routine
in $(MOTIF)/demos/motifgif/xgifload.c to load the .gif file into
an XImage struct and call XmInstallImage and XmGetPixmap.

Hope this helps all those who requested the same info.

S. Sriram
Newsgroups: comp.windows.x.motif
From: pradeep@mercury.cs.umbc.edu (pradeep goel)
Subject: Interacting with Mwm
Organization: University of Maryland Baltimore Campus, Computer Science Department
Distribution: usa
Date: Thu, 30 Jul 1992 05:54:30 GMT

Dear X,Motif users:
I would like to get some information about interacting with the window
manager. Is there any book/manual which extensively deals with the above?
If so please let me (and other interested users) know.

Also, what does the ICCCM manual deal with? Is it helpful to the
programmer in any way?

An E-Mail reply would be greatly appreciated.

Thanks,
Khalid
From: eellis@biosun.lbl.gov (Eric Ellis)
Newsgroups: comp.windows.x.motif
Subject: Movable Override Shell
Date: 31 Jul 92 02:25:21 GMT
Reply-To: eellis@biosun.lbl.gov (Eric Ellis)
Organization: Lawrence Berkeley Laboratory, Berkeley
NNTP-Posting-Host: 128.3.253.249

I am writing an application which needs to create its own colormap in
order to run on an 8 bit machine.  Because of this, I have problems
with colormap changes when I popup dialog boxes.  I want to the user to be able
to popup one or several dialog boxes which can be moved around and placed
anywhere on the screen (including off to the side of the top level window),
but I want to make the popups override shells so that colormap remains 
constant when the user moves them around.

Window managers normally allow windows to be moved by outline dragging,
and I want to simulate this process.  The way I'm trying to do this is by
using an overrideShellWidget and setting its backgroundPixmap type to None.
I then install a translation table which unmaps the window, moves it, and
then remaps the window.  This almost works, but there is an annoying amount
of flashing on the border of the window as it is moved.  Also if the
pointer is dragged too fast, it leaves the window and then the movement stops.

I know it is possible to do this because window managers are obviously doing
it without these problems.  How?

If anyone has any hints or suggestions, I would greatly appreciate it if
you would e-mail me at eellis@biosun.lbl.gov.

Thanks
Eric
Newsgroups: comp.windows.x.motif
From: larsoe@rs6207.ecs.rpi.edu (Eric Dennis Larson)
Subject: How to get Text widget to automatically resize
Date: Tue, 21 Jul 1992 20:47:59 GMT

   I have a a form widget that contains a couple label widgets that need to be
updated often. (This is a sort of info-bar, the label widgets just display the
values of some counter integers) 
   My problem is this, the text widgets stay as big as they are when they are
first created, this is only as big as the initial string. XmNwidth seems to do
nothing and when I run my program I get the following error:

X Toolkit Warning: 
    Name: InfoPref
    Class: XmLabel
    Cannot set constraints for non-resizable widget.

Can anyone help me with any of these problems????
						                 ______
      ___		 			         (__)   /      \
     (__   _   ` _    	Eric Larson		         (oo)  (  Moo?  )
     (____/ )_/ (__  	ECS Consultant		  /-------\/ --'\______/
     ______________	(518)273-6431		 / |     ||
    (______________) 	larsoe@rpi.edu 		*  ||----||
						   ^^    ^^

Newsgroups: comp.windows.x.motif
From: mishra@sbcs.sunysb.edu (Prateek Mishra)
Subject: Motif Generators and Prototyping Tools
Organization: State University of New York at Stony Brook
Date: Tue, 28 Jul 1992 17:30:55 GMT


Motif Generation and Prototyping Tools (X-Designer, Architect etc.)
__________________________________________________________________

I am looking for user experiences with Motif Generation tools.
I am specially interested in finding out:

	(i) does the tool depend on proprietary libraries? Or can
	the generated output be re-compiled to run on any system
	with MOTIF.

	(ii) WHat form does the output code take? 
		Does the system generate UIL code?

	(iii) does the system support testing and debugging?
		[and i don't mean dbx (:-]

	(iv) Brief description of your application type, size
		and workstation.

Please reply to me. If there is interest I will summarize on the net.

Many thanx,
- prateek mishra
mishra@sbcs.sunysb.edu
From: nazgul@alfalfa.com (Kee Hinckley)
Newsgroups: comp.windows.x.motif
Subject: Re: Validating Text Widgets
Date: 24 Jul 92 04:43:45 GMT
Distribution: inet
Organization: The Internet

> In the callback routine (text_callback), I would check to see if the 
> entered text is valid, if not, I would output an error message. 
> After outputing the error message, I also want to put the focus back on 
> the text widget that has called the callback routine so that the user 
> can re-enter the text:

We go through this about once every two weeks on this group.  The quick
answer is "No there isn't an easy way, and you shouldn't do it anyway."  I'm
using an accounting program on the Mac right now that does it and I hate its
guts.  There are lots and lots of times when the user wants to fill data in
partially and then run off and do something else and come back - you want to
force the user to do something.  Instead use a visual indication that
something is wrong and disable the final apply action until they fix it.

nazgul@alfalfa.com
617/646-7703 voice/fax

If Unix is the answer, then we've clearly forgotten the question.
From: vania@osf.org (Vania Joloboff)
Newsgroups: comp.windows.x.motif
Subject: Re: Motif 1.2
Date: 21 Jul 92 13:12:13 GMT
Distribution: inet
Organization: The Internet


> Can someone tell me the difference between Motif 1.1 and Motif 1.2?

OSF distributes a 10 pages sheet entitled:

	OSF/Motif R1.1 to R1.2: detailed overview of changes

You may want to call OSF Motif direct channels to get that.

In a few words. Motif 1.2:

	- is based on X11R5 and support
	internationalization: e.g. you can edit japanese characters
	in the text widget

	- supports drag and drop methaphor

	- supports tear-off menus

	- supports some more of MS-Windows behavior
		(cancel scrolling, stacking of dialog boxes, etc)

	- has a cleaned-up geometry management

	- has many new functions for focus management,
	list management, scrolled window, baseline alignment, etc

	- has many new features on the widgets
	such as extended titled frame widget
	new template dialog box, etc
	

Also the code is totally ANSI C. It compiles with ANSI C
function prototypes.
From: rdixon@gemini.cs.nps.navy.mil (robert dixon)
Newsgroups: comp.windows.x.motif
Subject: X TO POSTSCRIPT
Date: 29 Jul 92 18:19:49 GMT
Organization: Naval Postgraduate School,Monterey,CA


  I'm writing a drawing editor in Motif, and I need to be able to
print the resulting drawings on a Postscript printer from within the
application. The information on the objects in the graph is maintained
in an object-oriented format, vice a bitmap format, and it includes
text strings.

  I'm clueless as to how to use Postscript. I'm wondering if anyone
could recommend a good source for information on how to do this.


---------------------------------------------------------------------
Bob Dixon                          "My opinions may not necessarily
Low-Life Grad Student,              be my own . . ."
Naval Postgraduate School,
Monterey, CA                        rdixon@cs.nps.navy.mil
-----------------------------------------------------------------------
From: afung@cs.ucsd.edu (Angela Fung )
Newsgroups: comp.windows.x.motif
Subject: "Couldn't find per display info. Exit status = 1"
Summary: appliction exiting without core.
Keywords: selection box/bulletin board
Date: 26 Jul 92 05:36:43 GMT


When managing either a selection box or bulletin board, the
program exits without a core.  The message I got is:
"Couldn't find per display info.  Exit status = 1."

I was wondering if anybody else out there came across the
same problem.  Or if anybody would have a clue on how I should
go about solving this problem.

Thanx in advance,
Angela
Newsgroups: comp.windows.x.motif
From: beau1029@hgc.edu (donald beaudry)
Subject: Creating colormap before first widget...
Organization: The Hartford Graduate Center
Date: Tue, 21 Jul 1992 15:24:03 GMT


I am creating a custom colormap for my application.  The top-level shell
needs to have its XmNcolormap resource set to the custom colormap, and 
this must be done at creation time (XmNcolormap is a CG resource).

My problem is that I need to have a valid pointer to a display in order to
create the colormap.  I usually just use XtDisplay(), but in this case
I have no widget to refer to yet.  

I would prefer to use XtVaAppInitialize(), if possible, if possible to create
the first application shell.

Thanks.
Newsgroups: comp.windows.x.motif
From: swamy@devnull.mpd.tandem.com (Swamy S. Bale (Pi-Net))
Newsgroups: comp.windows.x.motif
Subject: Changing the font of Label Widget.
Date: 23 Jul 92 16:38:34 GMT
Reply-To: swamy@devnull.mpd.tandem.com (Swamy S. Bale (Pi-Net))
Organization: Tandem Computers; Austin TX
Originator: swamy@pecos

Hi,

I want to change the fonts of Label widget. I tried    

*label:   -adobe-helvetica-bold-o-normal--17-120-100-100-p-92-iso8859-1

but it did not worked. Also tried 

XLoadFont(XtDisplay(labelW),
        "-adobe-helvetica-bold-o-normal--17-120-100-100-p-92-iso8859-");

Is there a way to do that?

thanks for any input.
swamy 
Newsgroups: comp.windows.x.motif
From: matt@centerline.com (Matt Landau)
Subject: Re: What is "Purify" ? (Ostriches)
Organization: CenterLine Software, Inc.
Date: Tue, 28 Jul 1992 14:12:41 GMT

In <4600@balrog.ctron.com> smith@ctron.com (Larry Smith) writes:
>Purify, as I've mentioned before, is not a substitute for malloc/free analysis.
>I've run Purify on a large program here at Cabletron and had it tell me just
>687 bytes were unaccounted for - when our debug malloc told me in no uncertain
>terms that I had over a megabyte gone with the wind.  Purify is very good at
>certain things, but if you assume it can tell you everything, then if you
>release software tested with it you're just, to steal a phrase, begging for
>trouble.

I can confirm Larry's experiences with Purify -- I've been using it on my 
own code (a large application written in a combination of C and C++), but 
using other memory analysis techniques as well.

Purify is certainly useful for (reasonably) fast first level analysis, but
it's completely missed a number of big leaks, on the order of 250K at a 
time.  I haven't managed to figure out the particulars that cause Purify 
to either find or miss a particular leak, but based on my experience using 
it, I certainly wouldn't trust it to find everything of importance.  

Purify may be one component of a good suite of development and testing 
tools, but it's not a panacea.
--
 Matt Landau			Waiting for a flash of enlightenment
 matt@centerline.com			  in all this blood and thunder
Newsgroups: comp.windows.x.motif
From: fmc@uhura.neoucom.edu (Fu-Min Chen)
Subject: Is widget C the decendant of widget A?
Organization: Northeastern Ohio Universities College of Medicine
Date: Tue, 21 Jul 1992 20:21:55 GMT

From fmc Tue Jul 21 16:14 EDT 1992
Received: by uhura.neoucom.EDU
	(15.11.1.3/15.6) id AA23260; Tue, 21 Jul 92 16:14:54 edt
Date: Tue, 21 Jul 92 16:14:54 edt
From: fmc (Fu-Min Chen)
To: fmc@uhura.neoucom.EDU
Status: R

To: fmc@uhura.neoucom.edu
Subject: Re: Is widget B the child of widget A?
Newsgroups: comp.windows.x.motif
Organization: Northeastern Ohio Universities College of Medicine
Cc: 

Thanks for the Answers.

But the question really should be:
 
 If widget C is the child of widget B and widget B is the child of widget A,
 What can I do to determine is widget C the descendant of widget A?

 Thank you!

 Fu-Min Chen
 fmc@uhura.neoucom.edu


Newsgroups: comp.windows.x.motif
From: bass@convex.com (Brad F. Bass)
Subject: Re: What is "Purify" ?
Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
Date: Thu, 23 Jul 1992 16:14:35 GMT
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.

Glyn M. Jones writes:
>Could someone please provide information on "Purify" ?

Purify detects memory access errors and memory leaks when they occur
and identifies their cause:
	reading from uninitialized memory
	reading/writing freed memory
	reading/writing beyond array bounds
	memory chunks that have no pointers to them
	memory that cannot be accessed or freed

Purify then writes a report that details the error and a stack
traceback (like dbx's where command) that shows where it happend.

> Is this an OSF product ? Is it like lint or dbx ?

No and No.

Pure Software can be reached at info@pure.com or 415/903-5100
--
Brad Bass		It is a well-known phenomenon that computer programs,
bass@convex.com		left to themselves, will cease to work. This is known
Convex Computer Corp.	as "Bit Rot".  Programs NOT left to themselves also
Richardson, Texas	cease to work.  This is known as "enhancement".
Newsgroups: comp.windows.x.motif
From: arman@twin.twinsun.com (Arman Bostani)
Subject: Motif Rich-Text Widget?
Reply-To: arman@twinsun.com
Organization: Twin Sun, Inc
Date: Thu, 23 Jul 1992 00:06:43 GMT

I recall that someone recently posted a Motif rich-text widget to the 
net. I was wondering if anyone knows of an archive site where I can ftp
this from. Please respond by email and if anyone else is interested, 
I will post.

Thanks,
Arman.

-- 
Arman Bostani                                            arman@twinsun.com
Twin Sun Inc.                 360 N. Sepulveda Blvd. #2055, El Segundo, CA
"We never understand a thing so well, and make it our own, as when we have
discovered it for ourselves"                             -- Rene Descartes
From: nazgul@alfalfa.com (Kee Hinckley)
Newsgroups: comp.windows.x.motif
Subject: Re: Is there a practical limit to app-defaults?
Date: 21 Jul 92 19:24:35 GMT
Distribution: inet
Organization: The Internet

> I have a large application whose interface is coded in UIL. I am
> considering putting all my labelString resources into my application's
> app-defaults file to simplify internationalization/customization,
> but am daunted by the strain this will put on launch performance and 
> server memory requirements. A conservative estimate is that I have 
> 15,000 strings. Does anyone have experience with this large an app-defaults 
> file or know of alternatives to shipping multiple UID files?

I can send you a freely distributable version of the X/Open Message Catalog
System that I wrote.  It keeps the strings in a single file on disk, but
breaks them into sets.  Each set is loaded individually, so you don't load
the entire set of strings all at once, only the first time a module
references a string in a particular set.  Different catalogs are loaded
depending on the LANG variable.  And of course, if the system you are porting
to supports the MCS you can use theirs instead of mine (although mine has
additional features such as automatically generating header file constants
and optionally leaving off the specific message number in the source file.)

I've been using the system for several years with no ill-affects.  It's fast
and tries to keep inmemory and disk structures at a minimum.  I also have
a partial implementation of the X/Open printf routines that can be used with
it, and (not in the standard package, but I can mail it if you don't mind
horrible hacks) a version that accesses the internal message catalog
structures and replaces each string with an XmString the first time it's
referenced - so XmStrings get cached too.

nazgul@alfalfa.com
617/646-7703 voice/fax

If Unix is the answer, then we've clearly forgotten the question.
Newsgroups: comp.windows.x.motif
From: rohit@NeoSoft.com (Rohit Mehrotra)
Subject: 3d Buttons
Organization: NeoSoft Communications Services -- (713) 684-5900
Date: Thu, 30 Jul 1992 23:44:57 GMT

Hi,
I am wondering if any one can knows how to give the buttons a 3D look
under Motif. The application that I am trying to develop has flat buttons
which become 3D when pressed. I would like them to have a 3D look at all
the time. 

Under Openlook it is the default that way, and it looks a lot nicer.

BTW: Is there a mailing list for X developers which I can subscribe to. 

Please reply by EMAIL.

Thanks in advance

Rohit
rohit@neosofft.com

-- 
Rohit Mehrotra
------------------------------------------------------------------------------
VITAL				| 	10755 Meadowglen Lane, #238
Ph: 713-781-7406		| 	Houston, TX 77042.
Newsgroups: comp.windows.x.motif
Subject: Help with ScrolledList widget...
From: solomon@pa621a.inland.com (Paul J. Solomon)
Date: 22 Jul 92 10:55:56 CDT
Organization: Inland Steel Company, East Chicago, IN
Nntp-Posting-User: reed

I've written a Motif application that uses a ScrolledList widget.
During the operation of the program, new list information is generated
for the list:  the old one is cleared out, and the new info is added to
the list.  This happens multiple times throughout program operation.
After about the 3rd or 4th time of doing this, I get this *warning* msg,
and the program locks up.  This message appears to happen when I try to
clear out the list (not add to it).

   X Toolkit Warning:
       Name: ListvScrollBar
       Class: XmScrollBar
       The specified slider size is less than 1 or greater than
       the scrollbar maximum value minus the scrollbar minimum value.

   X Toolkit Warning:
       Name: ListvScrollBar
       Class: XmScrollBar
       The specified scrollbar value is greater than the maximum
       scrollbar value minus the scrollbar slider size.

Any ideas/suggestions to the cause of this problem would be greatly
appreciated.

-paul.
-- 
----------------------------------------------------------------------
| Paul J. Solomon            |  "Consequences, Schmonsequences...    |
| solomon@pa881a.inland.com  |       as long as I'm RICH!!!"         |
| Inland Steel Co.           |             -Daffy Duck               |
----------------------------------------------------------------------
From: hares@hpcc01.corp.hp.com (Steve Hares)
Date: Fri, 24 Jul 1992 21:09:33 GMT
Subject: How do I put an XWD onto a label ?
Organization: the HP Corporate notes server
Newsgroups: comp.windows.x.motif

Hello,

Does anyone have a resource converter that would allow me to place an xwd or
gif file into a label ?  If so, would you be willing to part with it, or at
least give me some pointers on how to do it ?  As usual, any and all help will
be greatly appreciated.


Thanks,

Steve
From: alan@neocad.com (Alan Frost)
Newsgroups: comp.windows.x.motif
Subject: Re: XmList Widget Question
Date: 22 Jul 92 22:12:05 GMT
Organization: NeoCAD, Inc.

> Anil C. Purohit  			E-mail:	anil@microware.com
> 	I want to add one more functionality to the existing motif
> list widget. I want to be able to select text from the list widget
> i.e. highlight any text as we do in a text widget. I should be able
> to select part of an item from a list widget as I drag along.

To "select" a list item is easy and I don't think it violates any
look and feel guidelines.  Simply use the Xt selection machanism in
your list selection callback.

As for selecting part of the text of a Motif list item.  First, to do
so would involve fairly major changes to Motif.  I wouldn't recommend
this because is it not within the look and feel of Motif and unless
people read your documentation they will never imagine this "feature"
exists.

alan
From: bernay@aldetec.oz.au (Alain Bernay)
Newsgroups: comp.windows.x.motif
Subject: HELP: How to inhibit widgets and some wm menu items
Keywords: mwm, ncdwm, button widgets
Date: 27 Jul 92 05:21:40 GMT
Organization: Aldetec Pty Ltd, Perth West Australia

I sent this message last week but no reply came. So let's try again.

I am learning about X11R4 and MOTIF.1.1 and in the process of designing
an application that we are going to develop using UIM/X. The platform is
Motorola 8220 system, the X-terminal NCD 19c.

I have two separate concerns which may affect the design of my screens.
It is about the possibilities under Motif to:

1- inhibit in real-time (I mean by coding: eg "if not-supervisor-user
  then inhibit-iconise") some of the menu items of the window manager
  (mwm or the NCD local window manager);

2- inhibit (again in real-time) some widgets (mainly buttons).

Can somebody point me to the right directions?

Thank you in advance.

-- 
Internet: bernay@aldetec.oz.au           "Le bonheur est un sous-produit  
Perth, Western Australia.                 d'une vie bien vecue"        
Newsgroups: comp.windows.x.motif
From: misek@solbourne.com (Steve Misek)
Subject: Re: What is "Purify" ?
Organization: Solbourne Computer, Inc.
Date: Thu, 23 Jul 1992 19:45:46 GMT


 :: 
 :: Could someone please provide information on "Purify" ? ....
 :: 

In a nutshell, purify is analagous to having a dedicated language lawyer 
who sits behind you and points out every memory allocation, variable
initialization, and array bounds violation error in your code; and for the
fun of it also tells you exactly when it was made and how to fix it.

If you release software that you have not run through purify, you're just
begging for trouble.

steve
misek@solbourne.com
Newsgroups: comp.windows.x.motif
From: meir@tfs.com (Meir Zaid)
Subject: Communication between Motif Apps
Organization: TRW Financial Systems
Distribution: usa
Date: Fri, 24 Jul 1992 18:45:20 GMT


I am writing a user interface for a system that includes several other
background processes.  Part of the screen will be a messages window for
those other applications to write messages to.

How can these applications communicate their messages to that window?
The messages are short character strings.
-- 

Meir Zaid			meir@tfs.com
TRW Financial Systems		(510) 704-3362
Berkeley,  California		Fax: (510) 845-7311
Newsgroups: comp.windows.x.motif
From: chris@ods.com (Chris Atkins)
Subject: Re: XmOptionMenu items
Organization: Optical Data Systems, Inc.
X-Newsreader: Tin 1.1 PL4
Date: Fri, 24 Jul 1992 20:35:35 GMT

kulla@casee.enet.dec.com (Marc Kulla) writes:
: Does anyone know how to insert a new item into an XmOptionMenu in a 
: particular location (namely 1st)?  I can add new items by creating more
: pushbuttons with the subMenuId as the parent.  That works fine.  The item
: appears at the end of the list!  Now I need to insert an item at the top of the 
: list and I have no idea how to do it.  Any suggestions?
: 
: Thanks.
: 
: Marc
: ----------------------------------------------------------
: Marc Kulla               e-mail: kulla@casee.enet.dec.com
: Pande SA
: Sophia Antipolis  France
: ----------------------------------------------------------
Newsgroups: comp.windows.x.motif
From: dunker@uni-paderborn.de (Ulf Dunker)
Subject: XmText: line spacing
Organization: Uni-GH Paderborn, Germany
Date: Tue, 28 Jul 1992 14:54:46 GMT


--
Please help me!

How can I change the line spacing in a XmText-Widget. I have solved
the problem to get PushButtons onto a ScrolledText, but the buttons
are too high. So I have to enlarge the line spacing. Come on, anybody
there who have an Idea?

Perhaps I can make a trick with the XmNfontList resource ...