HDTenEightyP/NetNews huggingface dataset:
From: tanenbla@cs.columbia.edu (Michael Tanenblatt)
Subject: readjusting scrollbars in viewport
Organization: Columbia University Department of Computer Science
Distribution: comp
Date: Thu, 1 Oct 1992 22:41:42 GMT


Now I have one other question about the Athena Widget set.  I have a
viewport widget which contains a list widget.  The contents of the list
widget changes, depending upon user actions.  My problem is that the
scrollbars do not automatically adjust to the fact that the list may have a
different number of items.  So, for example, if the list had 100 items,
then it is modified to have 2000 (using XawListChange), the scrollbars will
not allow the user to scroll past the first 100 items.  I assume that there
is a (simple?) way to deal with this, but I haven't been able to track it
down.  Does anybody out there have an answer to this that they will share?

Thanks...Mike


--
Michael Tanenblatt
tanenbla@flounder.cs.columbia.edu
Newsgroups: comp.windows.x.intrinsics
From: huttar@hp750.itg.ti.com (Lars Huttar)
Subject: Re: deactivate buttons
Date: Mon, 28 Sep 1992 10:15:16 GMT
Organization: IEF Development, Texas Instruments Inc., Plano Texas
X-Disclaimer: This message was written by a user at Texas Instruments Inc.
              The opinions expressed within are those of the user and not
              necessarily those of Texas Instruments.


> I have an application which creates a control panel using Xtoolkit and
> motif. The control panel is basically a RowColumn widget and has a
> number of buttons. Depending on a series of conditions which change
> during the application I would like to be able to deactivate some of
> the buttons.  How do I do this?

Use XtSetSensitive(pushbutton, False).

| |    Lars Huttar                          3
 \|/|  huttar@hp750.itg.ti.com      ||   _______           ____      ||
  |    (Opinions herein are not     ||:  |  |  |   |   |   |  |   | :||  Mars
       necessarily those of TI.)    ||  _| _| _|  _|  _|  _| _|  _|  ||
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.windows.x.intrinsics
Subject: Re: Where is the Athena documentation???
Date: 28 Sep 1992 10:38:19 GMT
Organization: CS Department, Dortmund University, Germany
Distribution: world
NNTP-Posting-Host: tommy
Keywords: athena, x, xt

In article <ucosmo.717378388@mcl>, ucosmo@mcl.ucsb.edu (Boris Burtin) writes:
|> I am confused!  Our system has man pages for all the Xt functions, but
|> I can't find _anything_ on Athena.  Are there pages that come with the
|> distribution that I've been missing?  Is there documentation somewhere 
|> on the net?

There are no online manual pages for the Athena widgets. The documentation
you will find in the directory mit/doc/Xaw, as nroff/troff source. A
hardcopy version in PostScript is located in mit/hardcopy/Xaw.

(If you want to have online manual pages, why not write and contribute
them? :-))

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-W4600 Dortmund 50       |\|\    Fax : +49 231 755-2386
From: wade@austin.cs.utk.edu (reed wade)
Newsgroups: comp.windows.x.intrinsics
Subject: default resources
Date: 29 Sep 92 21:13:09 GMT
Reply-To: wade@austin.cs.utk.edu (reed wade)
Organization: Computer Science Dept, University of Tennessee, Knoxville
NNTP-Posting-Host: austin.cs.utk.edu



Hi,

What is the most reasonable way to assure that one set of resources
will be used by my widget on a mono display and another set if it
is running on a color display?

The problem is that I've got a widget that makes use of 4 colors
when run on a color display. When on a mono display I want certain
of these features to contrast. Plus it needs to work in reverseVideo.

thanks for anything useful,

Reed Wade
wade@cs.utk.edu
Newsgroups: comp.windows.x.intrinsics
From: dbrooks@penge.osf.org (David Brooks)
Subject: Re: default resources
Organization: Open Software Foundation
Date: 29 Sep 92 22:21:20

wade@austin.cs.utk.edu (reed wade) writes:
> What is the most reasonable way to assure that one set of resources
> will be used by my widget on a mono display and another set if it
> is running on a color display?

Assuming you are using X11R5, the best way is to use the new escape
provided in file search-paths, and the pseudo-standard hinted at by a few X
clients.

Put your mono defaults in an app-defaults file Myclass (in either
/usr/lib/X11/app-defaults or your XAPPLRESDIR).  Put your color defaults in
Myclass-color.  And arrange for your Xdefaults file to load this resource:

	*Customization: -color

when the screen is a color one.  For a little more elaboration, use this:

	#ifdef COLOR
	*Customization: -color
	#else
	*Customization: -mono
	#endif

Now you can have your files called MyClass-color and MyClass-mono, or
MyClass (the color version) and MyClass-mono; it'll all work.

Finally you can use the #include directive to put the color-independent
resources into a single file.
--
David Brooks					dbrooks@osf.org
Open Software Foundation			uunet!osf.org!dbrooks
Four more months!  Four more months!
From: srm@comp.lancs.ac.uk (Simon Monk)
Newsgroups: comp.windows.x.intrinsics
Subject: Z font for X request.
Date: 6 Oct 92 08:49:17 GMT
Organization: Department of Computing at Lancaster University, UK.

Does anyone have, or know where I can get a font that has the
symbols used in the Z specification language ?

Many thanks.

Simon.


Mr. S R Monk
Dept of Computing
Engineering Building
University of Lancaster
Lancaster
LA1 4YR
England
U.K.
Tel 44-524 65201 x 4117
Fax 44-524 381707
email srm@comp.lancs.ac.uk
From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
Newsgroups: comp.windows.x.intrinsics
Subject: Re: problem with actions
Date: 1 Oct 92 22:58:57 GMT
Distribution: comp
Organization: VPI&SU Computer Science Department, Blacksburg, VA

In article <TANENBLA.92Oct1142332@flounder.cs.columbia.edu> tanenbla@cs.columbia.edu (Michael Tanenblatt) writes:

  >I getthe following message when I run the program:
  >
  >Warning: Actions not found: DoOpen
  >
  >I have the following relevant stuff in my code:
  >
  >#define doubleClickTranslation "<Btn1Up>(2+) : Set() Notify() DoOpen() "
  >static XtActionsRec doubleClickAction[] = {
  >  {"do_open", (XtActionProc)DoOpen},
  >};
 

The translation table must refer to the action "do_open" and NOT "DoOpen" 

Corrected translation :

  #define doubleClickTranslation "<Btn1Up>(2+) : Set() Notify() do_open() "

---
S Ramakrishnan, CS Dept, McBryde Hall, VaTech
From: shirley@gothamcity.jsc.nasa.gov (Bill Shirley [CSC])
Newsgroups: comp.windows.x.intrinsics
Subject: Re: Does XtAppNextEvent() return on a timeout?
Date: 24 Sep 1992 14:25:24 GMT
Distribution: comp
Organization: Software Technology Lab - NASA/Johnson Space Center

In article <1992Sep23.191429.18658@mintaka.lcs.mit.edu>, converse@expo.lcs.mit.edu (Donna Converse) writes:
|> 
|> huttar@hp750.itg.ti.com (Lars Huttar) writes:
|> 
|> > I'm pretty sure XtAppNextEvent won't return after dispatching a timeout
|> > (until it gets an X event).  Could anyone verify this?
|> 
|> XtAppNextEvent will not return until an X event is received.
|> Timeouts are not X events.

It does dispatch the timeout.

It does not return until it gets an event.

You could send a null event from the timeout.
 (only after checking that there are no events with XtAppPeekEvent)

Maybe write a little function to call before exiting any timer function

-bill
From: wcn@cs.brown.edu (Wen-Chun Ni)
Subject: Re: Where is the Athena documentation???
Keywords: athena, x, xt
Organization: Brown University Department of Computer Science
Date: Tue, 29 Sep 1992 18:08:39 GMT

In article <1a6narINNsbm@fbi-news.Informatik.Uni-Dortmund.DE> klute@tommy.informatik.uni-dortmund.de (Rainer Klute) writes:
>In article <ucosmo.717378388@mcl>, ucosmo@mcl.ucsb.edu (Boris Burtin) writes:
>|> I am confused!  Our system has man pages for all the Xt functions, but
>|> I can't find _anything_ on Athena.  Are there pages that come with the
>|> distribution that I've been missing?  Is there documentation somewhere 
>|> on the net?
>
>There are no online manual pages for the Athena widgets. The documentation
>you will find in the directory mit/doc/Xaw, as nroff/troff source. A
>hardcopy version in PostScript is located in mit/hardcopy/Xaw.


A related problem: the doc in mit/doc/Xt can't be printed without
messing up the printer. Has anybody tried it?



Wen-Chun Ni
Newsgroups: comp.windows.x.intrinsics
From: mstorey@csr.UVic.CA (Margaret-Anne D Storey)
Subject: Explicit Positioning of Windows
Originator: mstorey@csr
Organization: University of Victoria, Victoria, BC, Canada
Date: Fri, 2 Oct 92 22:59:40 GMT

Hi,

I am currently in the midst of writing a large motif system running
on an IBM RS6000.  This system has many windows.  I would like to be
able to explicity position the windows (shells) myself.  Is there
some way to do this?

Many thanks in advance!
Peggy Storey,
University of Victoria,
British Columbia,
Canada.
(mstorey@csr)



Newsgroups: comp.windows.x.intrinsics
From: tas@engr.ucf.edu (Taha Sidani)
Subject: Help: Problems coding with Athena Widgets
Keywords: Athena, Xtoolkit, XWindows 
Organization: engineering, University of Central Florida, Orlando
Date: Tue, 6 Oct 1992 13:26:10 GMT


I am trying to use the Athena Widgets on X11R5.
I created a form widget in which I dynamically create a number
of child forms that are mouse sensitive. see below

            --------------------------------------------
            |parent form                               |
            |                                          |
            |       ----------------------------       |
            |       |       child form 1       |       |
            |       ----------------------------       |
            |                                          |
            |       ----------------------------       |
            |       |       child 2            |       |
            |       ----------------------------       |
            |                                          |
            |       ----------------------------       |
            |       |       child 3            |       |
            |       ----------------------------       |
            |------------------------------------------|


I want to be able to insert these children forms in any order.
I set the Insert_Postion procedure for the parent form to always insert
at the top (as was described in "X Window System Toolkit" book by
Paul J. Asente & Ralph R Swick).  Now when I create the children forms,
it insert them on top of each other. 
However, if I get  the XtNchildren WidgetList of the parent form, and print the IDs to
the screen, They are ordered in the manner I specified.
How can I get the parent form to draw its children in the order they are
specified in its WidgetList of XtNchildren ??
and How come when I delete one of its children it unmaps it but does not 
redraw  all of its children?  I delete the child using Unrealize and Destroy Xt functions.
It waits for me to create ANOTHER child before refreshing the screen. I tried to Do XtRealize
 for the parent widget and I tried Managechildren and Unmap then Map, Nothing seems to work. 

The children are created using createmanagedwidget.
I can not get the parent form to refresh the display right after the deletion of a child.


Please send the reply to

taha@ists.engr.ucf.edu

Thanks for your help


Xref: sparky comp.windows.x.intrinsics:377 comp.windows.x:17518 news.answers:3314
Newsgroups: comp.windows.x.intrinsics


How to, programmatically, create an "OverrideShell" as the topmost widget
of an X application which needs to create a MainWindow child under the
topmost "OverrideShell" ?


Specifically, the application will 

  pop up a window which requires 

  user to enter text and 
  
  window will close only after return key is pressed 
  or a button on the window is pressed,

  inputfocus then is released.



I have tried XtInitialize() with both XmNoverrideRedirect and
XmNsaveUnder resouces/atoms set to True. It did not work


Any help is very much appreciated.


thanking you in advance.
quek
From: tonyf@peacock.ims.com (Antonio Freixas)
Newsgroups: comp.windows.x.intrinsics
Subject: Re: default resources
Date: 30 Sep 92 14:15:28 GMT
Reply-To: tonyf@ims.com
Organization: Integrated Measurement Systems, Inc.

In article <DBROOKS.92Sep29222120@penge.osf.org>, dbrooks@penge.osf.org (David Brooks) writes:
|> Put your mono defaults in an app-defaults file Myclass (in either
|> /usr/lib/X11/app-defaults or your XAPPLRESDIR).  Put your color defaults in
|> Myclass-color.  And arrange for your Xdefaults file to load this resource:
|> 
|> 	*Customization: -color
|> 
|> when the screen is a color one.  For a little more elaboration, use this:
|> 
|> 	#ifdef COLOR
|> 	*Customization: -color
|> 	#else
|> 	*Customization: -mono
|> 	#endif
|> 
|> Now you can have your files called MyClass-color and MyClass-mono, or
|> MyClass (the color version) and MyClass-mono; it'll all work.

I tried this and it seems to work, but I got to thinking: Aren't the
resources in the RESOURCE_MANAGER property read last (after the
app-defaults file)?  So how can a resource in the RESOURCE_MANAGER
affect the decision of which app-defaults file to read?

Just curious...

					         -- tonyf@ims.com
					       (503) 626-7117 x1349
Newsgroups: comp.windows.x.intrinsics
From: fineman@markov.arc.nasa.gov (Charles Fineman)
Subject: Re: problem with actions
Organization: NASA/ARC Information Sciences Division
Distribution: comp
Date: Fri, 2 Oct 1992 00:42:08 GMT

On 1 Oct 92 19:23:32 GMT, tanenbla@cs.columbia.edu (Michael Tanenblatt) said:


>Hi,

>I am having trouble registering an action procedure.  I am using the Athena
>widget set, by the way.  All I am trying to do is have a function executed
>when an item in a list widget is double-clicked upon.  For some reason, I
>getthe following message when I run the program:

>Warning: Actions not found: DoOpen

>I have the following relevant stuff in my code:

>#define doubleClickTranslation "<Btn1Up>(2+) : Set() Notify() DoOpen() "
>static XtActionsRec doubleClickAction[] = {
>  {"do_open", (XtActionProc)DoOpen},
>};

>Widget xGFFileList;


>static void
>DoOpen (w, event, params, nparams)
>{
>   [...code omitted to save bandwidth...]
>}


>[... and later, after I set up my widgets, but before I call XtPopup(): ]

>XtOverrideTranslations (xGFFileList,
>			XtParseTranslationTable (doubleClickTranslation));

>XtAppAddActions (XtWidgetToApplicationContext (appTopLevel),
>		 doubleClickAction,
>		 XtNumber (doubleClickAction));

>It all seems OK to me, but it doesn't work.  Any clues out there?
>--
>Michael Tanenblatt
>tanenbla@flounder.cs.columbia.edu

Someone already pointed out that you need to refer to do_open rather than
DoOpen in your translation. I think you also need to register the action
before using it in a translation so, you need to switch the order in which
you call XtOverrideTranslations and XtAppAddActions.

--
From: melby@dove.yk.Fujitsu.CO.JP (John B. Melby)
Newsgroups: comp.windows.x.intrinsics
Subject: Re: Explicit Positioning of Windows
Date: 5 Oct 92 01:51:31 GMT
Organization: Open Systems Dept. Div. 2 Sect. 1, FUJITSU LTD.
In-reply-to: mstorey@csr.UVic.CA's message of 3 Oct 92 07:59:40 JST

>I would like to be
>able to explicity position the windows (shells) myself.  Is there
>some way to do this?

(Related comp.windows.x.intrinsics FAQ:  #11)

Most window managers will place your windows if the geometry hints are set.
You can set the XtNgeometry resource of each of your shells to something
like "+200+150" (for base windows, you will probably want to do this in
your resource file).

-----
John B. Melby
Fujitsu Limited, Yokohama
melby%yk.fujitsu.co.jp@fai.com
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.windows.x.intrinsics
Subject: Re: default resources
Date: 1 Oct 1992 08:26:53 GMT
Organization: CS Department, Dortmund University, Germany
Distribution: world
NNTP-Posting-Host: tommy

In article <1992Sep30.141528.9773@ims.com>, tonyf@peacock.ims.com (Antonio
Freixas) writes:
|> I tried this and it seems to work, but I got to thinking: Aren't the
|> resources in the RESOURCE_MANAGER property read last (after the
|> app-defaults file)?  So how can a resource in the RESOURCE_MANAGER
|> affect the decision of which app-defaults file to read?

No, the RESOURCE_MANAGER property is read first. For the (rather
complicated) details see chapter 2.3 in "X Toolkit Intrinsics - C Language
Interface, X Window System, X Version 11, Release 5"

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-W4600 Dortmund 50       |\|\    Fax : +49 231 755-2386
From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
Newsgroups: comp.windows.x.intrinsics
Subject: Re: widget access
Date: 30 Sep 92 22:13:26 GMT
Organization: VPI&SU Computer Science Department, Blacksburg, VA

In article <BvBF57.57p@helios.physics.utoronto.ca> romosan@helios.physics.utoronto.ca (Alex or Sandi) writes:
  
  >how do i access a widget created by one routine in another
  >routine without explicitly (that is as an argument) passing the
  >widget? i tried just redeclaring the widget in the second routine but
  >i got an error message. i am sure there must be a way to do this.

What's this got to do with Intrinsics ?

---
S Ramakrishnan, CS Dept, McBryde Hall, VaTech
From: oj@miki.pictel.com (Oliver Jones)
Newsgroups: comp.windows.x.intrinsics
Subject: Re: Help: _XEnq() SEEMS to be leaking memory (_XQEvent structs)
Keywords: n
Date: 5 Oct 92 22:01:44 GMT
Organization: PictureTel Corporation

In article <28796@life.ai.mit.edu> gillett@rice-chex.ai.mit.edu (Walter E. Gillett) writes:
> ...the  program causes the widget to XCopyPlane() lots of bitmaps
>into a pixmap. ...
>    When I do lots of these XCopyPlane()'s my process starts eating
 up _XEQevent structs...

You want to call 

      XSetGraphicsExposures  (display, gc, False) ;

or otherwise set the graphics_exposures gc attribute to false.  That
way you won't get lots of NoExpose events, which are probably what is
eating up the space.
Newsgroups: comp.windows.x.intrinsics
From: mstorey@csr.UVic.CA (Margaret-Anne D Storey)
Subject: Pixmap problems
Originator: mstorey@csr
Organization: University of Victoria, Victoria, BC, Canada
Date: Wed, 30 Sep 92 06:20:17 GMT


Hi,

I am currently in the midst of implementing a large software
system in C++ and Motif, running on IBM RS/6000.

The application uses many windows which have drawingareas.
Therefore I need to look after expose events.  I am doing
this by drawing into a pixmap as I draw on a window and
then pasteing from the pixmap to the window when an 
expose event occurs.

I am using Xlib calls to do the drawings.  I am drawing
icons (drawn as pixmaps), lines and strings, with
the GCFunction in the gc set to GXxor.  Most things 
work ok, except it seems that:
	XDrawString into a pixmap with GXxor
does not work!

I have tried all the Xlib Drawstring calls and the motif
ones.  They all have the same problem!  Perhaps it might 
have something to do with fonts, but I have tried setting
different fonts.

I am at my wits end, as the system is unusable due to 
this problem!
If anyone has any info or suggestions I would really
appreciate them!  

Does anyone know where I could ftp an xlib or
motif bug list?

Many thanks!

Peggy Storey,
Department of Computer Science,
University of Victoria,
British Columbia, Canada.
(mstorey@csr.uvic.ca)

Newsgroups: comp.windows.x.intrinsics
From: alan@neocad.com (Alan Frost)
Subject: Re: Xt-library
Organization: NeoCAD, Inc.
Date: Tue, 29 Sep 1992 22:23:10 GMT

There is another way to get the "_XtInherit not found" related to the one
described in the FAQ (106).

If you have a graphics layer that is also a shared library you will need
to place the Xt initialization call(s) in your graphics library in the .sa
portion of this library.  You need to do this to guarantee that _XtInherit
is loaded.

alan
From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
Newsgroups: comp.windows.x.intrinsics
Subject: Re: widget access
Date: 1 Oct 92 23:46:14 GMT
Organization: VPI&SU Computer Science Department, Blacksburg, VA


aperez@caribe.prime.com (Arturo Perez x6739) writes :

  >This has a lot to do with Intrinsics because there's a call that
  >could help romosan@helios.physics.utoronto.ca out.

Really ? What gives you any clew that you can do a widget tree traversal here ?
What gives you any clew that *any* portion of the widget tree above the desired 
widge, leave alone any of its ancestors, is visible in the function under 
question ? 
 
Maybe you could comprehend a lot of details by merely reading the 
phrased as :

   "
    >>how do i access a widget created by one routine in another
    >>routine without explicitly (that is as an argument) passing the
    >>widget? i tried just redeclaring the widget in the second routine but
    >>i got an error message. i am sure there must be a way to do this.

   ", 

I couldn't. 
 
There is probably some history to this (previous question, maybe ?)
that you know of so that you suggest the use of XtNameToWidget.
The quoted post is the first one that I came across in this thread.

  >Arturo Perez
  >ComputerVision, a division of Prime

---
S Ramakrishnan, CS Dept, McBryde Hall, VaTech
Newsgroups: comp.windows.x.intrinsics
From: romosan@helios.physics.utoronto.ca (Alex or Sandi)
Subject: widget access
Organization: The Factory of Dreams
Date: Tue, 29 Sep 1992 01:07:53 GMT


thanks to all who answered my original question. now i have one other
question. how do i access a widget created by one routine in another
routine without explicitly (that is as an argument) passing the
widget? i tried just redeclaring the widget in the second routine but
i got an error message. i am sure there must be a way to do this.
thanks.

--alex--


-- 
|   We shall sing the |  Without culture, and the relative freedom it |
| love of danger, the | implies, society, even when perfect, is but a |
| habit of energy and | jungle. This is why any authentic creation is |
| boldness.           | a gift to the future.                         |
Xref: sparky comp.windows.x.intrinsics:364 comp.windows.x:17391
From: bagchi@vuse.vanderbilt.edu (Sugato Bagchi)
Subject: Question about backing store
Originator: bagchi@irl1
Organization: Vanderbilt University School of Engineering, Nashville, TN, USA
Date: Mon, 28 Sep 1992 20:48:59 GMT

Is there any way to set the backing store attribute _while_ creating a
widget? The only way I can set this attribute is by using
XChangeWindowAttributes(). This can be done only after the widget is
realized.

-------------
Sugato Bagchi
From: romosan@helios.physics.utoronto.ca (Alex or Sandi)
Newsgroups: comp.windows.x.intrinsics
Subject: deactivate buttons
Date: 27 Sep 92 20:51:05 GMT
Organization: The Factory of Dreams


I have an application which creates a control panel using Xtoolkit and
motif. The control panel is basically a RowColumn widget and has a
number of buttons. Depending on a series of conditions which change
during the application I would like to be able to deactivate some of
the buttons.  How do I do this? Sorry if I am a bit vague, but I just
started using this, and so far I just adapted the examples given in
the vol 4 of the O'Reilley series and the motif programmer's guide.
Unfortunately they don't mention how to deactivate buttons. Any help
will be greatly appreciated. Thanks.

--alex--

-- 
|   We shall sing the |  Without culture, and the relative freedom it |
| love of danger, the | implies, society, even when perfect, is but a |
| habit of energy and | jungle. This is why any authentic creation is |
| boldness.           | a gift to the future.                         |