waashk/20ng huggingface dataset:
In article <C5xxq0.18M@cs.columbia.edu> ethan@cs.columbia.edu (Ethan Solomita) writes: >In article <BADING.93Apr23105229@athene.cs.tu-berlin.de> bading@cs.tu-berlin.de (Tobias 'Doping' Bading) writes: >> >>I know that the mwm has an resource to specify if positions are to be used for >>the border of a window or for the "user" window. Maybe other window managers >>have similar options. >>Another way to figure out the difference between the "user" window position >>and the window manager decoration window position is to subtract their >>positions. You just have to use XQueryTree and remember that the window manager >>decorations window is the parent of your window. Unfortunately, you can only >>figure out the decoration width and height after the window has been mapped >>this way. >> >	Another way would be to use GetGeometry to find out where >you are relative to the frame, and TranslateCoordinates to find >out where your window's upperleft corner really is.   As I've said before, there's no reliable way to find out the size of the window manager decoration.  If your window has been reparented, you can't assume that the window you're parented to is the window that holds all of the window manager decoration.  There may be several layers of windows.  Doing multiple XQueryTree's until you get to the root will work in most cases, but there's no guarantee that the outside decoration window is parented to the root window of the display (tvtwm).
Can anyone out there tell me how to get the total number of color cells allocated in the default colormap?  e.g.   colormap = DefaultColormap(mydisplay, myscreen);  The MAXIMUM number of allocated cells is given by DefaultCells(mydisplay, myscreen), but in general the number of cells actually allocated will be much less than this, depending on the color requirements of the windows currently in place. I'd like a way to determine this number. Thanks in advance!  Derek  ----------------------------------------------------------- | Derek C. Richardson    | Tel: (0223) 337548 x 37501     | | Institute of Astronomy | Fax: (0223) 337523             | | Cambridge, U.K.        |                                | | CB3 0HA                | E-mail: dcr@mail.ast.cam.ac.uk |
I am looking for a program I can insert into some code that will allow the title bar to be changed on a window dynamicly.  If one already is out there, I would appreciate a location so I don't have to create this from scratch.
# #I'm trying to write some code that lets me draw lines and do rubber-band #boxes in Motif/X.  I'm running on an 8-bit display for which I've created a #colormap and am using almost all of the colors.  I want to draw the lines #in a drawing area widget -- a widget in which I'm displaying a bitmap using #XPutImage().  If doesn't matter if the lines I draw interactively stay #around when the window is refreshed. # #Currently, to draw interactively, I begin with: # #   /* drawIndex is an colortable index I reserve for the Foreground */ #   /* my_default_bg_color is the color index for the background of my image */ #   palette_colors[drawIndex].red =   palette_colors[my_default_bg_color].red; #   palette_colors[drawIndex].green = palette_colors[my_default_bg_color].green; #   palette_colors[drawIndex].blue =  palette_colors[my_default_bg_color].blue; #   XStoreColors( myDisplay, my_cmap, &palette_colors[DrawIndex], 1); #   XFlush( myDisplay); # #   XSetFunction( myDisplay, gc, GXxor); #   XSetForeground( myDisplay, gc, drawIndex); # #Then to draw I do: # #   XDrawLine( myDisplay, XtWindow( drawingArea1), gc, x1, y1, x2, y2); #   XFlush( myDisplay); # #And when I'm all done, to return things to normal I do: # #   XSetFunction( myDisplay, gc, GXcopy); # # #What I'd like to happen is for the lines I draw to be the inverse of #whatever I'm drawing over.  Instead what happens is I get white lines.  If #the lines are over a white background - nothing shows up.  If the lines are #over a black area - nothing shows up!  It's very strange.  But the GXxor #function seems right - since if I do a rubber-banding box, it erases and #redraws itself correctly (ie. not disturbing the underlying image). # #Any suggestions what I'm doing wrong? #  I believe for this to work on a color display you must set the foreground of the GC to be (foreground^background).  Patrick L. Mahan  --- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------
In article <MAILQUEUE-101.930420145015.384@oak.shu.ac.uk> D.Haywood@sheffield-hallam.ac.uk writes: >Hi, >  Environment: Sun Sparc 10, SunOs 4.1.3.  X11R5 path level 23.  My X process >is started by xdm.  Okay, that's good.  I'm typing this from exactly the same setup. (US-UNIX layout keyboard)  I did install the sunkbd patch, though.  >  i) I want to setup the backgroud (root window?) of the tvtwm display to >     display the escherknot etc (grey is a very boring colour to work on)!  Make sure you're using "ssetroot", which comes with tvtwm.  When tvtwm starts up, it nukes the existing root window.  Use an "ssetroot" after tvtwm starts up.   (You could spawn off a "(sleep 10; ssetroot ...)&") You can also use "VirtualDesktopBackgroundPixmap filename" or just VirtualDesktopBackground if you just want another color besides grey.  > ii) When I open an Xterm on the Sparc 10, not all of the keys are recognised >     and some keys on the keyboard are not sending the correct characters.  Did you install the sunkbd patch?  It's in the contrib directory on export. All the keys on my keyboard send events properly, except the following: The End, PageUp, PageDown on the 6-key cluster aren't recognized. Even the compose key works.  (Though I can't seem to get the composed characters in an xterm to get passed.)  Anyone have a fix for the last two?  --Dave
How can I get the font family, weight and slant from an instance of a widget? Using initFontContext(), getNextFont() and freeFontContext() I can get the size of the font (and a bunch of other stuff concerning the font) but nowhere have I found family, weight and slant. Assume that I do not have access to the source where family, weight and slant were orginaly used when creating a fontlist. Thanks a bunch and have a great day, Carl carl@softsolut.com
dla@se05.wg2.waii.com (Doug Acker) writes:  |..continuing on my build problems, I got stuck here build xterm...
Can anyone help me?  I am having a problem displaying images greater than 32768 bytes from a Decwindows program running on a Vax 6310, and displaying on a Sparc IPC running Openwindows 3.0 and dni. The program works fine with Openwindows 2.0.  The code segment which fails is given below, the program simply crashes out with an Xlib I/O error at the XPutImage() call.  	XImage          *ximage; 	ximage = XCreateImage(myDisplay, DefaultVisual(myDisplay, myScreen),  			      ddepth, ZPixmap, 0, image, 			      xwid, ywid, 8, 0); 	XPutImage(myDisplay, myWindow, myGC, 		  ximage, 0, 0, xpos, ypos, xwid, ywid);   ----------------------------------------------------------------------------- | Paul Jaques                                                               | | Systems Engineer, Camborne School of Mines,                               | |                   Rosemanowes, Herniss, Penryn, Cornwall.                 | | E-Mail: pjaques@csm.ac.uk Tel: Stithians (0209) 860141 Fax: (0209) 861013 |
I have two questions (well probably more...) about how Expose & Configure events are handled.  I have an appl. which uses 1 window to draw in.  Since I give the user the capability of scaling and zooming as well as allowing the window to be resized, I made a translation table for the Expose & Configure events. The Expose event calls my redraw method while the Configure event calls my rescale method.  The rescale method invokes a "fake" Expose event (actually just calls the redraw w/ an appropriate Expose struct) to draw the data.  Quest 1. When the appl. is compiled/linked w/ R4 (running in either R4 or R5 env.) I get multiple (>4) redraws when the window gets uncovered or the size is changed.  I assume I'm getting cascading events.  Is that right? Any suggestions as to how to handle/trap events in a better way?  Quest 2. When the appl. is compiled/linked w/ R5 I get no Expose events whatsoever.  Do events and/or translation tables act differently in R5?  Thanks in advance  Steve --  ==========================================================================================
I currently use a window manager called ctwm which is very similar to hp's vuewm. (i.e.  it has multiple workspaces).  Is there a  motif based window manager that has this  same feature and is not a memory pig like vue?    mike
>>>>> On 16 Apr 1993 23:58:27 GMT, dla@se05.wg2.waii.com (Doug Acker) said: 	Doug> NNTP-Posting-Host: se05.wg2.waii.com  	Doug> ..continuing on my build problems, I got stuck here build xterm...   	Doug> Undefined                       first referenced 	Doug>  symbol                             in file 	Doug> index                               /usr/ucblib/libtermcap.a(termcap.o) 	Doug> rindex                              /usr/ucblib/libtermcap.a(termcap.o) 	Doug> ld: fatal: Symbol referencing errors. No output written to xterm   Actually .. the problem is that you have to build with LD_LIBRARY_PATH unset as well as LD_RUN_PATH.
I am looking for software to draw a graph.  I want to just give it a list of nodes and edges between the nodes and have the program come up with some reasonable positioning of it.    Thanks in advance.
...let me point out that both GUI-based word-processors and text-based    formatters both have a language; one happens to be mouse- and    action-based, and the other symbol-based.  True, but that's beside the point. This is a fact about an abstract model of what the GUI users are doing, not about what they actually *are* doing. This abstract model is only apparent from the perpective of a *programmer* of the system. (NB: some users may see it, too, but only when they put aside the work at hand and start thinking like a programmer.)  I'm not saying that the programmer's perspective is evil or stunted. After all, that's what I do, too! I am saying that UI designers must carefully distinguish between the user/programmer conceptual models, and they must ultimately serve the user of the system, not the builder of the system.       I don't recall the actual stats, but something like 1 in 5 people can be    categorized as a "symbol manipulator".  It would be interesting to know more about the meaning and basis for this claim. At any rate, I don't think this is evidence that 20% of users think like programmers. Bankers, financial analysts, structural engineers --- these are all people whose work you could characterize as primarily symbol manipulation. But what they do is not programming, and programming is not required to do what they do.
I found an oddity with our SGI Indigo (MIPS R3000 chip). When xlock +nolock is running, and I am working remotely or in batch (at) mode, the runtime of my programs (as timed by using clock() in the code itself) is ~25% slower than if xlock is NOT running.  No other processes seem to affect my runtimes, yet this is very consistent!  Any explanations, real or imagined :)
libXaw3d, the 3D Athena widget set will greatly improve the "sculptured" look. In Linux, with its shared, jump-table libs, you don't even have to recompile or relink. you merely have to:  ln -sf /lib/libXaw3d.so.3.0 /lib/libXaw.so.3
Hi there,  I'm looking for tools that can make X programming easy. I would like to have a tool that will enable to create X motif GUI Interactivly. Currently I'm Working on a SGI with forms. A package that enables to create GUI with no coding at all (but the callbacks). Any help will be appreciated.
I have two Motif Widgets. I would like to control one of them via the keyboard and the other with the mouse. I set the keyboard focus on the first widget, but as soon as I click the mouse on the second one, I lose the keyboard focus on the first one.   Could some kind soul show me how to do this?  Thanks
#  #  # Is there an Xt call to give me my application context? # I am fixing up an X/Motif program, and am trying to use XtAppAddTimeOut, # whose first argument is the app_context.  What call can I use # to give me this value? #   Use XtDisplayToApplicationContext() to retreive the application context.  Patrick L. Mahan  --- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------  Waking a person unnecessarily should not be considered  - Lazarus Long a capital crime.  For a first offense, that is            From the Notebooks of 							  Lazarus Long Patrick L. Mahan  --- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------
Excerpts from netnews.comp.windows.x: 23-Apr-93 X Toolkits Paul Prescod@undergrad.m (1132)  > I get the impression Andrew is from the FSF, but I don't know what it > looks like either.  The Andrew User Interface System is supported, maintained, enhanced, and distributed by the Andrew Consortium, Carnegie Mellon.  The distribution terms are those of the X consortium, not the GNU Public License.  Thus anyone can commercially exploit the Andrew code without restriction.  (To encourage membership, however, we defer universal release of the latest versions until Consortium members have had an opportunity to explore the new capabilities.)  To se what AUIS looks like, you can try a remote demo.  You need an X server (R5 is best) on a machine linked to the internet.  Give the command   	finger help@atk.itc.cmu.edu   for instructions.  NOTE:  The demo version does not use the Motif-look-and-feel scrollbar, but one is available.  You can use it on the demo by changing an option in the ~/preferences file and starting a new editor.  The Andrew Toolkit component of AUIS is ideal if you want to build applications using compound documents.  Andrew's major feature is its architecture for recursive embedding of objects: equation in table in figure in text, for example.  This architecture extends to areas not usually found in toolkits, including file stream formats, cut/paste, and printing.  Andrew also provides some of the most commonly requested applications:  word processor, spreadsheet, drawing editor, and font editor (the latter two are in version 5.2 which will be generally released on the XR6 tape in December.)
In article <schneck.735153129@Physik.TU-Muenchen.DE> schneck@Physik.TU-Muenchen.DE (Bernhard Schneck) writes: >nemo@aguirre.dia.fi.upm.es (Francisco J. Ballesteros) writes: > >>>   	   The problem occurs during the initial "make World".  When >>>      it gets up to compiling the standard X clients, it can't seem to find >>>      some of the libraries.  Right now we highly suspect the program "ld" >>>      which was updated for 4_1_3. >>>    > >>    Yip, we had the same problem; the only fix we found was to link static >>some of the clients, ( btw, we used cc). :-(. > >Or use a SunOS 4.1.1 ld.  Or read fixes 9, 10, and 11 to the MIT distribution.  This is a known  problem - just apply those fixes and set SunPost411FCSLd to YES and  OSTeenyVersion in mit/config/sun.cf to 3.  In fix-09: |If you are running SunOS 4.1.1 and you apply Sun's ld patch 100170-6, |then you will need to edit your site.def and add this line to the |AfterVendorCF section: | |#define SunPost411FCSLd   YES  In fix-10: |If you are running SunOS 4.1.2, change OSTeenyVersion in mit/config/sun.cf to |have a value of 2.  In fix-11: |Brief notes on what this patch fixes: | |config: make on SunOS 4.1.2 fails unless tree previously built in
I am considering making a reasonably large application for free distribution (probably copylefted).  I am going to use X.  Now I'm bewildered by the huge number of "standards" that "open systems" has created.    I've lived in a fairly tookit-sheltered environment.  Most of the tools here were produced with the Athena Widget set, or X Intrinsics or Xw (??).    In my humble opinion, they look like crap.  I don't know, however, if this is a characteristic of the tookits, or just poor aestetic taste in the programmers.  I would like my app to look a little more "sculptured" like mwm.  I understand, however, that mwm isn't free like the other tookits.  I am getting Linux, so I will have InterViews, but I don't know how it will look.  I get the impression Andrew is from the FSF, but I don't know what it looks like either.  If you can help explain this toolkit mess to me, I would be much obliged.  Which are free?  Which are the best?  Which are portable?  Which looks nice?  Which is not a resource hog?  Also, if you happen to know which are available on Linux and/or Sun, that would be a big help too.
In <1993May11.144231.24879@ims.com> tonyf@ims.com (Antonio Freixas) writes:  >In article <1993May10.134631.14364@taylor.uucp>, mark@taylor.uucp (Mark A. Davis) writes: >>  >> *OH BOY* have I wanted this too.  However, I believe that the cursor will >> be under the server's control (could be wrong)?  On an Xterminal, for >> example, if the server was NOT the one controlling the cursor, then trying >> to get the xterm application to do the blinking would cause needless and >> yucky network overhead (consistantly). >>    >Most people who write cursor blinking code just implement the simple case: a >straight 500msec (or so) on/off cycle.  However, the cursor will work much >better if cursor blinking is suppressed (i.e. the cursor is made visible) any >time the cursor moves and for .5 to 1 sec thereafter.  If you don't do this, the >cursor will be hard to track when in motion.  You allways could port and use emu from export.lcs.mit.edu:contrib/emu.tar.Z. We've implemented a blinking text cursor for the very reasons people mentioned. You can even configure the actual size of the text cursor (horizontal / ver- tical line cursors, smaller block cursors), turn on and off blinking, set the blink rate and so on. You even get blinking text - ok, enough advertising.  I haven't looked at the xterm code in this respect, but from the memories I have when we had to decide whether to start with xterm and make it do what we wanted (mostly the blinking text), I'd say it won't be easy, since xterm is a hairy mess (understandable if you follow it's roots back to X10).  The actual task to get the cursor to blink isn't that difficult if you provide the right hooks. As Antonio mentioned, you'll have to show the cursor directly after it has moved, or people will become confused. Since it's a good idea to take the cursor off the screen when you  do anything on screen anyways, this isn't very complicated. You'll just have to start the blink process with the cursor showing directly after it's mapped.  As for the portability of emu and it's newest version. The one on export is still the same as on the R5 contrib tape. We wanted to get out a new release for over six months now, but unfortunately we're drowning in work. But since the changes aren't affectiong emu's behavior much, I'd say whoever wants to try emu shouldn't wait for a new version.  As is, emu won't work on BSD derived systems (e.g. SUNs) with anything else  than a csh. There is a fix to this, which is very short (remove one line of code). I'll put this on export today.  Michael
Has an X version of whois been written out there?  If so, where can I ftp it from?  Thanks.
In article <1993May12.170631.18675@qdeck.com> support@qdeck.com (Technical Support) writes: >May I humbly suggest DESQview/X? (Of course, I'm biased...)
I am trying to run xwd on a Sun SPARCstation IPX with SunOS 4.1.2 and Openwindows 3.0. I am using the Motif window manager. I have been unsuccessful in using xwd under Motif. I get the following when doing xwd -out xwd.dmp  X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)   Major opcode of failed request:  73 (X_GetImage)   Resource id in failed request:  0x500043   Serial number of failed request:  213   Current serial number in output stream:  213
> Distribution: comp  Please don't misuse newsgroup hierarchy names as distributions.  In article <hess.734959172@swt1>, hess@swt1.informatik.uni-hamburg.de (Hauke Hess) writes:  > I wonder if it is possible for a parent window to paint over the area > of its childs.  Yes, but it's not an attribute of the window; it's an attribute of the GC used to do the drawing.  Set the subwindow-mode to IncludeInferiors rather than the default ClipByChildren.  					der Mouse
In article <1td5inINNl7m@finch.doc.ic.ac.uk>, ln@doc.ic.ac.uk (Leonidas Nikidis) writes: |>  |> Hi, |>  |> 	 |>  |>    Could someone explain to me what exactly the Xlib functions  |>  |> XCreateRegion, XPolygonRegion, XPointInRegion do, or to  |>  |> suggest a ftp site where I can find programs using these functions. |>  |>  |> PS: The man pages does not explain much ...... |>  |> 	 |> Thank you, |> Leo. |>  |>  |>  |>  |>  |>  |> --  |> --------------------------------------------------------------------- |> Leonidas Nikidis : ln@doc.ic.ac.uk	Imperial College, London,UK |> 					Dept. of Computing |> --------------------------------------------------------------------- I use those routines in a widget which only redraws exposed areas. here's a small piece of code that uses those routines  static void Redisplay(pw, ev, region) XtpManagerWidget pw; XExposeEvent *ev; Region region;  /* pp->exposure_region is an XRegion */ XtpManagerPart *pp = &pw->plotter; pp->exposure_region = XCreateRegion();    /* region is passed via an expose event */ if(region == NULL) { if (ev->send_event)  /* synthetic event sent by widget it wants a full redraw*/         {         exporect.x = pw->core.x;         exporect.y = pw->core.y;         exporect.width = pw->core.width;         exporect.height = pw->core.height;         }      else         {         exporect.x = ev->x;         exporect.y = ev->y;         exporect.width = ev->width;         exporect.height = ev->height;         }  stuff deleted        /* region now contains the exposure region */         XUnionRectWithRegion(&exporect,pp->exposure_region,pp->exposure_region); } else         XUnionRegion ( region, pp->exposure_region, pp->exposure_region); stuff deleted  /* WE NEED to CLIP on EXPOSE REGION for REDRAWING the GRID */         XSetRegion(XtDisplayOfObject(pw), pp->plotarea_gc,pp->exposure_region); stuff deleted          /* check to see if child is exposed */         if (XRectInRegion (pw->plotter.exposure_region,                          child->core.x ,                          child->core.y ,                          child->core.width  ,                          child->core.height ))  So, I build up a region of exposures so that when I service my container widget redraw of rectobj children, I only redraw what need to be redrawn.  It works for me, hope this helps you. Brian
I have the following problem on X11R5 servers.  When a window of my is obscured by a pop up window which has the Save Under attribute set, the subwindows of my window are not restored.  Normally, the subwindows are redrawn when the parent window gets an expose event, but because the save under attribute is used for the pop up window that obscured my window, no expose event is sent.  When ExposureMask is set for the child windows, those windows are correctly updated when the popup window disappears, however then the application gets too many expose events and you see extra redraws.  Everything works fine with X11R4.  Is this something that is changed between X11R4 and X11R5 (obvious)? Is it something I do wrong? Is there something that the popup window should do (which is also mine)? Is this a bug in X11 release 5?  Greetings, --
Hi. I'm trying to figure out how to make a window manager place the window where the create window command tells it, regardless of what it may think is right. (my application has reason to know better)  	I don't want to set the override-redirect because I do want all the embellishments that the window manager gives, I just want the wm to accept my choice of location.  	I've tried twm, tvtwm and mwm and they are all uncooperative.
I have a question regarding the processing of program arguments such as the -geometry option. Since this is a standard X option,  I'm wondering wether I have to parse it manually or whether there is some predefined function that will do this for me?