Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!bellcore!dana From: dana@dino.bellcore.com (Dana A. Chee) Newsgroups: comp.windows.x Subject: Re: re: Sony widget set available for ftp Message-ID: Date: 30 Aug 88 13:03:33 GMT References: <19880828210830.1.RWS@KILLINGTON.LCS.MIT.EDU> <8808300536.AA08895@KREMVAX.MIT.EDU> Sender: news@bellcore.bellcore.com Organization: Bellcore, Morristown, NJ USA Lines: 80 In-reply-to: eichin@ATHENA.MIT.EDU's message of 30 Aug 88 05:36:42 GMT In article <8808300536.AA08895@KREMVAX.MIT.EDU> eichin@ATHENA.MIT.EDU (Mark W. Eichin) writes: RWS>Date: Sun, 28 Aug 88 17:08 EDT RWS>From: Robert Scheifler RWS>A widget set from Sony is now available for anonymous ftp from RWS>expo.lcs.mit.edu (18.30.0.212), as compressed tar file RWS>/contrib/Xsw.tar.Z. If you can't ftp, never fear, these sources will be RWS>included in R3. Well, it assumes Xtk, not Xt; Actually, it needs Xaw. SScroll won't compile under 4.3BSD/Vax pcc (attempts to assign to a cast; (int)frep = foo is *not* valid...); SScroll will not compile under gcc 1.26 either (the XtOffset macro is called `not constant'... SO IS THE X11R3 ONE!!!) Fixing the 4 assignments was simple, but getting it to actually build with Xt is failing badly. The examples, when compiled, refer to: _boxWidgetClass _clockWidgetClass _popupWidgetClass _XtGrayPixmap _formClassRec _simpleClassRec all of which are undefined. Has anyone made progress on actually using this toolkit under R2? Perhaps the wrong version was put on expo? Ok, here are some hints (are you listening Sony). 1) Edit (in lib) SBitmap.c Swindow.c. Replace the font 8x16kana with something else (I used 8x13). 2) Edit SBitmap.h, Make the default bitmap path something reasonable (This should be a define in the makefile). 3) Edit all makefiles to make TOP whatever you need. 4) compile, you should get as far as smenu, which will die since there is no popupWidgetClass. 5) Edit SButtons, change xbuttons to sbuttons. Change closeBox.bitmapFile: null to a real bitmap file (null doesn't exist in examples/bitmaps). Change closeBox.highlightBitmapFile: highlight_close_box to a real bitmap file. Change resizeButton.bitmapFile: resize_button to a real bitmap file. Change smallIcon.bitmapFile: small_icon to a real bitmap file. 6) load SButtons with xrdb -merge (or copy it to your app-defaults). 7) run sbuttons (one down) 8) load SBitmap with xrdb -merge (or copy it to your app-defaults). 9) run sbitmap (two down) 10) load SDialog with xrdb -merge (or copy it to your app-defaults). 11) run sdialog. This will probably fail after you push the button. If anyone gets any further (like Sony), could you please post directions or patches. Mark Eichin SIPB Member & Project Athena ``Watchmaker'' -- +*************************************************************************+ * Dana Chee (201) 829-4488 * * Bellcore * * Room 2Q-250 * * 445 South Street ARPA: dana@bellcore.com * * Morristown, NJ 07960-1910 UUCP: {gateways}!bellcore!dana * +*************************************************************************+