HDTenEightyP/NetNews huggingface dataset:
From: pickerig@eee.bham.ac.uk (Guy Pickering)
Subject: Re: Backing Store
Date: Fri, 13 Nov 1992 16:45:06 GMT
Organization: The University of Birmingham, England
X-Newsreader: TIN [version 1.1 PL6]

Werner Fuchs (wefuchs@faui63.informatik.uni-erlangen.de) wrote:
: meir@tfs.com (Meir Zaid) writes:
: 
: 
: >I am trying to actvate this feature in a Motif application that I am
: >working on.  I have some graphical charts displayed in Motif drawing
: >area widget, and I need to redraw these windows whenever they are
: >exposed, or resized.  From some reason this does no work.  The Drawing
: >Areas do not refresh.  My terminal DOES have Backing Store capability
: >and it IS activated.  The only other thing I can think of is that the
: >Backing Store only works for windows created with XCreateWindow()
: >instead of XCreateSimpleWindow().  The creation of my windows are done
: >by the Xm Motif routines.  Are these using XreateSimpleWindow() ?
: 
: >Any other ideas of why the backing store does not work?
: 
: [...]
: 
: I have enabled Backing Store for a Motif-DrawingArea-Widget with
: the following code:
: 
: XSetWindowAttributes attrib;
: 
: attrib.backing_store = WhenMapped;
: XChangeWindowAttributes(theDisplay,XtWindow(DrawingAreaWidget),
: 					CWBackingStore,&attrib);
: 
: This works with X11R4 and Motif 1.1 on DEC VMS and SunOS.  
: 

You can only _request_ backing store (and all attributes for that
matter). The server is quite within it's rights to a) not provide
it at all, and b) if it does provide it, cease to provide it at
any time.

It is a pleasent feature when available but cannot be relied
apon. Request it by all means, but write your code as if it
were not available.

Guy

--
+--------------------------------+-----------------------------------------+
| Guy Pickering                  | School of Electronic & Electrical Eng,  |
| E-MAIL: G.PICKERING@uk.ac.bham | University of Birmingham,               |
| Tel: (021) 414 4340            | Edgbaston, Birmingham. B15 2TT.         |
+--------------------------------+-----------------------------------------+
| "I have ten pairs of trainers...One for each day of the week" - Sam Fox  |
+--------------------------------+-----------------------------------------+
From: dwight@geohub.gcn.uoknor.edu (Dwight D. Moore)
Newsgroups: comp.windows.x.motif
Subject: MotionNotify events in DrawingAreas
Date: 5 Nov 92 16:06:39 GMT
Reply-To: dwight@geohub.gcn.uoknor.edu
Organization: Geosciences Computing Network, Univ. of Oklahoma
Originator: usenet@kittyhawk.ecn.uoknor.edu

I have an action proc that I want to get called when there
is a MotionNotify event (or its closely related cousins Btn1Motion, etc).
I can set translations in the resource file to work with Btn1Down and
the like, but it seems to ignore the MotionNotify in the translation
resource. Is there something magical that I need to do for the
DrawingArea ?
     <MotionNotify>: my_action()\n
----------------------------------------------------------------------------
Dwight D. Moore
Geosciences Computing Network
University of Oklahoma

dwight@geohub.gcn.uoknor.edu (129.15.40.10)
These opinions do not necessarily represent the opinions of OU or the GCN.
----------------------------------------------------------------------------
Newsgroups: comp.windows.x.motif
From: afsypng@cid.aes.doe.CA (Jacques Marcoux)
Subject: Re: uil compiler
Organization: Environment Canada (CID), Dorval, QC
Date: Fri, 6 Nov 92 11:50:17 GMT

In article <1992Nov4.230732.7691@a.cs.okstate.edu> schultz@a.cs.okstate.edu (SCHULTZ DAVID WAYN) writes:
>
>	I am attempting to compile a file with the uil compiler. It (the
> compiler) claims not to know about the XmNcreateCallback.

 Try MrmNcreateCallback.
Newsgroups: comp.windows.x.motif
From: isc30078@nusunix1.nus.sg (PHUA KIA CHEK)
Subject: Widget ID
Organization: National University of Singapore
X-Newsreader: TIN [version 1.1 PL6]
Date: Sun, 8 Nov 1992 07:09:41 GMT

Hello,

	I would to know how I can get the Widget ID of a widget
	pointed by the mouse button, ie. by clicking on button 1,
	I would like the widget ID to be returned, or if
	there is no widget, returns null.

	I hope someone can help.  Thank you.



Kia Chek Phua
phuakiac@vms1.iscs.nus.sg
Dept of Info. Sys. & Comp. Sci.
National U of Singapore
Newsgroups: comp.windows.x.motif,comp.windows.x
From: wil@mbunix.mitre.org (Kim)
Subject: Looking for X/Motif interface for snapshot (openwin)
Organization: The MITRE Corp., Bedford, Ma.
Date: Mon, 9 Nov 1992 15:35:39 GMT

Hello netters,

I am looking for X/Motif interface for snapshot (openwin) or software with
similar functionality (i.e. ability to snap a screen, window or region 
and save the image in a sun raster or another common file format).  I 
want to isolate the user from the shell prompt.  It would be nice to have 
a fancy Graphic User Interface, but I will take anything.  I am running
Sun OS 4.1.1 on SUN 1+ and 2. We want to migrate away from openwin and our 
dependent on openwin libraries.  Are there any programs out there compatible 
with Motif?  Are they avaiable on ftp sites?  Are there any commerically 
available products?

Thanks in advance,

Willis Kim
wil@mbunix.mitre.org
Newsgroups: comp.windows.x.motif
From: sardella@world.std.com (Norman R Sardella)
Subject: Need solution to translation manager in motif 1.1
Organization: The World Public Access UNIX, Brookline, MA
Date: Sat, 7 Nov 1992 22:49:11 GMT


Hello Motif hackers.

I need a solution to the tranlation manager in Motif.

I been trying to bind keys to call my predefined actions but have
had trouble when defining them in resource files. (Motif 1.1.2/X11R4)

Basically all I want to do have a action be called
in my application (anywhere) when a Key like F1 is entered.


I have some initial key binding(emacs like) for XmText in my 
Xdefaults. I put binding(translations) for keys to widgets in my 
app default file with #override
and it wipes out my previous bindings and Motif defaults ones.
I also to this for list and menu bars and I can not select anything in list
or select menu bar option.

I wrote a small parser that would read in a file with translations
after XtAppInitialize.  This seems to solve my problem of overwriting
Motif predefined binding.  The problem is this was only on a per widget 
basis( I can not wild cars like *.XmText.translation: ).  

  Does anyone have a solution to binding keys like a resource
file that won't screw up the predefined Motif translations
for a widget?  My original design just needs
and action to be called anywhere in an application no matter
waht widget you are in.

Is it possible to use Xrm routines to read in another app-defaults file
after XtAppInitialize?
--
 
Norman "STORMIN" Sardella
Raytheon Equipment Division (SSL)
Marlborough, Mass
Work: sardella@atcd01.iatc.ed.ray.com, Norman.Sardella@atcd01.iatc.ed.ray.com
Leisure: sardella@world.std.com 
Home: uunet!world!stormy!norm

-- 
Norman "Stormin" sardella
Leisure: sardella@world.std.com 
Home: uunet!world!stormy!norm
Work: sardella@atcd01.iatc.ed.ray.com 
Organization: Junior, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.windows.x.motif
Date: Wed, 11 Nov 1992 14:09:06 -0500 
From: "Jae W. Chang" <jc7j+@andrew.cmu.edu>
Subject: help with simple fonts question

I have an application using Xt and Motif. It uses the default widget
fonts, and it doesn't specify fonts or XmFontList or anything *font* at
all in the code. What is the simplest way to specify fonts for the
application? Is there a way to do it by simply adding the right lines
to the Xdefaults file?

Thanks,
Jae

--------------------------
jae@cmu.edu 
Newsgroups: comp.windows.x.motif
From: jamull01@starbase.spd.louisville.edu (Mr. Positive)
Subject: RowColumn Widget Question
Date: Tue, 10 Nov 1992 03:38:06 GMT
Organization: University of Louisville


   I'm relatively new to programming motif applications, so hopefully this
question isn't too simple.  What I would like to do is after creating
a RowColumn widget (say pushbuttons for example) I would like to be
able to control the sensitivity of individual buttons in a given row or column.
Is this possible ? If so how (as I've yet to discover it) ?  Please email
replies.  Any help offered will be greatly appreciated.
From: peterh@marvin.prz.tu-berlin.de (Peter Hofmann)
Newsgroups: comp.windows.x.motif
Subject: Re: C++ method as callback
Date: 10 Nov 92 18:27:25 GMT
Organization: TU-Berlin TUBKOM, Germany


  What is the proper way to use
  a C++ class method as a callback
  routine?

I define a base class for all classes I wish to have member functions called
of. Here is the declaration:

// *** This class enables callbacks to member functions

// +++ useful Macros

#define CALLBACK_PARAMS Widget widget,caddr_t clientData,caddr_t callData
#define CALLBACK(callback) void callback(CALLBACK_PARAMS)
#define ADD_CALLBACK(widget,String,callback,clientData)\
  AddCallback(widget,String,(AppCallbackProc)&callback,clientData)

class AppCallback;

typedef void (AppCallback::*AppCallbackProc)(CALLBACK_PARAMS);

struct AppCallbackRec
{
  AppCallbackProc callback;
  AppCallback *object;
  caddr_t clientData;
  AppCallbackRec *next;
};

class AppCallback
{
  AppCallbackRec *callbacks;
  void Callback(AppCallbackProc callback,Widget widget,
		caddr_t clientData,caddr_t callData);
protected:
  // This Function is to be called by subclass memberfunctions
  // to register a callback to another member function
  void AddCallback(Widget widget,String callbackResource,
		   AppCallbackProc callback,
		   caddr_t clientData);
public:
  AppCallback():callbacks(0) {}
  virtual ~AppCallback();
  friend void Callback(Widget widget,caddr_t clientData,caddr_t callData); 
};

The definitions:

void AppCallback::Callback(AppCallbackProc callback,
			   Widget widget,caddr_t clientData,caddr_t callData)
{
  (*callback)(widget,clientData,callData);
}

static void Callback(Widget widget,caddr_t clientData,caddr_t callData)
{
  AppCallbackRec *p = (AppCallbackRec*)clientData;
  (p->object)->Callback(p->callback,widget,p->clientData,callData);
}

void AppCallback::AddCallback(Widget widget,String callbackResource,
			      AppCallbackProc callback,
			      caddr_t clientData)
{
  AppCallbackRec *p = new AppCallbackRec;
  p->next = callbacks;
  p->callback = callback;
  p->object = this;
  p->clientData = clientData;
  callbacks = p;
  XtAddCallback(widget,callbackResource,
		(XtCallbackProc)&::Callback,(caddr_t)p);
}

AppCallback::~AppCallback()
{
  AppCallbackRec *p;
  while (callbacks != 0)
  {
    p = callbacks;
    callbacks = callbacks->next;
    delete p;
  }
}

Usage example:

class example : public AppCallback
{
  void activateCB(CALLBACK_PARAMS)
  {
    // take appropriate action
  };
public:
  example()
  {
    Widget widget = XmPushbuttonCreate(...);
    ADD_CALLBACK(widget,XmNactivateCallback,activateCB,NULL);
  };
};

I hope this helps.
-- 
Peter Hofmann                     e-mail: peterh@prz.tu-berlin.de
Technical University Berlin
Einsteinufer 17                   Tel. ++49-(0)30-314-21292
W-1000 Berlin 10                                     -22612
Newsgroups: comp.windows.x.motif
From: liuxia@wam.umd.edu (New VaxHacker)
Subject: motifburger program needed
Organization: University of Maryland, College Park
Date: Fri, 6 Nov 1992 17:42:18 GMT

Sorry to bother you guys. Could someone send me
a copy of the motifburger program (the example
of UIL that comes with the motif release ) please?
Thanks very much.

Liu
From: jarnold@spot.wrc.xerox.com (jeff arnold esc1-318)
Newsgroups: comp.windows.x.motif
Subject: Get rid of "Resize" option from the system/shell menu
Date: 9 Nov 92 19:25:22 GMT
Organization: Xerox


Hi,
  Could someone please tell me how to get rid of the "RESIZE"
option from the system/shell menu.  I tried the following but
it didn't work.


int mwmDecorations=0, mwmFunctions=0;

   mwmDecorations = MWM_DECOR_BORDER | MWM_DECOR_TITLE 
                    | MWM_DECOR_MENU | MWM_DECOR_MINIMIZE;
   mwmFunctions   = MWM_FUNC_MOVE | MWM_FUNC_MINIMIZE |
                    MWM_FUNC_CLOSE;

   argcnt = 0;
   XtSetArg(args[argcnt], XmNmwmDecorations, mwmDecorations); argcnt++;
   XtSetArg(args[argcnt], XmNmwmFunctions, mwmFunctions); argcnt++;
   shell = XtAppCreateShell(NAME, APPCLASS, applicationShellWidgetClass,
                            display, args, argcnt);
   ...


  Note that mwmDecorations worked but mwmFunctions didn't.

Thanks,

Henry.
From: adrian@ORA.COM (Adrian Nye)
Newsgroups: comp.windows.x.motif
Subject: Re: Errata, Volume Two, Xlib Reference Manual
Date: 13 Nov 92 07:48:26 GMT
Distribution: inet
Organization: The Internet


> XSetIOErrorHandler (Page 558, top)
>    "If an XYBitmap format is used, then the depth of d must be 1,..."
> 
>  	should be:
> 
> 	"If an XYBitmap format is used, then the depth of image must be 1,..."
>                                                       ^^^^^
> 	(The drawable may have a depth 1 or greater than one.)
> 

Should be XPutImage (Page 558, top)

Sorry!

*************************************************************
Adrian Nye (314) 531-1231    Editor, The X Resource
O'Reilly & Associates, Inc., Publishers of Nutshell Handbooks
4466 West Pine Blvd.  20-G   St. Louis MO 63108
Internet:   adrian@ora.com    	UUCP:   uunet!ora!adrian      
*************************************************************
From: DBOHDAL@JAGUAR.ESS.HARRIS.COM
Newsgroups: comp.windows.x.motif
Subject: Re-arranging children in a row column.
Date: 12 Nov 92 22:38:00 GMT
Distribution: inet
Organization: The Internet

I need to be able to rearrange the order of homogeneous children in 
a row column.  I'm using Motif 1.1.4 and X11R5 on a SUN.  Does anyone
know how to do this?  

Thanks,
Debbie dbohdal@jaguar.ess.harris.com
From: mattb@sdd.hp.com (Matt Bonner)
Newsgroups: comp.windows.x.motif
Subject: Re: HELP WITH XmLIST
Date: 5 Nov 1992 17:25:15 GMT
Organization: Hewlett-Packard, San Diego Division
Distribution: inet
NNTP-Posting-Host: hpsdlg16.sdd.hp.com
Keywords: XmList, No dice

In article <1dbet9INNrrh@usenet.INS.CWRU.Edu>, mxa11@po.CWRU.Edu (Madhavi Ahuja) writes:
|> 
|> I have a scrolledlist with n items, m of which are selected.
|> I need to set k of the m to a different color. Is there any
|> way of doing this ??? 
|> 
|> Madhavi
|> (ma@acqdev.eeg.ccf.org)

From the Motif FAQ (which I would encourage you to get a copy of and
read.  It really has a LOT of useful information:

Subject: 49) Can I have items with different colours in a list?

Answer: No.  The list contains XmStrings, and these only allow text in various
character sets. Since the items are XmStrings, you can already change the font
of an item by replacing it with an item with the same text and a different
charset tag.  Adding support for color would require modification of the
internal data structure in XmList as well as modification to the drawing
routines.  A possible workaround is to use a rowcolumn of buttons which can be
individually set.  However, you would have to do all list functionality
yourself.

In other words, you're out of luck.  Depending on your application,
there may be other alternatives.

Regards,
Matt
-- 

Matt Bonner                  |  Email: mattb@sdd.hp.com
Hewlett-Packard Company      |  Snail: 16399 West Bernardo Drive
Ink-jet Components Division  |         San Diego, CA  92127-1899
From: jdh@bu-pub.bu.edu (Jason Heirtzler)
Newsgroups: comp.windows.x.motif
Subject: shared libs for 1.1.3 on sun4
Date: 12 Nov 92 16:28:49 GMT
Organization: Boston University, Information Technology

Can someone send me their notes for building shared libraries
for motif 1.1.3 on the sun4, sunos 4.1.x ?

If there's sufficient interest (and an answer!) i'll either
send email, or post it back to the 'net.

Thanks!

jdh@bu-pub.bu.edu
From: martinh@hpopd.pwd.hp.com (Martin Harris)
Date: Mon, 9 Nov 1992 12:02:18 GMT
Subject: Re: Can you run Motif in monochrome?
Organization: Hewlett-Packard SSG/CCSY-PWD, UK.
Newsgroups: comp.windows.x.motif

>Can you run Motif in monochrome (1-bit) or 2-bit?
>
>I've seen Open Look run on B/W screens, but Motif screens always seem to
>be on grayscale or colour monitors.
>
>If Motif *can* be run in B/W, how are window borders (etc.) displayed?
>Instead of gray/colour, are they just white or are they dithered to
>pseudo-gray?

This can be done by using various dithered patterns (bitmaps) to fool the
eye into seeing grays. e.g. a push button could use a 50% dithered top
shadow, solid white background, and a solid black bottom shadow to
give the 3D effect. The only problem with using dithered patterns as 
backgrounds to widgets holding text is the font tends to breakup, using 
a bold font helps.
  There is a good section on this in Shiz Kobara's book "Visual Design
with OSF/Motif" (ISBN 0-201-56320-7).

Hope this is helpful

Martin Harris

-------------------------------------------------------------------------------
Pinewood Information Systems Division
Hewlett Packard Limited
Nine Mile Ride                   Phone    : +44-(0)344 763746
Wokingham                        Openmail : Martin Harris/Pinewood, lab, hpopd
Berkshire                        Unix     : martinh@hpopd.pwd.hp.com
RG11 3LL                         X400     : C=GB,ADMD=GOLD 400,PRMD=HP,ORG=HP
England                                     OU1=Pinewood,SN=Harris,GN=Martin
-------------------------------------------------------------------------------
From: mjl@dino.ph.utexas.edu (Maurice J. LeBrun)
Newsgroups: comp.windows.x.motif
Subject: Distribution status of "Mastering OSF/Motif.." code
Date: 7 Nov 92 02:17:57 GMT
Article-I.D.: dino.MJL.92Nov6201757
Distribution: comp
Organization: The University of Texas at Austin

Hello all,

Can someone tell me what the distribution status is for the example programs
from the book "Mastering OSF/Motif Widgets"?  I found the example programs
very helpful -- and used them to help construct a Motif interface for a
graphics package that I intend to widely distribute (freely).  Is there any
problem with this?  I sent mail to the suggested email address for
suggestions, questions, etc but got no reply.

--
Maurice LeBrun    mjl@fusion.ph.utexas.edu
Institute for Fusion Studies, University of Texas at Austin

Faire de la bonne cuisine demande un certain temps.  Si on vous fait
attendre, c'est pour mieux vous servir, et vous plaire.
                                [menu of restaurant Antoine, New Orleans]
Newsgroups: comp.windows.x.motif
From: meir@tfs.com (Meir Zaid)
Subject: Re: Backing Store
Organization: TRW Financial Systems
Date: Thu, 12 Nov 1992 21:09:38 GMT


> Meir,
> It strikes me as odd that you would use XCreateSimpleWindow or 
> XCreateWindow in a Motif program.  Please show us a small sample
> program that
> illustrates the problem and I am sure someone will be able to help
> - This is
> in fact a good policy with any problem.
> 
> Cheers
> Mark Levison
> mark@bhanu.andyne.on.ca

Actually I am not using XCreateSimpleWindow or XCreateWindow.  I am using
the motif routines for creating the windows.  The reason I brought up
XCreateWindow was that only windows created with XCreateWindow (rather
than XCreateSimpleWindow) will enable Backing Store.  Any widget library
must be using one of those XLib routines to create the windows, so my
question was, does motif use XCreateWindow?  I thought it does, so why
doesn't Backing Store work for me?
-- 

Meir Zaid			meir@tfs.com
TRW Financial Systems		(510) 704-3362
Berkeley,  California		Fax: (510) 845-7311
From: geira@stud.cs.uit.no (Geir Arnfinn Forsmo)
Newsgroups: comp.windows.x.motif
Subject: Transformations in 3D
Keywords: Codes for transformations in 3D
Date: 12 Nov 92 17:34:52 GMT
Organization: University of Tromsoe, Norway

Hey, everybody!
	I'm just working on a task, where I shall make 3D transformations on
objects such as spheres, cylinders, surfaces etc. I'm implementing this in
X/Windows, but transformations in 3D is not the easiest part of what I've done.
So please if there is anyone out there who has any code for this and also wants
to share it with me, I'm very grateful. I'm running out of time.

	
Newsgroups: comp.windows.x.motif
From: dec@alex.com (Doug Clinton)
Subject: Re: Backing Store
Organization: Alex Technologies Ltd
Apparently-To: mail2news@news.demon.co.uk
Date: Thu, 12 Nov 1992 09:43:17 +0000

In article <1992Nov11.023944.6204@tfs.com>, meir@tfs.com (Meir Zaid) writes:
|> 
|> I am trying to actvate this feature in a Motif application that I am
|> working on.  I have some graphical charts displayed in Motif drawing
|> area widget, and I need to redraw these windows whenever they are
|> exposed, or resized.  From some reason this does no work.  The Drawing
|> Areas do not refresh.  My terminal DOES have Backing Store capability
|> and it IS activated.  The only other thing I can think of is that the
|> Backing Store only works for windows created with XCreateWindow()
|> instead of XCreateSimpleWindow().  The creation of my windows are done
|> by the Xm Motif routines.  Are these using XreateSimpleWindow() ?
|> 
|> Any other ideas of why the backing store does not work?
|> -- 


You must not rely on backing store to provide your redraw. Just
because it is active does not mean that every window will be stored
when obscured.

You must provide an XmExpose callback for your drawing area which
refreshes the window.


-- 
---------------------------------------------------------------
Doug Clinton				Alex Technologies Ltd
dec@alex.com				CP House,
					97-107 Uxbridge Road,
					Ealing, London, W5 5TL
---------------------------------------------------------------
"Just because someone famous said it doesn't make it true."
				- Douglas E. Clinton
---------------------------------------------------------------
From: al@osf.org (Alastair Gourlay)
Newsgroups: comp.windows.x.motif
Subject: Re: Q: Translations for Tab on an HP720
Date: 7 Nov 92 18:43:45 GMT
Distribution: inet
Organization: The Internet


> I'm using an HP720 and I'd like to capture the TAB key that's on the
> numeric keypad - it seems to be a different key than the TAB on the left
> side of the main keyboard.  I've tried things like:

> <Key>Tab: EditCell( Down)
> <Key>osfRight: EditCell( Down)

> But neither one seems to make any difference.

I'd guess that the keypad Tab key is bound to the keysym XK_KP_Tab, try:
  <Key>KP_Tab: EditCell( Down)

To verify this, run xev, and press the key in question. The server keysym binding
will be shown.


	Alastair Gourlay.

Newsgroups: comp.windows.x.motif
From: valsta@kuusi.metla.fi (Lauri Valsta)
Subject: UIMX: e-mail or FAX contact sought
Organization: Metsantutkimuslaitos
Date: Fri, 6 Nov 92 12:18:47 GMT

I would like to get in contact with Visual Edge Software, the maker of
UIM/X, a user interface management system. I have only their mail
address (slow) and phone (difficult because of time zone difference).
Anybody know their e-mail or FAX contact?


-- 
| Lauri T. Valsta   Finnish Forest Research Institute |
| valsta@metla.fi   Helsinki, Finland                 |
From: c23mkb@kocrsv01.delcoelect.com (Mahesh Bagade)
Newsgroups: comp.windows.x.motif
Subject: What are various reasons for this error?
Date: 11 Nov 92 17:49:53 GMT
Organization: Delco Electronics Corp.
Originator: c23mkb@kocrsw19


Dear Motif experts,

Can any body give me various reasons and solution if possible for 
the following error when I try to bring up my motif based application:

"X Toolkit Error: someone pulled the keyboard out from under us"

This happens only once in a blue moon. Your input in this regards
is highly appreciated.

Thanks

Mahesh