HDTenEightyP/NetNews huggingface dataset:
From: iqbal@seas.gwu.edu (Iqbal Qazi)
Subject: How do I put a bitmap I drew into a pushbutton icon?
Originator: iqbal@seas.gwu.edu
Organization: George Washington University
Date: Fri, 10 Apr 1992 15:45:00 GMT


I am writing a simple drawing program and have the functions working
but I want to have a graphic pushbutton for the user to click on, not
text.  I know I can use bitmap(1) to draw bitmaps [i.e. of a circle],
but how do I put them in a icon [so the user can click on the
'circle']?  I think xmDrawnButton is what I need, but don't know how
to use it.

Does anyone know how to do this?  I checked the FAQ but didn't find
anything.  Pointers to source code, comments, anything, are
appreciated.

Thanks,



-- 
~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^^~^|^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~
Iqbal Qazi                         | "BUGS:  Rejects any file with the string
Internet-> iqbal@sparko.gwu.edu    | 'IBM' in it.  This is considered a
(or even-> Bitnet:  wq956c@gwuvm)  | feature by some."  - dvips man page 
Newsgroups: comp.windows.x.motif
From: mmoore%peruvian.utah.edu@cs.utah.edu (Michael Moore)
Subject: Proffesional Caliber Widget Set 
Date: 15 Apr 92 01:04:30 MDT
Reply-To: mmoore%peruvian.utah.edu@cs.utah.edu
Organization: University of Utah, CS Dept., Salt Lake City

	I am writing to ask if there is interest in the development
of a professional caliber widget set based on Xt.  

	When one looks out at the world of widgets today, nothing
which is free seems to compare with the commercial toolkits.  In many
cases the functionality is of the same quality, but the widgets themselves
do not look professional.  Case in point -- the Athena widget set.  

	What I would like to see is the internet community working together
to create such a toolkit.  If we all collaborate to produce a solid
toolkit specification (widget heirarchy and the like), the job of creating 
it could be divided among many people.  We could work our way down the
widget tree dividing the widgets up among each other until
we reached the leaves (when we'd be done).

	If we did this, everyone would then be able to enjoy a commercial
quality toolkit for free.  

	So what do you think of such a project?  Is it needed?
Is it feasible, and more importantly is it practical?  Any 
suggestions on how to go about it? Does anyone have a good toolkit 
specification already mapped out?  All comments are welcome.

	If there is enough interest in this, we could set up a mailing list
specifically for the development of the toolkit.

	-Regards,

	Michael Moore


-- 
 ----------------------------------------------------------------------
| Michael Moore (mmoore@peruvian.utah.edu)  Phone : (801) 359-6552     |
|          University of Utah, Computer Science Department             |
 ----------------------------------------------------------------------
From: TRANLE@INTELLICORP.COM (Minh Tran-Le)
Newsgroups: comp.windows.x.motif
Subject: motif shareable library for the rs6000 ...
Date: 6 Apr 92 05:23:31 GMT
Reply-To: tranle@intellicorp.com
Distribution: inet
Organization: The Internet

I am trying to build a shareable library of libXm of the version 1.1.4
on the rs6000.  In that process I am trying to figure out which are the
functions that should be exported out of the Xm library.

I have found that there are 3 functions that does not have names that 
start with Xm:

    GetWidgetNavigPtrs
    SetMwmStuff
    InitializeScrollBars

and a bunch of internal functions that start with _Xm.

Can I ignore these 3 special functions and all the _Xm functions from my
export list ? or does somebody knows if Mrm or uil may depend on them.

Thanks,
Minh Tran-Le.
-------
From: mahesh@vu-vlsi.vill.edu (MAHESH BAGADE)
Newsgroups: comp.windows.x.motif
Subject: Routine to find start/end position of a string.
Date: 10 Apr 92 13:53:21 GMT
Organization: Villanova University


Hi Netters!

Can any body be kind enough to tell me how to get the starting and end
position of a given string in a Scrolled/Text widget. I would like to
make use of this information to highlight that string the text.

Thanks in advance....

Mahesh Bagade
From: rogerr@csibtfr.UUCP (Roger Reynolds)
Newsgroups: comp.windows.x.motif
Subject: How do I contrib stuff.
Date: 13 Apr 92 22:45:17 GMT
Distribution: inet
Organization: The Internet


	Forgive a posible FAQ, but I am interested in learning just how
	to go about "contributing" certain programs/utilities/widgets
	that I have been working on over the past few months.
	Utilities include:
		- Motif drag-n-drop library
		- Motif "file manager" program with icons for files etc...
		  (uses drag-n-drop library mentioned above)
		- Motif widget which ties a label to a text field and
		  allows for a popup editor tailored to the type of data
		  in the field. (real useful) 

	So, how does one go about sharing this kind of stuff?
	Do you just post it to comp.sources.whatever, or is there some
	"official" track to take so that further enhancements/fixes
	can be (easily) found by any one who happens to pick up any of this.

	Please let me know...
	rogerr




	
Xref: sparky comp.windows.x.motif:3108 comp.windows.x:9735
From: george@hub.cs.jmu.edu (george galang)
Newsgroups: comp.windows.x.motif,comp.windows.x
Subject: Events on X
Date: 9 Apr 92 01:06:08 GMT
Organization: James Madison University

I'm trying to create a "ResEdit" for Motif.  The problem is that I
don't know if it's possible to click on a button in one window, then
run a loop which uses XNextEvent to pull events off the queue until
there is a buttonrelease, at which time a button should be generated
in the second widget, provided the button is released in the second
window. This works fine if you just click in one window and create the
button in the second window; however, I'm trying to give the user the
ability to decide where the button should be placed by "dragging" it
from the first to second window.  What is the problem with using
XNextEvent in this manner?

Please send any replies to help_vern@vax1.acs.jmu.edu (internet) or
help_vern@jmuvax.

--
George Galang @ Nowhere in the entire free world
Administrator of my destiny
From: billy@Autodesk.COM (Billy Hinners)
Newsgroups: comp.windows.x.motif
Subject: problems using XmNminWidth & XmNminHeight
Date: 16 Apr 92 14:04:58 GMT
Article-I.D.: autodesk.11090
Organization: Autodesk Inc., Sausalito CA, USA

I've been trying to use the XmNminWidth and XmNminHeight to prevent
my graphics window from being resized too small.  But, whenever I use
these, it seems like the minimum size gets added to the window geometry.
For example, I have a motif example called mre, Motif resource editor.
I add

        mre.geometry:    200x200

to my .Xdefaults, then execute

        mre -xrm '*minWidth:100'

my window appears with width 300.  The minimum width is correctly
restricted on resizing to 100, though.

Is there anyone who can explain why XmNminWidth and XmNminHeight seem
to be adding to my window geometry?

Thanks for any assistance,
Billy Hinners
billy@autodesk.com
From: dah@access.digex.com (David A. Harris)
Newsgroups: comp.windows.x.motif
Subject: Why does the Initialize method return nothing?
Date: 10 Apr 92 02:03:17 GMT
Organization: Express Access -- Greenbelt, Maryland  USA

Hello everybody  I am new to the net (again) and I am new to writing widgets.
Is there a FAQ for aspiring widget writers.  I have been using O'reillys
volume 4 Motif edition, but it does'nt say much about what goes on
when a widget is instaniated.   My biggest question is what happens when
you have a fatal error in your Initialize method.  And if something fatal does happen who returns the NULL from XtVaCreateManagedWidget.   All the code I have
seen have void methods.  What gives



				Dave Harris dah@digex.com
From: singhera@usc.edu (Zafar U. Singhera)
Newsgroups: comp.windows.x.motif
Subject: Looking for tools for regression testing of X applications
Date: 12 Apr 1992 23:12:28 -0700
Organization: University of Southern California, Los Angeles, CA
Distribution: world
NNTP-Posting-Host: aludra.usc.edu

	I am looking for a list of tools to test X applications. 
I'll also appreciate any information about how to get hold of those 
tools and any comments on which one is better. Is there one in 
public domain?
	Please email your responses to singhera@aludra.usc.edu,
I shall compile a summary and post it on the net.

Thanks

--- Zafar
From: sdennis@mailhost.aa.cad.slb.com (Steve Dennis)
Newsgroups: comp.windows.x.motif
Subject: Activate callback for Option Menu Pushbuttons
Keywords: Option Menu, XmNactivateCallback
Date: 13 Apr 92 13:55:54 GMT
Organization: Schlumberger CAD/CAM; Ann Arbor, MI (USA)

Hello everybody,

  We are having a small problem with activate callbacks for option menu
pushbutton children.  If you perform what we call a "quick click" on the
option menu, that is, if you button press and button release fast enough
that the menu remains posted, the activate callback is called for the
push button that happens to be under the mouse at the time of the release.
Then when you select your choice from the menu that callback also gets called.

  In the O'Reilly book (Vol. 6 of course) the simple_option program exhibits this
same behavior.

  We don't want this behavior, we want the menu to be posted but we don't 
want any activate callbacks to be called, exactly what happens if you post
the menu with the space bar or return key.

  Our questions?  Is this just the way it is?  Does Motif 1.1.3 address this?
Has anybody else taken care of this in their applications?

Particulars:

  DEC Motif 1.1.1
  DEC X11R4
  DecStation 5000's
  Ultrix 4.2a

Any help is greatly appreciated.



-- 
============================================================================
Steve Dennis                        Internet: sdennis@mailhost.aa.cad.slb.com
Schlumberger CAD/CAM                          sdennis@aaaca1.sinet.slb.com
Ann Arbor, Michigan (USA)               UUCP: uunet!sharkey!applga!sdennis
From: bobh@wrgate.wr.tek.com (Bob Heath)
Newsgroups: comp.windows.x.motif
Subject: Re: Anyone suggest any good C++/Motif books?
Keywords: C++
Date: 16 Apr 92 18:32:21 GMT
Reply-To: bobh@wrgate.wr.tek.com
Distribution: comp
Organization: Tektronix, Inc.


|> 	Could anyone suggest any good C++ with Motif books?  Post here
|> or mail to koverber@cs.ulowell.edu.

There is only one that I'm aware of which deals with both of these topics together:

	Object Oriented Programming with C++ and OSF/Motif
	Douglas A. Young
	Prentice Hall 1992
	ISBN 0-13-630252-1

I just got my copy and have read the first couple of chapters and skimmed the rest.

I've been working with the combination of C++ and Motif for about two years now
and have tried lots of things that didn't work very well. I finally developed a
philosophy about the proper way to use the two together and a coding style to 
address some of the sticky issues (like calling C++ member functions as callbacks). When I started reading this book, I was very gratified to discover that the author discussed and dismissed the very same approaches that I had tried and discarded  then subsequently recommended exactly the approach that I eventually arrived at myself. Therefore, I think it's a great book. I only wish I'd had a copy two years ago.

I strongly recommend this book for anybody considering using C++ and Motif together, (which I also recommend by the way, they make a great team). If you aren't already familiar with both C++ and Motif however, this book won't teach you either of them. It will show you how to effectively use these two together but it is not a complete reference or tutorial text for either.

Standard Disclaimers Apply:
I have no connection with the book's author or publisher and in no way stand
to profit from this endorsement. The opinions expressed are my own and not
necessarily those of my employeer.

Bob Heath
bobh@wrgate.wr.tek.com
From: berlage@n32.gmd.de (Thomas Berlage)
Subject: Re: problem with XmTextSetString
Organization: GMD, Sankt Augustin, Germany
Date: Thu, 9 Apr 1992 05:49:56 GMT

sram@lccinc.UUCP (Sidharth Ram) writes:
>I have a scrolledtext, and i put a single string in this using XmTextSetString. the string is 37500 Bytes long, arranged as 3 lines ( i have inserted carraige returns every 12500 Bytes.
>so the data is
> "   ............................ \n
>     ..............................\n
>     ..............................\n"
>		       ^
>                       |
>		      (a)

>for some reason, the string gets chopped off in the middle 

The reason is that the text inside the scrolled window is a widget and that
widget has an X window. X windows are limited by the X protocol to a size
of 64K x 64K pixels. Scrolling is implemented by moving the text widget's
window, and window coordinates are restricted to +/-32K pixels. Divide
32K by the number of pixels per character of your font, then you will get
the maximum line length of a text widget.

Thomas Berlage (berlage@gmdzi.gmd.de)
GMD (German National Research Center for Computer Science)
P.O. Box 1316, 5205 Sankt Augustin 1, Germany
From: snail@lsl.co.uk
Newsgroups: comp.windows.x.motif
Subject: Re: How to make a top level shell disappear without destroying it?
Date: 6 Apr 92 10:13:08 GMT
Organization: Laser-Scan Ltd., Cambridge

In article <1992Apr3.100918.14791@bernina.ethz.ch>, china@bernina.ethz.ch (Lin Li) writes:
> The title says it. I create a number of top level shells each managing a
> main window. I want the user to be able to get rid of a main window
> without destroying it so that he can bring it up again later. How can
> I do that?
>    Thanks.
>                                                 Lin Li
Screen *screen_id
int    screen_number;

screen_id = XtScreen(shell_widget);
screen_number = XScreenNumberOfScreen(screen_id);

XWithdrawWindow(XtDisplay(shell_widget),
                XtWindow(shell_widget),
                screen_number);

To bring it back...

XtCallCallbacks(shell_widget, XtNpopupCallback, NULL);
XMapRaised(XtDisplay(shell_widget), XtWindow(shell_widget));

Hope this helps...
Steve the Snail
-- 
===== Yes, it's meant to be a snail, I speak only for myself and my snail =====
===== not for Laser Scan.                                                 =====
                                                              *      *
Stephen Kellett                                _______         \    /
Software Engineer                            --   ___ --        \  /  
Laser Scan Ltd                              (    _   __ )      ======
Science Park                               (    (  |   ) )    =      =
Milton Road                                (     (_)    ))   =  *  *  =
Cambridge CB4 4FS                           (           )  ==   .  .  =
England                                      --       --===      ..  =
snail@lsl.co.uk                              ==_______             ==
(+44) 223 420414 ex 275              ========                  ====   
                          ===========                      ====      [ ]BEER
                       ====================================          | |CIDER
-------------------------------------------------------------------------------
Newsgroups: comp.windows.x.motif
From: shields@fife.cs.uiuc.edu (Keith Shields)
Subject: RowColumn Hell 
Organization: Picasso Group, DCS, University of Illinois, Urbana-Champaign
Date: Tue, 14 Apr 1992 00:36:47 GMT

Sorry if this is a bonehead question, but I checked the FAQL and it
didn't seem to have quite what I was looking for.  What I'm basically
trying to do is create a radio box that has labels as well as the toggle
buttons. The number of buttons needed (and hence the number of labels)
is dynamically determined, so I can't just cheezeball the code. There
are two labels per toggle button and I would like each set of labels and
button to be on a single row.  Now, I've played around with changing
XmNisHomogeneous to False in the radio box, as well as creating multiple
row column widgets, as well as creating the radiobox the hard way (i.e.
without the convenience function) as shown on p 411 of Heller's Volume
6. Now, I've gotten pretty close on some of these trys, but in every
case, the labels won't line up with the toggle buttons.  It looks like
there is a difference with the spacing or the border width, but I've
tried everything in my limited repertoire of X tricks.  One of my
co-workers claims that the rowcolumn widget is impotent in areas like
this and I should consider another approach.  I'd appreciate any
comments on how to get this to work.  I'm open to any alternate ideas as
well, except that using the table widget is taboo.  thanks in advance. 
Newsgroups: comp.windows.x.motif
From: pet@hobble.enet.dec.com (Mandy Pet)
Subject: Motif Clipboard Question 
Reply-To: pet@hobble.enet.dec.com (Mandy Pet)
Organization: Digital Equipment Corp., Washington ULTRIX Resource Center
Date: Tue, 7 Apr 1992 18:06:01 GMT


Has anyone used the Motif clipboard facility to cut and paste pixmap data
between two applications? If possible, can you provide an example?
Any and all assistance is appreciated.

Thanks,
Mandy Pet
DEC 
Xref: sparky comp.windows.x.motif:3064 comp.windows.x:9631 comp.windows.open-look:2127 alt.toolkits.xview:430
From: andrew@work.cern.ch (Andrew Hird)
Newsgroups: comp.windows.x.motif,comp.windows.x,comp.windows.open-look,alt.toolkits.xview
Subject: Colour problems under Motif and OW3
Keywords: colour motif openwindows answerbook pageview helpview
Date: 7 Apr 92 09:09:10 GMT
Organization: CERN European Lab for Particle Physics

Hello all
	I'm hoping someone out there may be able to help me solve this problem.
Okay, when using answerbook ( or for that matter helpview or pageview ) running
under motif and openwindows 3 occasionally the colour combinations of foreground
and background change mysteriously ( this can be a real pain when you end with
such great combinations as green text on a blue backdrop or even black on black).
It seems that the server ( the xnews server in this case ) or window manager lets
other applications have there colours and change them, so that for instance, after
running xlock, I come back to find the colours changed on answerbook. 
Has anyone any ideas as how this could be solved.
I'm running SUNOS 4.1.1 , openwindows 3 , IXI motif (although same happens with 
DEC motif).

Thanks 
Andrew Hird


-- 
**************************************************************
*			*				     *
*   Andrew Hird 	* E-mail andrew@cernvax.cern.ch      *
* 			* Telephone +41 22 767 4915	     *
*   ECP division      	* Earth mail :			     *
*			*  CERN , CH-1211 , GENEVE 23 ,      *  
*                       *   SWITZERLAND.	             *
**************************************************************
Newsgroups: comp.windows.x.motif
From: jdart@telesoft.com (Jon Dart @pulsar)
Subject: Re: mapping, realizing, managing
Organization: TeleSoft, San Diego, CA, USA
Distribution: net
Date: Wed, 8 Apr 1992 23:31:00 GMT


XtManageChild places a widget under the geometry management of
its parent.  Both child and parent widgets must have been created.
If XtRealize hasn't been called, nothing visible happens.  There
is a Boolean widget resource mappedWhenManaged that controls whether
or not managing a child also maps it.  If the child has this resource
set True, XtManageChild also calls XtMapWidget.  If the child has it
set False, XtManageChild doesn't call XtMapWidget, and so the widget
will be able to be managed while still remaining invisible.

XtMapWidget explicitly maps a widget.  This makes it visible, provided
that it has been realized.  XtMapWidget isn't used all that often. 
Most of the time you want to use XtManageChild (with mappedWhenManaged
= True) to make a widget visible or take it away.

XtPopup makes a shell widget visible (maps it).  It also optionally
grabs the keyboard so that you can only respond to the shell or one
of its children.  XtPopup only works on shell widgets created with
XtCreatePopupShell.  Use XtManage to make other kinds of widget
visible.

XtRealize performs final initialization on a widget and all its
children.  It makes all widgets visible except those which have
the resource mappedWhenManaged set "False".  XtRealize is usually
called once as the final step in initialization before entering the
main event loop.  It is passed the top-level widget in the widget
hierarchy.

XtDestroyWidget unmaps a widget but also removes its data structures.
I believe it cleans up both the client and server side. 

I hope this helps - it's as accurate as I know how to be.


-- 
Jon Dart              | 5959 Cornerstone Ct. W., | jdart@telesoft.com
Sr. Software Engineer | San Diego, CA 92121      | ..uscd.edu!
TeleSoft, Inc.        | (619)-457-2700           | telesoft.com!jdart
Newsgroups: comp.windows.x.motif,comp.windows.open-look
From: ebohlin@gmuvax2.gmu.edu (Einar D. Bohlin)
Subject: mwm to olwm problem
Followup-To: comp.windows.x.motif
Organization: George Mason University, Fairfax Va.
Date: Mon, 13 Apr 1992 12:40:34 GMT


Hi,
  I've written this lovely Motif application.  While developing I have
been using the Motif Window Manager.  Now I find I must deliver to a
users who uses thes Open Look Window Manager, no problem. When I run
under olwm all of my Diaglog Titles disappear. What resource do I need
to set to get them back?  Thanks for your help.
    PS. I'm in a big hurry for this answer