waashk/20ng huggingface dataset:
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 was wondering if it's possible to change the window icons OLWM uses for things like xterm.  Most of the defaults are pretty lame.  Any answer (or where I can find one) would be most appreciated.  Thanks
Window placement on screen --------------------------  I would like to configure my system (a HP UNIX) to avoid that any corner of a given window is displayed outside of the visible screen. The whole window should be visible and it should be impossible to move any window outside the visible aerea.  1. Can this be done by configuring the window manager's resources  2. Can this be done on applikation level   3. A hardcoded solution is possible, but is it possible to have a   upper limit of a given window size
Does anyone know of any free X-servers for PCs, preferably that run under MS Windows? THANKS.
sherman@lea.csc.ncsu.edu (Chris Sherman) gripes: > It really bums me out that xv went shareware.  xv's been shareware for about a year ... hadn't you noticed? I don't have a problem with this.  John Bradley has put a *hell* of a lot of work into xv, and if he feels that it's time to get some monetary reward from it, that's surely his right.  > Can the author legally sell xv?  Xv uses tiff and jpeg code developed > by others.  Did the author get permission to sell these works?  Had you bothered to consult the distribution terms of the IJG JPEG code (which are right there in the xv distribution), you would have observed that we specifically grant permission for use in shareware and commercial software.  Sam Leffler's libtiff copyright also grants permission for unrestricted use including resale.  > My guess is that now nobody is going to want to help the author > maintain the code anymore now that xv has become a commercial product,  "Commercial"?  There's a big difference between a polite request for a voluntary donation and commercial, it's-illegal-to-copy-this- and-we'll-sic-our-lawyers-on-you software.  I do agree that John's readme file could be a little clearer about what he means by personal use.
Hi, 	I am in the process of making the decision whether I should write c++ wrappers for motif myself or use Motif++ or Interviews. Though I have downloaded the tar files, I fail to see any documentation. I have two questions: 	1) If you have used these or similar c++sy toolkits what has been your experience? 	2) Where do I find reference books /documentation for them?  any and all input will be greatly appreciated.
Hi,  I just got XFree86 running on my pc with Consensys and encountered a few minor (I hope) probems.  The pc is hooked up to a LAN where I want remote X applications to  connect to my X-server.  I believe the command to permit this is xhost.  When I'm logged on my pc and type 'xhost + '  ,  I get the error message saying "You must be on local machine to enable access".  what does this mean ?  ain't I already on the local machine?  Another problem I have is with the mouse movement.  I find that the  mouse cursor moves extremely slow and choppy. How can I make the mouse cursor move more accurately?   thank in advance. Any help is much appreciated.  please send replies to christy@alex.qc.ca.
Excerpts from netnews.comp.windows.x: 15-May-93 Re: COLORS and X windows (A.. John Cwikla@morrison.wri (4620)   > The problem is that we need solutions for applications now.  And although  > I would love to have most of the things mentioned here, somebody has to write  > it.   What I'd like to see is this scenario:   Each widget, view, whatever, describes it's colors via a palette.  Palettes can be shared and they only contain descriptive information.  They are not directly tied to the object that uses them.  Palettes are held in the server.  A palette can accomadate, up to, the number of hardware color cells of color descriptors.   When the input focus is in a particular widget, that widget has access to all of the colors that are described in its associated palette.  ALL OTHER WIDGETS, TRANSIENTLY, GET THE CLOSEST APPROXIMATION THAT CAN BE GENERATED BY A UNION OF THE COLORS FROM THE CURRENT PALETTE AND ANY FREE COLORS THAT ARE LEFT OVER.   A widget specifies a color for imaging by providing an index (pixel) into its associated palette.
Did anyone install xdbx v2.1.2 on SGI workstation ?   Thanks for your answer.		Gildas PERROT.
Scott Evans <server.cs.Virginia.EDU> writes: > I'm trying to create a button that has both a label and a bitmap using > the MenuButton widget.  Is this possible?  Right now, all I get is the > bitmap -- no sign of the label.  That's expected. The first sentence describing the bitmap resource in the MenuButton section of the "Athena Widget Set - C Language Interface" documentation states        bitmap      A bitmap to display instead of the label.  One way round this might be to make use of the button's backgroundPixmap resource, but remember that you, or a user of your application, won't be able to set it from a resource file. Also, the button won't automatically be the size of the bitmap. The bitmap will be tiled if necessary, or you could set the button's dimensions to match its size.  Jim
Hi,      Does anyone know how to redirect the stdout and stderr of a program to     a callback function in X ? The program does not fork() a child process     so I guess I can't use pipes.      Can anyone help ?      Thanks,
HI  I`m looking for some assistance in locating information on how to run win 3.1 on a CGA monitor. The setup suggests you look at the manual, but the guy I`m helping is part of a large office and computer assistance must be booked in advance, therefore he cant get windows onto his CGA system.   Thanx in anticipation
I got the following today from Gary Risebrough and it worked fine:  Excerpts from mail: 29-Apr-93 Re: ol{v}wm 3 virtual keybo.. ITO2@aodc.gov.au (554)  > hi,  > With regard to : > > I have the following lines in my .Xresources: > > olwm.KeyboardCommands: Full > > olvwm.KeyboardCommands: Full > > olwm.GrabVirtualKeys:  true > > olvwm.GrabVirtualKeys: true  > I have : > > OpenWindows.KeyboardCommands:   Full > > OpenWindows.VirtualGrabKeys :   False  > which seems to work.
On the subject of ghostscript, it will also solve the earlier request of converting postscript to HPGL to filter into Interleaf.
barmar@think.com (Barry Margolin) writes:  >In article <1993May18.130845.6859@taylor.uucp> mark@taylor.uucp (Mark A. Davis) writes: >>You are stuck in a distributed system feedback loop!  What if you are on an >>Xterminal or running xterm over the net to another machine?  That is when the >>load problems occur.  If you had a machine with 20 Xterminals attached and >>they all had blinking cursors in xterm's, this could represent a considerable >>ethernet bandwidth waste.  >Ethernet certainly has enough bandwidth for a few blinking cursors.  My >Lisp Machine blinks the cursor twice a second and updates the time in the >status line every second.  This uses under 1K bytes/second, or about .1% of >the bandwidth of Ethernet.  A hundred of them on a single ethernet might be >a problem, but a couple dozen should be fine.  Granted it's nothing to loose sleep over, but this is Ethernet's tragic flaw: the more activity (especially lots of tiny activity), the more collisions happen and the performance gets exponentially worse...  I am just now opposing ANY kind of waste of bandwidth under Ethernet.  Although in a polling system it would not be so bad.
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. 	-- Ethan
In <615@ftms.UUCP> brown@ftms.UUCP (Vidiot) writes:  >In article <C75z4A.8r7@curia.ucc.ie> pflynn@curia.ucc.ie (Peter Flynn) writes: ><Due it seems to Sun's crapulous organisation of the X libraries and includes, ><most standard (GNU and other) software won't compile out of the box (well, tar ><file).  >< ><Right now I'm trying to make ghostview. It complains it can't find X11/XaW/... ><so I just linked (ln -s) the files from /usr/openwin/share/include/X11 and  ><now the ghoddam thing _still_ complains it can't find them. >< ><I still haven't been able to compile xdvi, not no way. >< ><Has anyone _ever_ managed to get _anything_ normal to compile on a Sun ><(SunOS 4.1.3 and OpenWindows 3)? What's the trick I'm missing? I've even  ><tried hard copying all the relevant files into the "right" places and ><every time, there's some bit missing or it refuses to find it.  >Sounds like you didn't load the support for those libraries when OW3.0 was >loaded.  The Xaw support was missing from OW2.0 but added in 3.0. >--  >harvard\ >  ucbvax!uwvax!astroatc!ftms!brown  or  uu2.psi.com!ftms!brown >rutgers/ >INTERNET: brown@wi.extrel.com  or  ftms!brown%astroatc.UUCP@cs.wisc.edu  Or the library might be there but not pointed to by LD_LIBRARY_PATH.
Excerpts from misc: 27-Apr-93 Re: X Toolkits Sivesh Pradhaan@rebels.b (423)  > I do not have finger!!! So is there any other way of accessing this service  > like mail server or telnet or ftp?  You can use telnet:
While I cannot answer questions about running XDM over a DECnet, I can say that the following defines must be added to the site.def before building R5 before any X clients will work over a DECnet.  From site.def  #define ConnectionFlags -DTCPCONN -DUNIXCONN -DDNETCONN #define ExtraLibraries -ldnet  Hoping this helps,  George  -- /******************************************************************* * The opinions expressed are those of the author and in no way     * * represent the opinions of the CUNY Graduate School, its agencies * * or personnel.  mcc@timessqr.gc.cuny.edu  ||  CMCGC@CUNYVM.BITNET * *******************************************************************/
Does anyone know of an X server for character cell terminals? Doesn't have to be anything fancy, as long is it works.
I checked the FAQ on this first, and no luck..   I need to convert the R5 Tree widget for use with xview v3.0. The problem is the fact that xview uses their own event loop system, and I was wondering if anyone had any tips (or converted source) on converting these pups.
In article <1965@igd.fhg.de>, pfuetz@igd.fhg.de (Matthias Pfuetzner) writes:  > Is there a possibility to determine via X protocol calls the size of > free memory available to the Xserver?  No.  Even if you could, the answer could be out of date even before you get it (even if you grab the server, it could be taken up by buffering user actions).  You should just try to do whatever you want; a BadAlloc error is your indication that insufficient server memory is available.  					der Mouse
I tried to e-mail you but it bounced so...  Hi there,  In article <4263@his.UUCP> you write: >From: sp1henhj@edit (Henrik Balthazar Hjort) >Subject: PostScript on X-terminal > > > I have a problem when I'm using PostScript. When I am working local >on a SUN SPARCstaton IPC the PostScript works good, but when I connect >to the SUN from a X-terminal I just get error messages that the >PostScript cannot connect to the news-display. > > Why doesn't PostScript work on an X-terminal? > > Is there any way to make it work? >  It might be that the X terminal doesn't support the "Postscript Extensions to X" product.  I use the 'dxpsview' program on a  DECstation 5000 to view postscript files but when I moved to an NCD X terminal, I couldn't use it any more.  So I ftp'd and compiled GhostScript (GNU software).  Now we can view postscript files on our X terminals.  Hope this helps.  Grant  > > Henrik "Henrik Hjort" Hjort > > > >
Hi Folks,  Does anybody know where I can find the "Color" bitmap editor around the public sites? Any information I do appreciate that.
>	I am looking for information on any work that deals with real-time >	support in X-windows????!! >	Would be happy if you could provide any pointers or information  Concurrent has a product called RealTimeX (tm) that is a set of real-time extensions to the X Window System.  RealTimeX is currently supported on the Concurrent Series 7000 and Series 8000 with the GA5000 graphics accelerator.  If you need/want more info, let me know.  		- sam black  ------------------------------------------------------------------------------- Once you remove the absurdity from human existence, there isn't much left. 		     __________ 		    /  _______/__ 		   /__/______/  /	black@westford.ccur.com 	  Concurrent /_________/ 	Computer Corporation
In article <1993Apr21.154620.16330@infodev.cam.ac.uk>, dcr@mail.ast.cam.ac.uk (Derek C. Richardson) writes: > Hi, I'm new to this group so please bear with me! >  > Two years ago I wrote a Sunview application for fast animation > of raster files. With Sunview becoming rapidly obselete, I've > finally decided to rewrite everything from scratch in XView. > I put together a quick test, and I've found that XPutImage() > is considerably slower (factor of 2 on average?) than the > Sunview command pw_rop() which moves image data from memory > pixrects to a canvas. This was on a Sparc IPX. It seems that: > (1) the X protocol communication is slowing things down; or > (2) XPutImage is inefficient...or both!  Using XPutImage, your source is maintained by the client and the destination is maintained by the server, thus you incur the overhead of transporting through whatever client-server communications mechanism you are using.  Is it possible for you to maintain your source images in pixmaps? These are maintained by the server, so copying them into a window is much cheaper.  Also make sure you are not sending any unnecessary XSyncs, or running in XSynchonize mode. --
Figured it out.  The answer lies in mit/server/ddx/mfb/mfbcustom.h.
In <1993May16.213936.6904@wariat.org> allbery@wariat.org (allbery) writes:  >As quoted from <1993May13.212321.2563@moepi.do.open.de> by bernward@moepi.do.open.de (Bernward Averwald): >+--------------- >> Back in the days of X11.1 I did analyse the xterm code. The cursor  >> was implemented by drawing a rectangle around the character. I doesn't >> seem to be changed 'til now. >> But if you have the sources you could add a blinking cursor via >> XtAppAddTimeOut or similar :-|.  >The server overhead for this is mildly ridiculous, though (see also DESQview/X, >which does this in its DOS windows).  Do you really want xterm to wake up every >half second and whack the server into doing a bitblt?  So what? I'm running emu on a 25 MHz 68020 box. I cannot make out ANY difference in performance whether the cursor is set to blinking or not (If you think about it a bit, a cycle of 400 ms is a hell a lot of time for even the slowest PC). Since you would of course only enable the blinking text cursor when your xterm has the input focus, this  application is active anyway. To repeat it, a blinking text cursor costs almost nothing in performance, it just needs some thought when designing the xterm software.  Michael
Hello,  	I am admin for an RS/6000 running AIX 3.2, X11R5, Motif, and xdt3. 	I want to prevent the user from hitting CNTL-ALT-BKSPC to exit X. 	 	I've tried invoking X with 'xinit -T', but that doesn't work. 	xinit appends the -T to the call to .xinitrc, and not to the 	call to X.    	The man page to xinit is no help.  In fact, it tells 	me that xinit is a script when it is really a binary file.    	So far, the only way I've been able to accomplish this feat is 	to add the -T to the call to X in /usr/lpp/X11/defaults/xserverrc. 	I would rather not do it this way.  Does anyone have any other ideas?    ------------------------------------------------------------------------   Brian DeFord				Internet: deford@netwrx1.nw1.com	   Open Networks, Inc.			Usenet:   uunet!netwrx1!deford   11490 Commerce Park Dr. #205		Tel:      703-648-0013   Reston, VA 22091			FAX:      703-648-0016
In <604@ftms.UUCP> brown@ftms.UUCP (Vidiot) writes:  >OW 3.0 is the same.  But, the definition of broken is relative.  Pageview >requires DSC compliant PostScript files, in order to stop at page breaks. >I don't consider that broken.  I say that any program that puts out a >PostScript file that isn't DSC compliant is broken.  Well that may be true.  However, the man page for pageview for OW 2.0 does not mention about DSC compliance.  In any event, the point here is that if you try to display some PS files using pageview you will find out that it's not a practical tool.
I'm posting this request again since the last one had no title.     I'm looking for X server software on DOS or Windows.     I've already seen Desqview/X and XVision but would like to be aware  of other solutions, namely public domain or shareware implementations.     I'd also like to know, in the commercial case, about possible problems,  incompatibilities, available window managers and libraries, etc.     If you have any experiences in this area please let me know.      C U!     By(e)
>Ok, I'm being driven batty.  >Trying to create popup-menus (ie. button3 press, and a menu >appears).  I would really like to use the standard Athena >classes to achieve this goal, but for my best attempts >I cannot get the menus to come up without using a MenuButton >as the parent of the widget tree.  I know this should be >possible to to with an XtPopupSpringLoaded() and a >little twiddling, but something is escaping me.  Read the documentation for the SimpleMenu (4.2.3 Positioning the SimpleMenu). The reference is to the R5 documentation.  I had not done this before but in less than 10 mins I knocked up the following Wcl application that does what you want using a Command widget. Even if you are not familiar with Wcl the example is so simple it should be pretty obvious what is going on. The crucial thing is the use of the XawPositionSimpleMenu and MenuPopup actions.   Ari.wcChildren:		app  *app.wcCreate:		Command *app.wcPopups:		menu *app.translations:	#override \n\ 			<Btn3Down>: XawPositionSimpleMenu(menu) MenuPopup(menu)  *menu.wcCreate:		SimpleMenu *menu.wcChildren:	one, two, three  *one.wcCreate:		SmeBSB  *two.wcCreate:		SmeBSB  *three.wcCreate:	SmeBSB   Jim
HI,   I am looking for an X app that will display dxf files. These are   ascii text files that are normally associated with autocad. I have   a large 9 meg. file of the state of wisconsin that i would like to   views and or cut into smaller chunks.    I also would like to find a complete file layout for dxf files.    Any information would be appreciated.
barr@pop.psu.edu (David Barr) writes:  >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?  fix the table in .../X11R5/mit/server/ddx/sun/ or use xmodmap(1).  put   stty pass8; setenv LC_CTYPE iso_8859_1; setenv LESSCHARSET latin1 in your .login. the first prevents the stripping of bit 7. the second sets the locale. the third makes less(1) show the character instead of the octal representation.  rj
A colleague has a bizarre font problem on his new MIPS workstation. When he first logs on (via xdm), he has a single xterm window appear with the mwm window manager running.  In this configuration, X windows applications (particularly xdvi) work fine.  However, if he opens up a second xterm application, suddenly xdvi cannot start in either window, giving the error: Unable to load ISO 8859-1 font.     The only difference between the two xterm windows is that the initial one references a different name in the Xsession file, with prettier colours and other slight changes.  Further investigation shows that only opening a default xterm causes this behaviour, and more significant, ALL X applications can no longer load any fonts if they are invoked from the command line in either window.  If I start the xterm with a different font (using the -fn option), no problems.  It would seem that the default xterm is loading a font which somehow causes the server to lose all of its fonts.  Note: xlsfonts in either window shows all of the fonts available, so there doesn't appear to be a problem in the font directories/hash-tables.     Other than rewriting the XTerm app-defaults file to use a different font and hope for the best, does anyone have any ideas?
In article <BGLENDEN.93Apr29182711@colobus.cv.nrao.edu>, bglenden@colobus.cv.nrao.edu (Brian Glendenning) writes: |>  |> Alas, we too will have to stop using it. |>  |> Brian We where following version of xv and I have been very surprise to discover that the new version is a shareware: What a pitty !!! :-( . What I found on the Inthernet was the freeware. I make myself a freeware and I spent long time on it but I don't plain to make paid to use it. I think if evrybody spent some time to make freeware, evrybody will be paid by the use of other freeware.  Here we will stay with XV 2 and drop XV 3.
Hi, all!  Anyone knows of a Motif mailing list? I don't have access to network news and there is no longer a motif list at alfalfa.com.  Thanks, Joel.  --  ----------------------------------------------------------------------------- Joel Reymont    !   Z-Code Software Corporation    ! e-mail: joel@z-code.com  ----------------------------------------------------------------------------- 4340 Redwood Hwy, Suit B.50, San Rafael, CA 94903
Hi,  is there any script/program/thelike already existing which could transform the output of x11perfcomp (a huge table) into a nice 3d'ish diagram or graph by producing postscript output from x11perfcomp input ?  Maybe someone has already written such beast ...