home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / answers / motif-faq / part1 next >
Internet Message Format  |  1993-10-25  |  42KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!medusa.hookup.net!news.kei.com!yeshua.marcam.com!usc!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!cs.umd.edu!kong.gsfc.nasa.gov!vilya.gsfc.nasa.gov!not-for-mail
  2. From: dealy@kong.gsfc.nasa.gov (Brian Dealy)
  3. Newsgroups: news.answers,comp.answers
  4. Subject: Motif FAQ (Part 1 of 5)
  5. Followup-To: poster
  6. Date: 25 Oct 1993 16:09:37 -0400
  7. Organization: NASA/Goddard Space Flight Center
  8. Lines: 933
  9. Sender: dealy@vilya.gsfc.nasa.gov
  10. Approved: news-answers-request@MIT.Edu
  11. Expires: +1 months
  12. Message-ID: <2ahbq1$10c@vilya.gsfc.nasa.gov>
  13. Reply-To: dealy@kong.gsfc.nasa.gov (Brian Dealy)
  14. NNTP-Posting-Host: vilya.gsfc.nasa.gov
  15. Summary: This posting contains a list of Frequently Asked Questions and their answers about Motif.
  16. Keywords: FAQ question answer
  17. Xref: senator-bedfellow.mit.edu news.answers:13924 comp.answers:2409
  18.  
  19. Archive-name: motif-faq/part1
  20. Last-modified: Oct 15, 1993
  21. Version: 3.6
  22.  
  23.  
  24. Motif FAQ
  25.  
  26. [Last changed: 15 Oct 93]
  27.  
  28. This article contains the answers to some Frequently Asked Questions (FAQ) 
  29. often seen in comp.windows.x.motif. It is posted to help reduce volume in 
  30. this newsgroup and to provide hard-to-find information of general interest.
  31.  
  32.         Please redistribute this article!
  33.  
  34. This FAQ is maintained by Brian Dealy <dealy@kong.gsfc.nasa.gov>.  Send
  35. updates and corrections to him at that mail address.  It would help if
  36. the subject line contained the phrase "FAQ".
  37.  
  38. From November 89-July 93 the FAQ was maintained by Jan Newmarch
  39. <jan@ise.canberra.edu.au>
  40.  
  41. This article includes answers to the following questions. Ones marked with
  42. a + indicate questions new to this issue; those with changes of content since
  43. the last issue are marked by *:
  44.  
  45.  0)  TOPIC: WHAT ARE OTHER RELEVANT NEWSGROUPS?
  46.  1)  TOPIC: FTP ARCHIVES
  47.  2)  Is the FAQ list available for FTP anywhere?
  48.  3)  Is this newsgroup accessible via email?
  49.  4)  Is this newsgroup archived?
  50.  5)  Is the mail list motif-talk archived?
  51.  6)  TOPIC: OSF AND MOTIF
  52.  7)  Because of COSE, is Motif now in the public domain?
  53.  8)  What versions of Motif are there?
  54.  9)  Where can I get Motif?
  55. 10)  Is there a list of Motif bugs?
  56. 11)  Where can I get public domain Motif source?
  57. 12)  Are the Motif examples publically available?
  58. 13)  Has anyone done a public domain Motif lookalike?
  59. 14)  Does anyone from OSF pay attention to our questions/suggestions?
  60. 15)  Does OSF have an application compliance validation service?
  61. 16)  What is the motif-talk mailing list?
  62. 17)  What MIT patches do I use, and when do I use fix-osf?
  63. 18)  How does Motif work with X11R5?
  64. 19)  How can I find which version of Motif I have?
  65. 20)  TOPIC: LITERATURE
  66. 21)+ What books should I read or do I need to program using Motif?
  67. 22)  TOPIC: MWM
  68. 23)  What is the difference between Motif and mwm?
  69. 24)  Does anyone have an alternative set of 3-D defaults for a monochrome
  70.      screen?
  71. 25)  How can I modify the Motif window manager decorations?
  72. 26)  How can I turn off the Motif window manager functions from the system
  73.      menu?
  74. 27)  How can tell I if the user has selected the "Close" item on the system
  75.      menu attached to the top-level shell?
  76. 28)  Is there an mwm virtual desktop manager?
  77. 29)  Why does mwm 1.2 crash on startup?
  78. 30)  TOPIC: MOTIF GENERATORS
  79. 31)  What prototyping tools are there to generate Motif code?
  80. 32)  TOPIC: TEXT WIDGET
  81. 33)+ What is the difference between a XmTextField widget and a single line 
  82.      XmText widget?
  83. 34)  Why does  pressing  <return> in a text widget do nothing?
  84. 35)  When I add text to a scrolling text widget how can I get the new text  
  85.      to show?
  86. 36)  Does the text widget support 16 bit character fonts?
  87. 37)  How can I stop the text widget from echoing characters typed?
  88. 38)  How can I replace characters typed with say a `*'?
  89. 39)  How can I best add a large piece of text to a scrolled text widget?
  90. 40)  How can I highlight text in the Text widget?
  91. 41)  How can I select all of the text in a widget programmatically?
  92. 42)  How can I change colours of text in the Text widget?
  93. 43)  How can I change the font of text in the Text widget?
  94. 44)  Is there an emacs binding for the text widget?
  95. 45)  How can I use a file as the text source for a Text widget?
  96. 46)  How can put Text in overstrike mode instead of insert?
  97. 47)  How can I make the Delete key do a backspace?
  98. 48)  TOPIC: LIST WIDGET
  99. 49)+ Should I create an XmList widget as a child of automatic  XmScrolledWindow
  100.      or use the XmCreateScrolledList() convenience function?
  101. 50)  How do I best put a new set of items into a list?
  102. 51)  Can I have strings with different fonts in a list?
  103. 52)  Can I get a bitmap to show in a list item like I can in a Label?
  104. 53)  Can I have items with different colours in a list?
  105. 54)  Can I grey out an item in a list?
  106. 55)  Can I have multi-line items in a list?
  107. 56)  How can I tell the position of selected items in a list?
  108. 57)  TOPIC: FILE SELECTION BOX WIDGET
  109. 58)  What is libPW.a and do I need it?
  110. 59)  What are these compile errors: Undefined symbol _regcmp and _regex?
  111. 60)  What's wrong with the Motif 1.0 File Selection Box?
  112. 61)  TOPIC: FORM WIDGET
  113. 62)  Why don't labels in a Form resize when the label is changed?
  114. 63)  How can I center a widget in a form?
  115. 64)  How do I line up two columns of widgets of different types?
  116. 65)  TOPIC: PUSHBUTTON WIDGET
  117. 66)  Why can't I use accelerators on buttons not in a menu?
  118. 67)  TOPIC: LABEL WIDGET
  119. 68)  How can I align the text in a label (button, etc) widget?
  120. 69)  Why doesn't label alignment work in a RowColumn?
  121. 70)  How can I set a multiline label?
  122. 71)  How can I have a vertical label?
  123. 72)  How can I have a Pixmap in a Label?
  124. 73)  TOPIC: DRAWING AREA WIDGET
  125. 74)  How can I send an expose event to a Drawing Area widget?
  126. 75)  How can I know when a DrawingArea has been resized?
  127. 76)  TOPIC: MENUS
  128. 77)  What can I put inside a menu bar?
  129. 78)  Can I have a cascade button without a submenu in a pulldown menu?
  130. 79)  Should I have a cascade button without a submenu in a pulldown menu?
  131. 80)  What is the best way to create popup menus?
  132. 81)  How do popup menus work?
  133. 82)  Should I use translation tables or actions for popup menus?
  134. 83)  What are the known bugs in popup menus?
  135. 84)  Can I have multiple popup menus on the same widget?
  136. 85)  TOPIC: INPUT FOCUS
  137. 86)+ How can I specify the widget that should have the keyboard focus when my
  138.      application starts up?
  139. 87)  How can I direct the keyboard input to a particular widget?
  140. 88)  How can I have a modal dialog which has to be answered before the  
  141.      application can continue?
  142. 89)  TOPIC: MEMORY AND SPEED
  143. 90)+ When can I free data structures passed to or retrieved from Motif?
  144. 91)  Why does my application grow in size?
  145. 92)  Why does my application take a long time to start up?
  146. 93)  My application is running too slowly. How can I speed it up?
  147. 94)  Why is my application so huge?
  148. 95)  TOPIC: XMSTRING
  149. 96)  How can I get the Ascii text out of an XmString?
  150. 97)  When can XmStrings used as resources be freed?
  151. 98)  Why doesn't XmStringGetNextSegment() work properly?
  152. 99)  Why does using XmStringDraw cause a Bad Font error?
  153. 100)  TOPIC: DIALOGS
  154. 101)  How do I stop my dialog disappearing when I press the help button?
  155. 102)  How do I make my own dialog?
  156. 103)  How come the title bars for my dialogs now have  "_popup"  or  "<-popup"
  157.       concatenated onto the widget name?
  158. 104)  How can I force a dialog window to display?
  159. 105)  How can I control placement of a popup widget?
  160. 106)  TOPIC: LANGUAGE BINDINGS
  161. 107)  Is there a C++ binding for Motif?
  162. 108)+ How can I have a C++ member function in a callback?
  163. 109)  Is there a Common Lisp binding for Motif?
  164. 110)  Is there an Ada binding for Motif?
  165. 111)  Is there a Poplog binding for Motif?
  166. 112)  TOPIC: SPECIFIC PLATFORMS
  167. 113)  Is it easy to build Motif for a Sun?
  168. 114)  How do I build Motif 1.2.2 on Solaris 2.1 with Sun C?
  169. 115)  What compile errors/warnings might I get in both Sun 3 and Sun 4?
  170. 116)  On a Sun 3, what are the mwm startup error messages about?
  171. 117)  Are there problems making shared libraries on a Sun?
  172. 118)  The OpenWindows server hangs when I popup a menu with Button 3.
  173. 119)  Has anyone made shared libraries on an IBM RS/6000?
  174. 120)  What is the error  "Unaligned access in XmString" under Ultrix?
  175. 121)  TOPIC: KEYSYMS
  176. 122)+ What is causing the messages "unknown keysym osfDown..."?
  177. 123)  What happens if I can't install Motif Keysyms?
  178. 124)  Why has OSF introduced Keysyms into Motif 1.1?
  179. 125)  TOPIC: ICONS
  180. 126)  How can I keep track of changes to iconic/normal window state?
  181. 127)  How can I check if my application has come up iconic?
  182. 128)  How can I start my application in iconic state?
  183. 129)  How can an application iconify itself?
  184. 130)  How can an application de-iconify itself?
  185. 131)  TOPIC: MISCELLANEOUS
  186. 132)+ How can I identify the children of a manager widget?
  187. 133)+ How do I tell if a scrolled window's scrollbars are visible?
  188. 134)+ How can I programatically scroll a XmScrolledWindow in XmAUTOMATIC mode?
  189. 135)+ What functions can an application use to change the size or position  
  190.       of a widget?
  191. 136)+ What widgets should I use to get the look of push buttons, but
  192.       the behaviour of toggle buttons?
  193. 137)+ Can  I  use  XtAddTimeOut(), XtAddWorkProc(), and XtAddInput() with
  194.       XtAppMainLoop()?
  195. 138)+ Why does XtGetValues() XmNx and XmNwidth return extremely large values.
  196. 139)+ Can I specify callback functions in resource files?
  197. 140)  How do I specify a search path for ".uid" files?
  198. 141)+ XtGetValues() on XmNx and XmNy of my top level shell  don't  return  the
  199.       correct root window coordinates.  How do I compute these?
  200. 142)+ Can I use XmGetPixmap() with widgets that have non-default visual types?
  201. 143)+ How can I determine the item selected in a option menu or a RadioBox?
  202. 144)  What is the matter with Frame in Motif 1.2?
  203. 145)  What is IMUG and how do I join it?
  204. 146)  What is the X Professional Organization
  205. 147)  How do I set the title of a top level window?
  206. 148)  Can I use editres with Motif?
  207. 149)  How can I put decorations on transient windows using olwm?
  208. 150)  Why does an augment translation appear to act as replace for some  
  209.       widgets?
  210. 151)  How do you "grey" out a widget so that it cannot be activated?
  211. 152)  Why doesn't the Help callback work on some widgets?
  212. 153)  Where can I get a Table widget?
  213. 154)  Has anyone done a bar graph widget?
  214. 155)  Does anyone know of a source code of a graph widget
  215. 156)  Is there a help system available, such as in Windows 3?
  216. 157)  Can I specify a widget in a resource file?
  217. 158)  Why are only some of my translations are being installed?
  218. 159)  Where can I get the PanHandler code?
  219. 160)  What are these passive grab warnings?
  220. 161)  How do I have more buttons than three in a box?
  221. 162)  How do I create a "busy working cursor"?
  222. 163)  Can I use the hourglass that mwm uses?
  223. 164)  What order should the libraries be linked in?
  224. 165)  How do I use xmkmf for Motif clients?
  225. 166)  How do I make context sensitive help?
  226. 167)  How do I debug a modal interaction?
  227. 168)  Where can I get info on the Motif drag and drop protocol?
  228. 169)  TOPIC: ACKNOWLEDGEMENTS
  229.  
  230. If you have suggestions or corrections for any of these answers or any 
  231. additional information, please send them directly to dealy@lobo.gsfc.nasa.gov;
  232. the information will be included in the next revision (or possibly the one 
  233. after that; thanks for the many suggestions which haven't been incorporated 
  234. yet).  
  235.  
  236. This posting is intended to be distributed at approximately the beginning of 
  237. each month. But sometimes it will slip abit.
  238.  
  239. The information contained herein has been gathered from a variety of sources. In
  240. many cases attribution has been lost; if you would like to claim responsibility
  241. for a particular item, please let us know. 
  242.  
  243. Conventions used below: telephone numbers tend to be Bell-system unless 
  244. otherwise noted; prices on items are not included.
  245.  
  246.  
  247.  
  248. -----------------------------------------------------------------------------
  249. Subject:  0)  TOPIC: WHAT ARE OTHER RELEVANT NEWSGROUPS?
  250.  
  251. [Last modified: Feb 93]
  252.  
  253. Answer: This newsgroup is comp.windows.x.motif.  The nearest related group is
  254. comp.windows.x.  It also maintains an FAQ, which deals in all sorts of X, Xlib
  255. and Xt questions. Look there for answers to questions such as "How do I get a
  256. screendump of my application?", "where do I get X11R4", etc.  Other groups
  257. which may have relevant information are comp.windows.x.pex,
  258. comp.windows.x.apps, comp.windows.x.intrinsics, comp.windows.news,
  259. comp.windows.misc and comp.windows.open-look.  The intrinsics and open-look
  260. groups also have an FAQ.
  261.  
  262. The newsgroup news.answers contains *lots* of FAQs (including this one).  Look
  263. there for oodles of info on everything.
  264.  
  265. -----------------------------------------------------------------------------
  266. Subject:  1)  TOPIC: FTP ARCHIVES
  267.  
  268. -----------------------------------------------------------------------------
  269. Subject:  2)  Is the FAQ list available for FTP anywhere?
  270.  
  271. [Last modified: May 93]
  272.  
  273. Answer: A number of FAQ's (including this one) are available for anonymous ftp
  274. at rtfm.mit.edu, 18.70.0.226 (the IP may change soon) under the directory
  275. pub/usenet.  (Motif is under pub/usenet/comp.windows.x.motif and also under
  276. pub/usenet/comp/windows/x/motif) There is also a mail server called mail-
  277. server@pit-manager.mit.edu.  To retrieve a file send mail to the server with a
  278. subject or body similar to
  279.  
  280.         send usenet/comp.windows.x.motif/Motif_FAQ_(Part_1_of_5).Z
  281.  
  282. This service is looked after by Jonathan Kamens (jik@pit-manager.mit.edu).
  283.  
  284. It has also been placed in contrib/Motif-FAQ at export.lcs.mit.edu.
  285.  
  286. The FAQ is also available from csc.canberra.edu.au (137.92.1.1) by anonymous
  287. ftp.  It is in the file /pub/motif/Motif-FAQ
  288.  
  289. This files are also accessible from WAIS (Wide Area Information System) under
  290. UC-Motif-FAQ, allowing keyword-based searches of the FAQ.
  291.  
  292. -----------------------------------------------------------------------------
  293. Subject:  3)  Is this newsgroup accessible via email?
  294.  
  295. [Last modified: April 93]
  296.  
  297. Answer: An email link is maintained by Brian Dealy.  To join, send mail to
  298. motif-request@lobo.gsfc.nasa.gov.
  299.  
  300. -----------------------------------------------------------------------------
  301. Subject:  4)  Is this newsgroup archived?
  302.  
  303. [Last modified: November 1992]
  304.  
  305. Answer: The newsgroup files from August 1991 are available from
  306. csc.canberra.edu.au (137.92.1.1) by anonymous ftp.  They are in the directory
  307. /pub/motif/comp.windows.x.motif.
  308.  
  309. These files are also accessible from WAIS (Wide Area Information System) under
  310. comp.windows.x.motif, allowing keyword-based searches of the newsgroup
  311. articles (this time on machine services.canberra.edu.au (137.92.1.12)).
  312.  
  313. -----------------------------------------------------------------------------
  314. Subject:  5)  Is the mail list motif-talk archived?
  315.  
  316. Answer: If you have purchased support from OSF then you have access to their
  317. archive server for motif-talk.
  318.  
  319. -----------------------------------------------------------------------------
  320. Subject:  6)  TOPIC: OSF AND MOTIF
  321.  
  322. -----------------------------------------------------------------------------
  323. Subject:  7)  Because of COSE, is Motif now in the public domain?
  324.  
  325. Answer: The *specification* for Motif is no longer controlled by OSF, but by
  326. X/Open.  This does not affect the *implementation*. The implementation is
  327. still in the hands of OSF, and will not be released into the public domain.
  328. So no, the OSF source code will still only be available to those who buy a
  329. source code license from OSF.
  330.  
  331. The specification does not include UIL or obsolete features (ie 1.0 bugs in
  332. design), but these will continue to be supported by the OSF code.
  333.  
  334. Subject:  8)  What versions of Motif are there?
  335. [Last modified: March 93]
  336.  
  337. Answer: Motif 1.0 is based on the R3 toolkit.  There are patch releases to
  338. 1.0: 1.0.1, 1.0.A, 1.0.2 and 1.0.3, 1.0.4, 1.0.5. 1.0.A was a fairly major
  339. patch, as it involved a complete re-engineering of UIL and Mrm.  Almost
  340. everyone who has 1.0.x has either 1.0.A or 1.0.3.
  341.  
  342. Motif 1.1 is based on the R4 toolkit.  The intial version was Motif 1.1.0.
  343. Motif 1.1.1 has been released as a patch to licensees with Full Support or
  344. Technical Update service.  Motif 1.1.2 is a patch release which contains the
  345. necessary changes to fix over 80 bugs reported against Motif. It is available
  346. to support contract holders (including both full support and update service).
  347. The 1.1.3 release fixed a further 150 bugs and was available from August 1991
  348. to support contract holders (including both full support and update service).
  349. 1.1.4 offers X11R5 support, but is not an X11R5 product.  1.1.5 was released
  350. in June 92 to licensees who hold a Motif Full Support or Update Support
  351. contract
  352.  
  353. Motif 1.2.0 was released in April 1992 and is based on the X11R5 toolkit.  It
  354. offers increased compatibility with international standards,  PC-style
  355. behavior and binary compatibility with OSF/Motif 1.1 applications.  New
  356. features include drag-and-drop, tear- off menus, toolkit enhancements and new
  357. documentation.  toolkit.  The code is totally ANSI C.  OSF distributes a 10
  358. pages sheet entitled "OSF/Motif R1.1 to R1.2: detailed overview of changes",
  359. which is available from OSF Motif direct channels.  (617-621-7300 or email
  360. direct@osf.org)
  361.  
  362. Motif 1.2.1 was released September 92.  Due to an optimisation from 1.2.0 to
  363. 1.2.1 object code compiled under 1.2.1 (that is, using 1.2.1 header files)
  364. will not link with 1.2.0 libraries (and, very probably, clients that use
  365. shared libraries and are linked against 1.2.1 won't startup against 1.2).
  366.  
  367. Motif 1.2.2 was released March 93.  This release contains over 250 bug fixes,
  368. improved text, drag-and-drop features and has less than one reported defect
  369. per 1000 lines of code.
  370.  
  371. from dbrooks@osf.org Motif 1.2.3 was released on September 13, 1993.  The
  372. defect density is measured at < 0.8 known reports per thousand lines.  In this
  373. release, we have paid particular attention to memory leaks, and have improved
  374. drag-and-drop performance greatly.
  375.  
  376.  
  377. -----------------------------------------------------------------------------
  378. Subject:  9)  Where can I get Motif?
  379.  
  380. [Last modified: October 93]
  381.  
  382. Answer:
  383.     Various hardware vendors produce developer's toolkits of binaries, header
  384. files, and documentation; check your hardware vendor, particularly if that
  385. vendor is an OSF member. Systems known to be shipping now: HP (sans UIL),
  386. Apollo (sans UIL), SCO, ICS, Mips (RISCwindows=X11R3 + full Motif), IBM, Data
  387. General for AViioNs (includes UIL), Bull (?), Concurrent Computer Corporation
  388. 5000, 6000, 8000 series machines, Convex, Sequent.
  389.  
  390.     In addition, independent binary vendors produce Motif toolkits .
  391.  
  392. [An FAQ is for "personal opinions" on these toolkits.  I don't think it is
  393. appropriate to give such opinions through this particular posting, so I
  394. haven't included any.]
  395.  
  396. ICS makes several binary kits, notably for Sun, DEC, Apple;
  397.  
  398. Quest (408-496-1900) sells kits for Suns, as well;
  399.  
  400. IXI (+44 223 236 555) offers kits for Sun3         (SunOS 3.5 or later, and
  401. Sun4         (SunOS 4.0.1 or later).         (Solaris 2.1 or later ( both
  402. SPARC  and Intel ))         ( both M1.1.5 and Motif 1.2.2 for SPARC, Motif
  403. 1.2.2 for Intel ).
  404.  
  405. Sun Microsystems is now shipping a version of Motif also.
  406.  
  407. NSL (+33 (1) 43 36 77 50; requests@nsl.fr) offers kits for the Sun 3 and Sun
  408. 4.
  409.  
  410.  
  411. In Australia, Information Technology Consultants Pty Ltd has Motif 1.1.2 for
  412. Sun Sparc 4.1 ( phone on (02) 360 6999, fax on (02) 360 6695 or e-mail to
  413. motif@itcsyd.itc.oz.au)
  414.  
  415. SILOGIC (+33 61.57.95.95), 78 chemin des Sept Deniers - 31200 TOULOUSE FRANCE
  416. sells Motif 1.1 and 1.2 on Sun4 machines. They also provide customers with
  417. Motif maintenance and support, and do consulting on the X window System at
  418. large, including software development.
  419.  
  420.  
  421. Metro Link is now selling Motif 1.2.2 for Linux at the introductory price of
  422. $199.00 (US) complete.  Regular pricing will be $199.00 for Runtime and
  423. $299.00 for Development (which includes Runtime.)  BTW, we include a shared
  424. library version of libXm.
  425.  
  426. For more information please contact sales@metrolink.com or call
  427. +1.305.970.7353. (Fax: +1.305.970.7351  Email: pax@metrolink.com) The kits
  428. include varied levels of bug-fixing and support for shared libraries.
  429.  
  430. BIM (Fax : +32(2)759.47.95) offer Motif 1.1 for Sun-3, Sun-4, Sun-386i.
  431. Includes shared libraries.
  432.  
  433. Metrolink Inc. (+1-305-566-9586, sales@metrolink.com; in Europe contact ADNT,
  434. (33 1) 3956 5333) ships an implementation of X11R4 and Motif 1.1 for several
  435. 386 systems.
  436.  
  437.     An OSF/Motif source license must be obtained from OSF before source can be
  438. obtained from the Open Software Foundation. Call the Direct Channel Desk at
  439. OSF at 617-621-7300 or email direct@osf.org for ordering information.
  440.  
  441. In addition to the full Motif source, "option C" allows you to purchase source
  442. for the window manager mwm to run on X terminals.
  443.  
  444.  
  445. -----------------------------------------------------------------------------
  446. Subject: 10)  Is there a list of Motif bugs?
  447.  
  448. Answer: With each patch release of Motif shipped, there is a list of known
  449. bugs provided.  The filename on the tape is "./OPENBUGS".  There is also a
  450. list of all the issues closed/resolved in that patch.  That is found as part
  451. of the "./README-1.1.n" (where n is the patch number) file.
  452.  
  453. These are the only OSF published lists.
  454.  
  455. No-one else seems to publish a list.
  456.  
  457.  
  458. -----------------------------------------------------------------------------
  459. Subject: 11)  Where can I get public domain Motif source?
  460.  
  461. Answer: You cannot.  Motif source is not publically available.
  462.  
  463.  
  464. -----------------------------------------------------------------------------
  465. Subject: 12)  Are the Motif examples publically available?
  466.  
  467. [Last modified: March 93]
  468.  
  469. Answer: OSF has produced a list of which of the example programs can be
  470. distributed. Call OSF Direct for a copy of it.  Most of the example programs
  471. have been freed from distribution limitations so should be available.
  472.  
  473. In addition to these, many programs on export.lcs.mit.edu in the contrib
  474. directory use Motif.  Source code posted to comp.sources.x often uses Motif.
  475. The examples from Dan Heller's book are on export in
  476. /contrib/OReilly/motif/examples.tar.Z.  The examples from Thomas Berlages's
  477. book are on export in /contrib/berlage.motif.tar.Z The examples from Donald L.
  478. McMinds's book are on export in /contrib/mastering.motif.tar.Z The examples
  479. from Jan Newmarch's book are export in /contrib/newmarch.tar.Z The examples
  480. from Jerry Smith's book are on export in contrib/smith.motif.tar.Z
  481.  
  482.  
  483.  
  484. -----------------------------------------------------------------------------
  485. Subject: 13)  Has anyone done a public domain Motif lookalike?
  486.  
  487. [Last modified: March 93]
  488.  
  489. Answer: Not yet.  The specification is available (AES), and the validation
  490. suite can be bought, but no-one has taken up the challenge.  There are some
  491. commercial lookalikes (Looking Glass and Neuron Data), but no workalikes.
  492.  
  493. Applications that follow the Style Guide might be certified Motif-compliant
  494. through the checklist process, even though they're not using OSF/Motif
  495. binaries.
  496.  
  497. Tcl/Tk is available for ftp from allspice.berkeley.edu, and although
  498. implemented without Xt, has a "strict Motif" mode.
  499.  
  500. Strom Sytems (18666 Redmond Way o-2118, Redmond, WA 98052-6725) have a Simple
  501. Toolkit for X-Windows (sic) that appears to follow the Style Guide even though
  502. it doesn't quite look like Motif.
  503.  
  504. MOOLIT is a USL product that can be runtime switched between the Sun Open Look
  505. and Motif appearance.  It is based on  OLIT 4i.
  506.  
  507. Interviews (also known as Fresco) is a C++ based product with appearance
  508. similar to Motif.  A ftp-able version is on interviews.stanford.edu.  A
  509. commercial version is available as InterViews Plus.
  510.  
  511.  
  512. -----------------------------------------------------------------------------
  513. Subject: 14)  Does anyone from OSF pay attention to our questions/suggestions?
  514.  
  515. Answer: Yes, and they quite often post answers too. But they may not respond
  516. to *your* problem because they have other things to do as well.  This
  517. newsgroup is not run by OSF, and has no formal connection with OSF.  OSF is a
  518. member-driven company.  The membership (and anyone can be a member) provides
  519. the primary input for future development of Motif.
  520.  
  521. -----------------------------------------------------------------------------
  522. Subject: 15)  Does OSF have an application compliance validation service?
  523.  
  524. Answer: They have a checklist and a certification process which you can
  525. request from them.  Ask for the Level One Certification Checklist.  The
  526. process is one of self-certification.  It tests only the appearance and
  527. behavior of the application against Motif style.  The product will also be put
  528. in the OSF reference listing.  There's a one-time fee of $250.  According to
  529. the master license agreement, you can't use any OSF identifying mark unless
  530. you have done a certification.
  531.  
  532.  
  533. -----------------------------------------------------------------------------
  534. Subject: 16)  What is the motif-talk mailing list?
  535.  
  536. Answer: The motif-talk mailing list is only for those who have purchased a
  537. Motif source code license. You can be placed on this list by emailing to
  538. motif-talk-request@osf.org, citing your Company name and source license
  539. number.
  540.  
  541.  
  542.  
  543. -----------------------------------------------------------------------------
  544. Subject: 17)  What MIT patches do I use, and when do I use fix-osf?
  545.  
  546. Answer: The Motif 1.1.0 tape contains MIT patches 1-14. Apply these and any
  547. others you can get.  If your MIT patch level only goes up to fix-16, you also
  548. need to apply fix-osf.  Fix-osf was an emergency patch for a problem that
  549. existed when the Motif 1.1 tape was cut, The MIT fix-17 completely superseded
  550. osf-fix, so if you have applied fix-17 do not apply fix-osf.  The 1.1.1 tape
  551. contains MIT fixes 15-18, as well as an OSF-developed fix that deals with a
  552. subtle bug in the Selection mechanism of the Intrinsics.  Most people will
  553. have fix-15 to 18 by now; if you don't have them:
  554.  
  555.         Back out fix-osf if you have applied it
  556.         Apply fix-15 to 18
  557.         Apply fix-osf-1.1.1
  558.  
  559. The Selection fix was submitted to MIT, who came up with a different fix.  It
  560. will not be made into an R4 fix but should be in R5. The MIT fix was posted to
  561. motif-talk.
  562.  
  563.  
  564. -----------------------------------------------------------------------------
  565. Subject: 18)  How does Motif work with X11R5?
  566.  
  567. Answer: Motif 1.1.X is only intended to be built with X11R4.  Motif 1.2.X is
  568. for X11R5.  however, Motif 1.1.4 has been set to also work with X11R5.
  569.  
  570. For Motif 1.1.1, 1.1.2 and 1.1.3 you will need to compile Xlib and Xt with a
  571. MOTIFBC flag set to YES (page 8, section 3.3 of the R5 release notes), or
  572. you'll also have a link problem (LowerCase) and a fatal run time problem
  573. (XContext manager).  If your applications come up with "Unknown keysym name:
  574. osfActivate" errors, check the variable ProjectRoot. The name
  575. /$PROJECTROOT/lib/XKeysymDB will have been wired into your Xlib.
  576.  
  577. In Motif 1.1.0, XtCallCallback uses NULL as the first argument instead of a
  578. widget ID. This was ok under R4, but must be changed in the source for R5. It
  579. was changed by OSF from Motif 1.1.1 onward.
  580.  
  581. Mrm won't work at all (can't link since it uses an X private variable that has
  582. disappeared in R5).  Thre is an MIT patch that may fix this??  [I confess
  583. ignorance of Mrm and UIL].
  584.  
  585. -----------------------------------------------------------------------------
  586. Subject: 19)  How can I find which version of Motif I have?
  587.  
  588. [Last modified: October 93]
  589.  
  590. Answer: The macro XmVERSION gives you the version number.  The macro
  591. XmREVISION gives you the major revision number.  The macro XmVersion combines
  592. these e.g. a value of 1002 is Motif 1.2.
  593.  
  594. To find the minor revision number is not easy.  From Motif 1.1.3 onwards, try
  595. this:
  596.  
  597.    'strings `which mwm` | grep OSF'.
  598.  
  599. to get the full version number e.g. 1.1.3.
  600.  
  601. In Motif 1.2, the macro XmUPDATE_LEVEL was added to give the minor revision
  602. number.
  603.  
  604. + ( above also known as the patch level).  + In addition there was a macro
  605. string added,  XmVERSION_STRING which has all + the above info in a char
  606. string.
  607.  
  608. + grepping through a strings of libXm.a for OSF can also sometime give +
  609. something useful.
  610.  
  611. thanks to hops@x.co.uk Mike Hopkirk
  612.  
  613. -----------------------------------------------------------------------------
  614. Subject: 20)  TOPIC: LITERATURE
  615.  
  616. -----------------------------------------------------------------------------
  617. Subject: 21)  What books should I read or do I need to program using Motif?
  618.  
  619. [Last modified: April 93]
  620.  
  621. Answer: Ken Lee of the DEC Western Software Laboratory (klee@wsl.dec.com)
  622. regularly posts to comp.windows.x and ba.windows.x a list of reference books
  623. and articles on X and X programming.  In FAQ comp.windows.x an extract of his
  624. list appears. Specifically for Motif programming, though:
  625.  
  626. OSF/Motif Programmers Guide, Prentice-Hall ISBN 13-640525-8 (Motif 1.0), ISBN
  627. 0-13-640681-5 (Motif 1.1), ISBN 0-13-643107-0 (Motif 1.2) (NB: This makes use
  628. of the demo programs that you get with a Motif source license.  The programs
  629. are not included and may or may not be available on your system.)
  630.  
  631. OSF/Motif Programmers Reference Manual, Prentice-Hall ISBN 13-640517-17 (Motif
  632. 1.0),
  633.  ISBN 0-13-640616-5 (Motif 1.1), ISBN 0-13-643115-1 (Motif 1.2) You will need
  634. this for the system calls.
  635.  
  636. OSF/Motif Style Guide, Prentice-Hall 13-640491-X (Motif 1.0), ISBN 0-13-
  637. 640673-4 (Motif 1.1), ISBN 13-643123-2 (Motif 1.2) You will need this to get
  638. some idea of how to write programs with the correct `look and feel'.
  639.  
  640. You should read at least one of the the non-OSF books on Motif:
  641.  
  642. Young, Doug. "The X Window System: Applications and Programming with Xt (Motif
  643. Version)," Prentice Hall, 1989 (ISBN 0-13-497074-8). The excellent tutorial "X
  644. Window Systems Programming and Applications with Xt," (ISBN 0-13-972167-3)
  645. updated for Motif.
  646.  
  647. Marshall Brain at brain@adm.csc.ncsu.edu posted a set of simple and useful
  648. Motif tutorials.
  649.  
  650. Berlage, Thomas Berlage, OSF/Motif: Concepts and Programming, Addison-Wesley,
  651. UK, 1991. ISBN 0-201-55792-4.
  652.  
  653. Johnson, Eric F. and Kevin Reichard, Power Programming Motif, MIS: Press,
  654. Portland, OR, 1991. ISBN 1-55828-059-6. Book with disk, ISBN 1-55828-061-8.
  655.  
  656. Ferguson, Paula M, The Motif Reference Manual, Volume 6B of the O'Reilly
  657. series on X.  This is the new volume of a two volume set on Motif programming.
  658. ISBN 1-56592-038-4 (Motif 1.2)  (Volume 6A is expected to ship soon)
  659.  
  660. Barkakati, Nabajyoti, X Window System Programming, SAMS. ISBN 0-672-22750-9.
  661. This contains a section on Motif.
  662.  
  663. Smith, Jerry, Designing X Clients with Xt/Motif, ISBN 1-55860-255-0 Morgan
  664. Kaufmann Publishers This adopts a higher-level approach to many of the objects
  665. that commonly occur in Motif but are not in the Motif API.
  666.  
  667.  
  668. Newmarch, Jan, The X Window System and Motif - A Fast Track Approach.
  669. Addison-Wesley, ISBN 0-201-53931-4.
  670.  
  671. You will also need books and references on Xt such as:
  672.  
  673. Asente, Paul J., and Swick, Ralph R., "X Window System Toolkit, The Complete
  674. Programmer's Guide and Specification", Digital Press, 1990.  The bible on Xt.
  675. A treasury of information, excellent and invaluable.  Distributed by Digital
  676. Press, ISBN 1-55558-051-3, order number EY-E757E-DP; and by Prentice- Hall,
  677. ISBN 0-13-972191-6.
  678.  
  679. Nye, Adrian, and Tim O'Reilly, "X Toolkit Programming Manual, Volume 4,"
  680. O'Reilly and Associates, 1989. The folks at O'Reilly give their comprehensive
  681. treatment to programming with the MIT Intrinsics; R4 versions are now
  682. available, as is a Motif 1.1 version (Volume 4M).
  683.  
  684. Dan Heller's version of the Motif Programming Manual is still a widely used
  685. and useful book. It is being replaced by Volume 6a and 6b but is a very useful
  686. resource. Volume 6, Oreilly and Associates, Motif Edition.
  687.  
  688. Flanagan, David, ed.,  "X Toolkit Reference Manual, Volume 5," O'Reilly and
  689. Associates, 1992a, Third Edition. A professional reference manual for the MIT
  690. X11R4 and X11R5 Xt.
  691.  
  692. Books and reference manuals on Xlib may also be useful.
  693.  
  694. If you want to learn about UIL, look in the Motif Programmers's Guide.  This
  695. seems to be the only information.
  696.  
  697.  
  698. -----------------------------------------------------------------------------
  699. Subject: 22)  TOPIC: MWM
  700.  
  701. -----------------------------------------------------------------------------
  702. Subject: 23)  What is the difference between Motif and mwm?
  703.  
  704. Answer: mwm is a window manager. Motif itself is made up of four parts: a
  705. User-Interface Guideline, an API toolkit of `C' routines which helps in the
  706. building of applications which conform to the Guideline, the window manager
  707. mwm, and a language UIL which is designed to ease user interface development.
  708. In general mwm will run an application built with any X-windows API, and in
  709. general an application built using the Motif toolkit will run under any window
  710. manager.
  711.  
  712.  
  713. -----------------------------------------------------------------------------
  714. Subject: 24)  Does anyone have an alternative set of 3-D defaults for a
  715. monochrome screen?
  716.  
  717. Answer: This is obviously a matter of taste. Some alternatives suggested
  718. include
  719.  
  720. !Benjamin Schreiber, bs@osf.osf.org, bs@cs.brandeis.edu
  721. Mwm*foreground:                 black           ! Actually, when a window is
  722. Mwm*background:                 white           ! deactivated, the background
  723. Mwm*backgroundPixmap:           50_foreground   ! becomes white, insted of
  724. Mwm*topShadowPixmap:            white           ! 50% foreground (grey)
  725.  
  726. Mwm*activeForeground:           black
  727. Mwm*activeBackground:           white
  728. Mwm*activeBackgroundPixmap:     50_foreground
  729. Mwm*activeTopShadowPixmap:      white
  730.  
  731. Mwm*menu*backgroundPixmap:      background
  732. Mwm*menu*topShadowPixmap:       50_foreground
  733.  
  734. Mwm*title*foreground:                   black
  735. Mwm*title*background:                   white
  736. Mwm*title*backgroundPixmap:             white
  737. Mwm*title*topShadowPixmap:              50_foreground
  738. Mwm*title*activeForeground:             white
  739. Mwm*title*activeBackground:             black
  740. Mwm*title*activeBackgroundPixmap:       black
  741. Mwm*title*activeBottomShadowPixmap:     50_foreground
  742.  
  743. Mwm*feedback*backgroundPixmap:          white
  744.  
  745. or
  746.  
  747. ! From: tsang@isi.com (Kam C. Tsang)
  748. Mwm*background:                      White
  749. Mwm*activeBackground:                White
  750. Mwm*activeBackgroundPixmap:          25_foreground
  751. Mwm*foreground:                      Black
  752. Mwm*activeForeground:                Black
  753. Mwm*menu*background:                 white
  754. Mwm*menu*foreground:                 black
  755. xterm*Foreground:                    black
  756. xterm*Background:                    white
  757.  
  758.  
  759. or
  760.  
  761. ! From: ucsd.edu!usc!snorkelwacker!paperboy!yee  (Michael K. Yee)
  762. Mwm*cleanText:                          True
  763.  
  764. Mwm*activeBackground:           white
  765. Mwm*activeForeground:           black
  766. Mwm*background:                 white
  767. Mwm*foreground:                 black
  768.  
  769. Mwm*client*activeBackgroundPixmap:      50_foreground
  770. Mwm*client*activeTopShadowPixmap:       foreground
  771. Mwm*client*activeBottomShadowPixmap:    background
  772.  
  773. !Mwm*client*background:                 white
  774. !Mwm*client*foreground:                 black
  775. Mwm*client*backgroundPixmap:            75_foreground
  776. Mwm*client*topShadowPixmap:             foreground
  777. Mwm*client*bottomShadowPixmap:          background
  778.  
  779. !Mwm*feedback*background:               white
  780. !Mwm*feedback*foreground:               black
  781. Mwm*feedback*backgroundPixmap:          50_foreground
  782. !Mwm*feedback*topShadowPixmap:          25_foreground
  783. !Mwm*feedback*bottomShadowPixmap:       background
  784.  
  785. !Mwm*menu*background:                   white
  786. !Mwm*menu*foreground:                   black
  787. Mwm*menu*backgroundPixmap:              foreground
  788. !Mwm*menu*topShadowPixmap:              foreground
  789. !Mwm*menu*bottomShadowPixmap:           background
  790.  
  791. !Mwm*icon*background:                   white
  792. !Mwm*icon*foreground:                   black
  793. Mwm*icon*activeBackgroundPixmap:        50_foreground
  794. Mwm*icon*activeBottomShadowPixmap:      foreground
  795. Mwm*icon*backgroundPixmap:              75_foreground
  796.  
  797.  
  798.  
  799. -----------------------------------------------------------------------------
  800. Subject: 25)  How can I modify the Motif window manager decorations?
  801.  
  802. Answer: In resource files, use the window manager's client resource (which is
  803. the application) and the resource clientDecoration:
  804.  
  805. Mwm*XClock.clientDecoration:   none
  806.  
  807. turns off all clock decorations.  See the mwm(1) entry for other
  808. possibilities.
  809.  
  810. Programmatically, set the VendorShell resource XmNmwmDecorations to
  811. appropriate values: MWM_DECOR_NONE (or a bitwise or of values).
  812.  
  813. -----------------------------------------------------------------------------
  814. Subject: 26)  How can I turn off the Motif window manager functions from the
  815. system menu?
  816. [Last modified: October 92]
  817.  
  818. Answer: The user of an application can control functions in the system menu
  819. for an application using the mwm resource clientFunctions:
  820.  
  821.         mwm.application_name.clientFunctions: -resize -close
  822.  
  823. Note that mwm will have to be restarted after putting this in their resource
  824. database.
  825.  
  826.  
  827. Answer: The writer of an application can only remove items.  Be warned that
  828. your users will probably gnash their teeth, swear furiously at your product
  829. and stop using it if they discover that you have done this.  (Especially if
  830. you have removed the Close button, your application has hung and it has taken
  831. up all of memory and swap so it can't be killed.) Much better is to catch the
  832. action gracefully as in the next question.
  833.  
  834.         #include <Xm/MwmUtil.h>
  835.  
  836.         XtVaGetValues(shell, XmNmwmFunctions, &int_val, NULL);
  837.         int_val &= ~(MWM_FUNC_CLOSE | MWM_FUNC_ALL);
  838.         XtVaSetValues(shell, XmNmwmFunctions, int_val, NULL);
  839.  
  840.  
  841.  
  842. -----------------------------------------------------------------------------
  843. Subject: 27)  How can tell I if the user has selected the "Close" item on the
  844. system menu attached to the top-level shell?  I need to do some clean up
  845. before exiting.
  846.  
  847. [Last modified: May 93]
  848.  
  849. Answer:          This works with R4 Intrinsics
  850.  
  851.         #include <Xm/Protocols.h>
  852.  
  853.         void FinalCleanupCB(w, client_data, call_data)
  854.         Widget   w;
  855.         caddr_t  client_data, call_data;
  856.         {
  857.                 /* tidy up stuff here */
  858.                 ...
  859.                 /* exit if you want to */
  860.                 exit (0);
  861.         }
  862.  
  863.         main()
  864.         {
  865.                 Atom wm_delete_window;
  866.  
  867.                 ...
  868.                 XtRealizeWidget(toplevel);
  869.                 ...
  870.                 wm_delete_window =
  871.                         XmInternAtom(XtDisplay(toplevel),
  872.                                 "WM_DELETE_WINDOW", False);
  873.                 XmAddWMProtocolCallback(toplevel, wm_delete_window,
  874.                         FinalCleanupCB, NULL);
  875.                 XtMainLoop();
  876.         }
  877.  
  878. This will still kill the application.  To turn this behaviour off so that the
  879. application is not killed, set the shell resource XmNdeleteResponse to
  880. XmDO_NOTHING.  This means that users cannot kill your application via the
  881. system menu, and may be a bad thing.
  882.  
  883. If you are running R3, Bob Hays (bobhays@spss.com) has suggested this:
  884. "Trapping on the delete window atom does not work as I cannot force my action
  885. routine to the top of the action list for the activity desired, so the window
  886. manager kills my window anyway BEFORE I can do anything about it.  And, to
  887. make matters worse, the window manager (Motif in this case) tacks its atoms
  888. and handlers onto the window at some unknown point down the line after the
  889. creation of the shell widget as far as I can tell.  So....
  890.  
  891. I have a procedure as an action routine for ClientMessage.  Then, if I get a
  892. property change event on the window manager protocols, I then tack on
  893. WM_SAVE_YOURSELF.  If I get this request, I clean up (it seems to happen on
  894. WM_DELETE_WINDOW, BTW, if you remove WM_DELETE_WINDOW from the WM protocols
  895. atom) and exit.  Works great and is less filling overall:-)."
  896.  
  897.  
  898. -----------------------------------------------------------------------------
  899. Subject: 28)  Is there an mwm virtual desktop manager?
  900.  
  901. Answer: Peter E. Wagner (pew@cs.brown.edu): Imagine that your "desktop"
  902. extends beyond the view provided by your monitor.  A virtual window manager
  903. gives you access to the space beyond your viewport (i.e. your screen) by
  904. allowing you to move the viewport to other areas of the extended desktop.
  905.  
  906. The first one is Solbourne's swm, which spawned vtwm/tvtwm/olvwm.
  907.  
  908. David B. Lewis created one.  suresh@unipalm.co.uk has further developed it
  909. into the UniPalm product DOORS, which is only available as a source code
  910. extension to the MOTIF window manager.  The price of the source and unlimited
  911. right to distribute binaries is 10,000 pounds Sterling.  Alternately, source
  912. and right to use within one company is 2,000 pounds Sterling.  Contact Peter
  913. Dawe
  914.  
  915. Unipalm Limited                         Voice: +44 (0) 223 420002
  916. 216 The Science Park                    Fax:   +44 (0) 223 426868
  917. CAMBRIDGE
  918. CB4 4WA
  919.  
  920.  
  921.  
  922. An enhancement request for such an object has been filed with OSF.
  923.  
  924. -----------------------------------------------------------------------------
  925. Subject: 29)  Why does mwm 1.2 crash on startup?
  926.  
  927. [Last modified: March 93]
  928.  
  929. Answer: From David Brooks: The commonest cause of early mwm demise is as
  930. follows:
  931.  
  932. - You, or someone, built Xlib in the default way using the Xsi
  933.   internationalization functions.
  934.  
  935. - Your Xlib wasn't installed completely (or at all).
  936.  
  937. - Early on, mwm calls the function XmbTextListToTextProperty, which calls
  938.   _XConvertMBToCT, which looks for the Xsi locale database, finds it
  939.   missing, ignores this fact and tries to dereference zero.
  940.  
  941. The workaround is to find the database *somewhere*, and point the environment
  942. variable XNLSPATH at it.  For example, in my personal X source tree:
  943.  
  944.         setenv XNLSPATH /home/X11r5src/mit/lib/nls/Xsi
  945.  
  946.  
  947. -----------------------------------------------------------------------------
  948. END OF PART ONE
  949. -- 
  950. ..........................
  951.  
  952.