home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / doc / Xaw / strings.xaw < prev    next >
Encoding:
Text File  |  1991-07-30  |  23.4 KB  |  657 lines

  1. \" These macros are not associated with any widget.
  2.  
  3. .de Rs \" Resource Conversion message
  4. A converter is registered for this resource that will convert
  5. the following strings: \fB\\$1\fP.
  6. ..
  7. .de Sk \" This is an AsciiSink Resource
  8. .if 'AsciiText'\\$1' This is an AsciiSink resource. 
  9. ..
  10. .de So \" This is an AsciiSrc Resource
  11. .if 'AsciiText'\\$1' This is an AsciiSrc resource. 
  12. ..
  13.  
  14. \" Object Resources
  15. .de Dc \" Object destroyCallback
  16. .IP destroyCallback 1.5i
  17. All functions on this list are called when this widget is destroyed.
  18. ..
  19.  
  20. \" RectObj Resources
  21. .de As \" RectObj ancestorSensitive
  22. .IP ancestorSensitive 1.5i
  23. The sensitivity state of the ancestors of this widget.  A widget is
  24. insensitive if either it or any of its ancestors is insensitive.
  25. This resource should not be changed with \fBXtSetValues\fP, although it
  26. may be queried.
  27. ..
  28. .de Bw \" RectObj borderWidth
  29. .IP borderWidth 1.5i
  30. The width of this widget's window border.
  31. ..
  32. .de Hw \" RectObj height and width
  33. .IP height 1.5i
  34. .br
  35. .ns
  36. .IP width 1.5i
  37. The height and width of this widget in pixels.
  38. ..
  39. .de Se \" RectObj sensitive
  40. .IP sensitive 1.5i
  41. Whether or not the toolkit should pass user events to this widget.  The
  42. widget will not get input events if either \fBancestorSensitive\fP or
  43. \fBsensitive\fP is \fBFalse\fP.
  44. ..
  45. .de Xy \" RectObj x and y
  46. .IP x 1.5i
  47. .br
  48. .ns
  49. .IP y 1.5i
  50. The location of the upper left outside corner of this widget in its parent.
  51. ..
  52.  
  53. \" Core Resources
  54.  
  55. .de Ac \" Core accelerators
  56. .IP accelerators 1.5i
  57. A list of event to action bindings to be executed by this widget, even
  58. though the event occurred in another widget.  (See the \fI\*(xT\fP for
  59. details).
  60. ..
  61. .de Bg \" Core background
  62. .ie 'Bold'\\$1' .IP \fBbackground\fP 1.5i
  63. .el .IP background 1.5i
  64. A pixel value which indexes the widget's colormap to derive the
  65. background color of the widget's window.
  66. ..
  67. .de Gp \" Core backgroundPixmap
  68. .IP backgroundPixmap 1.5i
  69. The background pixmap of this widget's window.  If this resource is set to
  70. anything other than \fBXtUnspecifiedPixmap\fP, the pixmap specified will be
  71. used instead of the background color.
  72. ..
  73. .de Bc \" Core borderColor
  74. .IP borderColor 1.5i
  75. A pixel value which indexes the widget's colormap to derive the border
  76. color of the widget's window.
  77. ..
  78. .de Bp \" Core borderPixmap
  79. .IP borderPixmap 1.5i
  80. The border pixmap of this widget's window.  If this resource is set to
  81. anything other than \fBXtUnspecifiedPixmap\fP, the pixmap specified will be
  82. used instead of the border color.
  83. ..
  84. .de Cm \" Core colormap
  85. .IP colormap 1.5i
  86. The colormap that this widget will use.
  87. ..
  88. .de Dp \" Core depth
  89. .IP depth 1.5i
  90. The depth of this widget's window.
  91. ..
  92. .de Mm \" Core mappedWhenManaged
  93. .IP mappedWhenManaged 1.5i
  94. If this resource is \fBTrue\fP, then the widget's window will
  95. automatically be mapped by the Toolkit when it is realized and managed.
  96. ..
  97. .de Sc \" Core screen
  98. .IP screen 1.5i
  99. The screen on which this widget is displayed.  This is not a settable
  100. resource.
  101. ..
  102. .de Tr \" Core translations
  103. .IP translations 1.5i
  104. The event bindings associated with this widget.
  105. ..
  106.  
  107. \" Simple Widget Resource Definitions
  108.  
  109. .de Cu \" Simple cursor
  110. .ie 'Bold'\\$1' .IP \fBcursor\fP 1.5i
  111. .el .IP cursor 1.5i
  112. The image that will be displayed as the pointer cursor whenever it is in
  113. this widget.  The use of this resource is deprecated in favor
  114. of \fBcursorName\fP.
  115. ..
  116. .de Pn \" Simple cursorName
  117. .ie 'Bold'\\$1' .IP\fBcursorName\fP 1.5i
  118. .el .IP cursorName 1.5i
  119. The name of the symbol to use to represent the pointer cursor.  This resource
  120. will override the \fBcursor\fP resource if both are specified. (See 2.4.1)
  121. ..
  122. .de Ib \" Simple insensitiveBorder
  123. .ie 'Bold'\\$1' .IP \fBinsensitiveBorder\fP 1.5i
  124. .el .IP insensitiveBorder 1.5i
  125. This pixmap will be tiled into the widget's border if the widget becomes
  126. insensitive.
  127. ..
  128. .de Pf \" Simple pointerColor
  129. .ie 'Bold'\\$1' .IP\fBpointerColor\fP 1.5i
  130. .el .IP pointerColor 1.5i
  131. A pixel value which indexes the widget's colormap to derive the foreground
  132. color of the pointer symbol specified by the \fBcursorName\fP resource.
  133. ..
  134. .de Pb \" Simple pointerColorBackground
  135. .ie 'Bold'\\$1' .IP\fBpointerColorBackground\fP 1.75i
  136. .el .IP pointerColorBackground 1.75i
  137. A pixel value which indexes the widget's colormap to derive the background
  138. color of the pointer symbol specified by the \fBcursorName\fP resource.
  139. ..
  140.  
  141. \" Label Widget Resource Definitions
  142.  
  143. .de Bm \" Label bitmap
  144. .ie 'Bold'\\$1' .IP \fBbitmap\fP 1.5i
  145. .el .IP bitmap 1.5i
  146. A bitmap to display instead of the \fBlabel\fP.  The default size of the
  147. widget will be just large enough to contain the bitmap and the widget's
  148. internal width and height.  The resource converter for this resource
  149. constructs bitmaps from the contents of files.  (See \fBConverting
  150. Bitmaps\fP for details.)  If this bitmap is one bit deep then the 1's
  151. will be rendered in the foreground color, and the 0's in the background
  152. color.  If \fBbitmap\fP has a depth greater than one, it is copied
  153. directly into the window.
  154. ..
  155. .de Le \" Label encoding
  156. .ie 'Bold'\\$1' .IP \fBencoding\fP 1.5i
  157. .el .IP encoding 1.5i
  158. The encoding method used by the value of the \fBlabel\fP resource.
  159. The value may be \fBXawTextEncoding8bit\fP or \fBXawTextEncodingChar2b\fP.
  160. ..
  161. .de Lf \" Label font
  162. .ie 'Bold'\\$1' .IP \fBfont\fP 1.5i
  163. .el .IP font 1.5i
  164. The text font to use when displaying the \fBlabel\fP.
  165. ..
  166. .de Lg \" Label foreground
  167. .ie 'Bold'\\$1' .IP \fBforeground\fP 1.5i
  168. .el .IP foreground 1.5i
  169. A pixel value which indexes the widget's colormap to derive the
  170. foreground color of the widget's window.  This color is also 
  171. used to render all 1's in a \fBbitmap\fP one plane deep.
  172. ..
  173. .de Ih \" Label internalHeight
  174. .ie 'Bold'\\$1' .IP \fBinternalHeight\fP 1.5i
  175. .el .IP internalHeight 1.5i
  176. .br
  177. .ns
  178. .ie 'Bold'\\$1' .IP \fBinternalWidth\fP 1.5i
  179. .el .IP internalWidth 1.5i
  180. The minimum amount of space to leave between the \fBlabel\fP or
  181. \fBbitmap\fP and the vertical and horizontal edges of the window.
  182. ..
  183. .de Ju \" Lable justify
  184. .ie 'Bold'\\$1' .IP \fBjustify\fP 1.5i
  185. .el .IP justify 1.5i
  186. .IN "conversions" "Justify"
  187. Specifies left, center, or right alignment of \fBlabel\fP within the
  188. widget.  This resource may be specified with the values
  189. \fBXtJustifyLeft\fP, \fBXtJustifyCenter\fP, or \fBXtJustifyRight\fP.
  190. .Rs "left, right, \fPand\fB center".
  191. This resource only has noticeable effect when the width of the widget
  192. is larger than necessary to display the \fBlabel\fP.
  193. ..
  194. .de La \" Label label
  195. .ie 'Bold'\\$1' .IP \fBlabel\fP 1.5i
  196. .el .IP label 1.5i
  197. Specifies the text string to be displayed in the widget's window
  198. if no bitmap is specified.  The default is the name of this widget.
  199. Irregardless of the value of \fBencoding\fP, a single newline character
  200. (1 byte) will cause a line break.
  201. ..
  202. .de Ll \" Label leftBitmap
  203. .ie 'Bold'\\$1' .IP \fBleftBitmap\fP 1.5i
  204. .el .IP leftBitmap 1.5i
  205. Specifies a bitmap to display to the left of the label in the widget's 
  206. window.
  207. ..
  208. .de Re \" Label resize
  209. .ie 'Bold'\\$1' .IP \fBresize\fP 1.5i
  210. .el .IP resize 1.5i
  211. Specifies whether the widget should attempt to resize to its
  212. preferred dimensions whenever its resources are modified with
  213. \fBXtSetValues\fP.  This attempt to resize may be denied by the parent
  214. of this widget.  The parent is always free to resize the widget
  215. regardless of the state of this resource.
  216. ..
  217.  
  218. \" Command Widget Resource Definitions
  219.  
  220. .de Cb \" Command callback
  221. .ie 'Bold'\\$1' .IP \fBcallback\fP 1.5i
  222. .el .IP callback 1.5i
  223. A list of routines to be called when the \fBnotify\fP action is invoked.
  224. ..
  225. .de Cr \" Command cornerRoundPercent
  226. .ie 'Bold'\\$1' .IP \fBcornerRoundPercent\fP 1.5i
  227. .el .IP cornerRoundPercent 1.5i
  228. When a \fBShapeStyle\fP of \fBroundedRectangle\fP is used, this
  229. resource controls the radius of the rounded corner.  The radius of the
  230. rounded corners is specified as a percentage of the length of the
  231. shortest side of the widget.
  232. ..
  233. .de Ht \" Command highlightThickness
  234. .ie 'Bold'\\$1' .IP \fBhighlightThickness\fP 1.5i
  235. .el .IP highlightThickness 1.5i
  236. The thickness of the rectangle that is used to highlight the internal
  237. border of this widget, alerting the user that it is ready to be
  238. selected.  The default value is 2 pixels if the \fBshapeStyle\fP is
  239. \fBrectangle\fP, and 0 Pixels (no highlighting) otherwise.
  240. ..
  241. .de Ss \" Command shapeStyle
  242. .ie 'Bold'\\$1' .IP \fBshapeStyle\fP 1.5i
  243. .el .IP shapeStyle 1.5i
  244. .IN "conversions" "ShapeStyle"
  245. Nonrectangular buttons may be created using this resource.
  246. Nonrectangular buttons are supported only on a server that supports the
  247. \fBShape Extension\fP.  If nonrectangular buttons are specified
  248. for a server lacking this extension, the shape is ignored and the
  249. widgets will be rectangular.  The following shapes are currently
  250. supported: \fBXmuShapeRectangle\fP, \fBXmuShapeOval\fP,
  251. \fBXmuShapeEllipse\fP, and \fBXmuShapeRoundedRectangle\fP.
  252. .Rs "rectangle, oval, ellipse, \fPand\fP roundedRectangle"
  253. ..
  254.  
  255. \" Composite Resources
  256.  
  257. .de Ch \" Composite children
  258. .IP children 1.5i
  259. A list of all this composite widget's current children.
  260. ..
  261. .de Ip \" Composite insertPosition
  262. .IP insertPosition 1.5i
  263. A function which allows the application programmer to specify the position
  264. of a new child.
  265. ...
  266. .de Nc \" Composite numChildren
  267. .IP numChildren 1.5i
  268. The number of children in this composite widget.
  269. ..
  270.  
  271. \" Form Resources
  272.  
  273. .de Dd \" Form defaultDistance
  274. .ie 'Bold'\\$1' .IP \fBdefaultDistance\fP 1.5i
  275. .el .IP defaultDistance 1.5i
  276. The default internal spacing for the children.  This is
  277. the default value for the constraint resources \fBhorizDistance\fP and
  278. \fBvertDistance\fP.
  279. ..
  280.  
  281. \" Form Constraints
  282.  
  283. .de Bt \" Form bottom, left, right, and top
  284. .ie 'Bold'\\$1' .IP \fBbottom\fP 1.5i
  285. .el .IP bottom 1.5i
  286. .br
  287. .ns
  288. .ie 'Bold'\\$1' .IP \fBleft\fP 1.5i
  289. .el .IP left 1.5i
  290. .br
  291. .ns
  292. .ie 'Bold'\\$1' .IP \fBright\fP 1.5i
  293. .el .IP right 1.5i
  294. .br
  295. .ns
  296. .ie 'Bold'\\$1' .IP \fBtop\fP 1.5i
  297. .el .IP top 1.5i
  298. What to do with this edge of the child when the parent is resized.  This
  299. resource may be any \fBedgeType\fP.  See \fBLayout Semantics\fP for
  300. details.
  301. ..
  302. .de Fh \" Form fromHoriz and fromVert
  303. .ie 'Bold'\\$1' .IP \fBfromHoriz\fP 1.5i
  304. .el .IP fromHoriz 1.5i
  305. .br
  306. .ns
  307. .ie 'Bold'\\$1' .IP \fBfromVert\fP 1.5i
  308. .el .IP fromVert 1.5i
  309. Which widget this child should be placed underneath (or to the right
  310. of).  If a value of NULL is specified then this widget will be positioned
  311. relative to the edge of the parent.
  312. ..
  313. .de Hd \" Form horizDistance and vertDistance
  314. .ie 'Bold'\\$1' .IP \fBhorizDistance\fP 1.5i
  315. .el .IP horizDistance 1.5i
  316. .br
  317. .ns
  318. .ie 'Bold'\\$1' .IP \fBvertDistance\fP 1.5i
  319. .el .IP vertDistance 1.5i
  320. The amount of space, in pixels, between this child and its left or
  321. upper neighbor. 
  322. ..
  323. .de Rl \" Form resizable
  324. .ie 'Bold'\\$1' .IP \fBresizable\fP 1.5i
  325. .el .IP resizable 1.5i
  326. If this resource is \fBFalse\fP then the parent widget will ignore all
  327. geometry request made by this child.  The parent may still resize this
  328. child itself, however.
  329. ..
  330.  
  331. .de Lt \" Form Section on Layout semantics
  332. The \\$1 widget uses two different sets of layout semantics.  One is
  333. used when initially laying out the buttons.  The other is used when
  334. the \\$1 is resized. 
  335. .LP
  336. The first layout method uses the \fBfromVert\fP and \fPfromHoriz\fP
  337. .IN "fromVert" "
  338. .IN "fromHoriz" "" 
  339. resources to place the children of the \\$1.  A single pass is made
  340. through the \\$1 widget's children in the order that they were created.
  341. Each child is then placed in the \\$1 widget below or to the right of
  342. the widget specified by the \fBfromVert\fP and \fBfromHoriz\fP resources.
  343. The distance the new child is placed from its left or upper neighbor is
  344. determined by the \fBhorizDistance\fP and \fBvertDistance\fP resources.
  345. .IN "horizDistance" ""
  346. .IN "vertDistance" ""
  347. .IN "conversions" "Widget"
  348. This implies some things about how the order of creation affects the 
  349. possible placement of the children.  The Form widget registers a 
  350. string to widget converter which does not postpone conversion and
  351. does not cache conversion results.
  352. .LP
  353. The second layout method is used when the \\$1 is resized.  It does not
  354. matter what causes this resize, and it is possible for a resize to
  355. happen before the widget becomes visible (due to constraints imposed by
  356. the parent of the \\$1).  This layout method uses the \fBbottom\fP,
  357. \fBtop\fP, \fBleft\fP, and \fBright\fP resources.  These resources are
  358. used to determine what will happen to each edge of the child when the
  359. \\$1 is resized.  If a value of \fBXawChain\fP\fI<something>\fP is
  360. .IN "XawChain" ""
  361. specified, the the edge of the child will remain a fixed distance from
  362. the \fIchain\fP edge of the \\$1.  For example if \fBXawChainLeft\fP is
  363. specified for the \fBright\fP resource of a child then the right edge of
  364. that child will remain a fixed distance from the left edge of the \\$1
  365. widget.  If a value of \fBXawRubber\fP is specified, that edge will grow
  366. .IN "XawRubber" ""
  367. by the same percentage that the \\$1 grew.  For instance if the \\$1
  368. grows by 50% the left edge of the child (if specified as \fBXawRubber\fP
  369. will be 50% farther from the left edge of the \\$1).  One must be very
  370. careful when specifying these resources, for when they are specified
  371. incorrectly children may overlap or completely occlude other children
  372. when the \\$1 widget is resized.
  373. ..
  374.  
  375. \" Text Resources
  376.  
  377. .de Af \" Text autoFill
  378. .ie 'Bold'\\$1' .IP \fBautoFill\fP 1.5i
  379. .el .IP autoFill 1.5i
  380. If this resource is \fBTrue\fP the text widget will automatically break a line
  381. when the user attempts to type into the right margin.  The attribute has
  382. no effect on files or text inserted into the text widget.  It only
  383. checks to see if the action should be taken when a user enters a new
  384. character via the \fIinsert-character\fP action.
  385. ..
  386. .de Tm \" Text margin resources
  387. .ie 'Bold'\\$1' .IP \fBbottomMargin\fP 1.5i
  388. .el .IP bottomMargin 1.5i
  389. .br
  390. .ns
  391. .ie 'Bold'\\$1' .IP \fBleftMargin\fP 1.5i
  392. .el .IP leftMargin 1.5i
  393. .br
  394. .ns
  395. .ie 'Bold'\\$1' .IP \fBrightMargin\fP 1.5i
  396. .el .IP rightMargin 1.5i
  397. .br
  398. .ns
  399. .ie 'Bold'\\$1' .IP \fBtopMargin\fP 1.5i
  400. .el .IP topMargin 1.5i
  401. The amount of space, in pixels, between the edge of the window
  402. and the corresponding edge of the text within the window.  If there is
  403. a scrollbar active on this edge, then this is the space between the text and
  404. the scrollbar.
  405. ..
  406. .de Tc \" Text displayCaret
  407. .ie 'Bold'\\$1' .IP \fBdisplayCaret\fP 1.5i
  408. .el .IP displayCaret     1.5i
  409. Whether or not to display the text insert point.
  410. ..
  411. .de Td \" Text displayPosition
  412. .ie 'Bold'\\$1' .IP \fBdisplayPosition\fP 1.5i
  413. .el .IP displayPosition     1.5i
  414. The position in the text buffer of the character that is currently
  415. displayed in the upper left hand corner of the text display.
  416. ..
  417. .de Ti \" Text insertPosition
  418. .ie 'Bold'\\$1' .IP \fBinsertPosition\fP 1.5i
  419. .el.IP insertPosition 1.5i
  420. This is the location of the insert point.  It is expressed in
  421. characters from the beginning of the file.  The cursor will always be
  422. forced to be on the screen.  This resource may therefore be used to
  423. scroll the text display to a certain character position.
  424. ..
  425. .de Tz \" Text resize
  426. .ie 'Bold'\\$1' .IP \fBresize\fP 1.5i 
  427. .el .IP resize 1.5i
  428. .IN "conversions" "XawTextResizeMode"
  429. Controls whether or not the Text widget attempts to resize itself when
  430. it is no longer able to display the full text buffer in the associated
  431. window.  Any attempt by the Text widget to resize itself is always
  432. subject to the constraints imposed by its parent.  The values
  433. \fBXawtextResizeNever\fP, \fBXawtextResizeWidth\fP,
  434. .IN "XawtextResizeNever" ""
  435. .IN "XawtextResizeWidth" ""
  436. \fBXawtextResizeHeight\fP, and \fBXawtextResizeBoth\fP are all
  437. .IN "XawtextResizeHeight" ""
  438. .IN "XawtextResizeBoth" ""
  439. acceptable for this resource.
  440. .Rs "never, height, width, \fPand\fB both"
  441. ..
  442. .de Ts \" Text scrollHorizontal and scrollVertical
  443. .ie 'Bold'\\$1' .IP \fBscrollHorizontal\fP 1.5i
  444. .el .IP scrollHorizontal 1.5i
  445. .br
  446. .ns
  447. .ie 'Bold'\\$1' .IP \fBscrollVertical\fP 1.5i
  448. .el .IP scrollVertical 1.5i
  449. .IN "conversions" "XawTextScrollMode"
  450. These resources control the placement of scrollbars on the left and
  451. bottom edge of the text widget.  These resources accept the
  452. values \fBXawtextScrollAlways\fP, \fBXawtextScrollWhenNeeded\fP, and
  453. .IN "XawtextScrollAlways" ""
  454. .IN "XawtextScrollWhenNeeded" ""
  455. \fBXawtextScrollNever\fP.
  456. .IN "XawtextScrollNever" ""
  457. .Rs "always, never, \fPand\fB whenNeeded"
  458. If \fBXawtextScrollWhenNeeded\fP is specified, the appropriate scrollbar
  459. will only appear when there is text in the buffer that is not able to
  460. fit within the bounds of the current window.  The scrollbar will
  461. disappear when the text once again fits within the window.
  462. ..
  463. .de St \" Text selectTypes
  464. .ie 'Bold'\\$1' .IP \fBselectTypes\fP 1.5i
  465. .el .IP selectTypes 1.5i
  466. Specifies the selection type array that is used when
  467. multi-click is activated (see \fBText Selections for Application
  468. Programmers\fP for details).  This resource is used in place, and must
  469. not be freed until the widget is destroyed.  There is no
  470. type converter registered for this resource, so it may not be set from
  471. the resource manager. 
  472. ..
  473. .de To \" Text Source and Sink Objects
  474. .ie 'Bold'\\$1' .IP \fBtextSink\fP 1.5i
  475. .el .IP textSink 1.5i
  476. .br
  477. .ns
  478. .ie 'Bold'\\$1' .IP \fBtextSource\fP 1.5i
  479. .el .IP textSource 1.5i
  480. These are the TextSink or TextSource objects used by this widget.
  481. .ie 'Bold'\\$1' When using the Text widget these MUST be set by the \
  482. application programmer.
  483. .el The AsciiText widget initializes these resources to point \
  484. to an AsciiSink and AsciiSrc respectively.
  485. ..
  486. .de Tw \" Text wrap
  487. .ie 'Bold'\\$1' .IP \fBwrap\fP 1.5i
  488. .el .IP wrap 1.5i
  489. When the text in any one line is wider than the window there are several
  490. possible actions.  This resource allows the user to decide what will
  491. happen.  The accepted values for this resource are
  492. \fBXawtextWrapNever\fP, \fBXawtextWrapLine\fP, and
  493. .IN "XawtextWrapNever" ""
  494. .IN "XawtextWrapLine" ""
  495. \fBXawtextWrapWord\fP.  With \fBXawtextWrapLine\fP all text
  496. .IN "XawtextWrapWord" ""
  497. .IN "WrapMode"
  498. that is beyond the right edge of the window will be displayed on the
  499. next line.  With \fBXawtextWrapWord\fP the
  500. same action occurs but the text is broken at a word boundary if 
  501. possible.  If no wrapping is enabled then the text will extend off
  502. the edge of the window, and a small rectangle will be painted in the
  503. right margin to alert the user that this line is too long.
  504. .Rs "never, word, \fPand\fB line"
  505. ..
  506. .de Tu \" Text unrealizeCallback
  507. .ie 'Bold'\\$1' .IP \fBunrealizeCallback\fP 1.5i
  508. .el .IP unrealizeCallback 1.5i
  509. A list of callback functions which will be executed when the Text widget
  510. is unrealized.
  511. ..
  512.  
  513. \" Text Sink Resources
  514.  
  515. .de Sb \" TextSink background
  516. .ie 'Bold'\\$1 .IP \fBbackground\fP 1.5i
  517. .el .IP background 1.5i
  518. A pixel value which indexes the Text widget's colormap to derive the 
  519. background color used by the text sink.
  520. ..
  521. .de Sf \" TextSink font
  522. .ie 'Bold'\\$1' .IP \fBfont\fP 1.5i
  523. .el .IP font 1.5i
  524. This is font for rendering all text and must be a character cell
  525. font (see the X Logical Font Description).  
  526. .Sk \\$1
  527. ..
  528. .de Sg \" TextSink foreground
  529. .ie 'Bold'\\$1' .IP \fBforeground\fP 1.5i
  530. .el .IP foreground 1.5i
  531. A pixel value which indexes the Text widget's colormap to derive the
  532. foreground color used by the text sink.
  533. .Sk \\$1
  534. ..
  535.  
  536. \" Ascii Sink Resources
  537.  
  538. .de Sd \" AsciiSink displayNonprinting
  539. .ie 'Bold'\\$1' .IP \fBdisplayNonprinting\fP 1.5i
  540. .el .IP displayNonprinting 1.5i
  541. If this resource is \fBTrue\fP, the Text widget will display all
  542. non-printable characters as the string \fI^@\fP.  If \fBFalse\fP, the
  543. Text widget 
  544. will just leave a blank space where a non-printable character exists
  545. in the text buffer.  
  546. .Sk \\$1
  547. ..
  548. .de Sh \" AsciiSink echo
  549. .ie 'Bold'\\$1' .IP \fBecho\fP 1.5i
  550. .el .IP echo 1.5i
  551. Whether or not to echo characters to the screen.  The buffer can still
  552. be edited, but nothing is displayed.  This mode can be useful for
  553. entering passwords and other sensitive information.  
  554. .Sk \\$1
  555. ..
  556.  
  557. \" TextSrc Resources
  558.  
  559. .de Oe \" TextSrc editType
  560. .ie 'Bold'\\$1' .IP \fBeditType\fP 1.5i
  561. .el .IP editType 1.5i
  562. This is the type of editing that will be allowed in this text widget.
  563. Legal values are \fBXawtextRead\fP, \fBXawtextEdit\fP, and
  564. .IN "XawtextRead" ""
  565. .IN "XawtextEdit" ""
  566. \fBXawtextAppend\fP.
  567. .IN "XawtextAppend" ""
  568. .IN "conversions" "XawTextEditType"
  569. .Rs "read, edit, \fPand\fB append"
  570. .So \\$1
  571. ..
  572.  
  573. \" AsciiSrc Resources
  574.  
  575.  
  576. .de Oc \" AsciiSrc callback
  577. .ie 'Bold'\\$1' .IP \fBcallback\fP 1.5i
  578. .el .IP callback 1.5i
  579. The callbacks registered on this resource will be called every time the
  580. text buffer changes, after the text has been updated.
  581. .So \\$1
  582. ..
  583. .de Od \" AsciiSrc dataCompression
  584. .ie 'Bold'\\$1' .IP \fBdataCompression\fP 1.5i
  585. .el .IP dataCompression 1.5i
  586. The AsciiSrc uses an algorithm that may cause the text buffer to grow
  587. to about twice the size of the actual text over time, as the text is
  588. edited.  On systems where CPU cycles are cheaper than memory, it is helpful to
  589. spend some extra time to compress this buffer back to its minimum size.
  590. If this resource is \fBTrue\fP, the AsciiSrc will compress its data
  591. to the minimum size required every time the text string is saved, or the
  592. value of the string is queried.
  593. .So \\$1
  594. ..
  595. .de Ol \" AsciiSrc length
  596. .ie 'Bold'\\$1' .IP \fBlength\fP 1.5i
  597. .el .IP length 1.5i
  598. If the \fBuseStringInPlace\fP resource is \fBFalse\fP this attribute has no
  599. effect.  If that resource is \fBTrue\fP, however, then the \fBlength\fP
  600. resource specifies the length of the buffer passed to the text widget
  601. in the \fBstring\fP resource.
  602. .So \\$1
  603. ..
  604. .de Op \" AsciiSrc pieceSize
  605. .ie 'Bold'\\$1' .IP \fBpieceSize\fP 1.5i
  606. .el .IP pieceSize 1.5i
  607. This is the size of the internal chunks into which the text buffer is
  608. broken down for memory management.  The larger this value the less segmented
  609. your memory will be, but the slower your editing will be.  The text
  610. widgets will always allocate a chunk of memory this size to stuff the
  611. \fBstring\fP into, so when using small strings, having this buffer
  612. large can waste memory.  This resource has no effect if
  613. \fBuseStringInPlace\fP is \fBTrue\fP.
  614. .So \\$1
  615. ..
  616. .de Os \" AsciiSrc string
  617. .ie 'Bold'\\$1' .IP \fBstring\fP 1.5i
  618. .el .IP string 1.5i
  619. If \fBtype\fP is \fBXawAsciiString\fP then this string contains the
  620. buffer to be displayed in the widget.  If \fBtype\fP is
  621. \fBXawAsciiFile\fP then the string contains the name of the file to be
  622. displayed.  This string is normally copied by the text widget into
  623. internal memory, but may be used in place by setting the
  624. \fBuseStringInPlace\fP resource.  As of X11R4 this is a settable resource.
  625. .So \\$1
  626. When the \fBstring\fP resource is queried, using \fBXtGetValues\fP, and
  627. \fBuseStringInPlace\fP is false, the value returned is valid until
  628. the next time the \fBstring\fP resource is queried, or until the application 
  629. writer calls \fBXawAsciiSrcFreeString\fP.  If \fBuseStringInPlace\fP is
  630. true, a pointer to the actual string is returned.  See also section 5.6.
  631. ..
  632. .de Ot \" AsciiSrc type
  633. .ie 'Bold'\\$1' .IP \fBtype\fP 1.5i
  634. .el .IP type 1.5i
  635. This resource may be either \fBXawAsciiString\fP or
  636. \fBXawAsciiFile\fP.  The value of this resource determines whether the
  637. \fBstring\fP resource contains the name of a file to be opened or a buffer to
  638. be displayed by the text widget.  A converter has been registered for
  639. this resource and accepts the values \fBstring\fP and \fBfile\fP.
  640. .IN "conversions" "AsciiType"
  641. .So \\$1
  642. ..
  643. .de Ou \" AsciiSrc useStringInPlace
  644. .ie 'Bold'\\$1' .IP \fBuseStringInPlace\fP 1.5i
  645. .el .IP useStringInPlace 1.5i
  646. Setting this resource to \fBTrue\fP will disable the memory management 
  647. provided by the Text widget, updating the \fBstring\fP resource in
  648. place.  Using the string in place can
  649. be much more efficient for text widgets that display static data, or
  650. where the programmer wishes to impose strict constraints on the
  651. contents of the \fBstring\fP.  When using the string in place be sure that:
  652. the length of the string is specified by setting the \fBlength\fP resource,
  653. the \fBtype\fP of the Text widget is \fBXawAsciiString\fP, and that
  654. the \fBstring\fP exists for the lifetime of the text widget, or until it has been reset.
  655. .So \\$1
  656. ..
  657.