straw@cam.nist.gov (Mike Strawbridge) (12/08/90)
In my XView application I would like to display multiple lines of static text ... i.e. text to be viewed and not edited. What are my options? a) Text Subwindows - fine, but I don't need (or want) the editing, loading, etc. capabilities. b) PANEL MESSAGES - if I use these will I have to create a separate PANEL_MESSAGE for each line of text?? c) Other better ways ??? mike ----------------------------------------------------------------------- NAME: Michael Strawbridge TELE: (301) 975-3852 USMAIL: National Institute of Standards ARPA: straw@cam.nist.gov and Technology UUCP: uunet!cme-durer!straw Rm. B-146, Bldg. 225 Gaithersburg, MD 20899
kaleb@thyme.jpl.nasa.gov (Kaleb Keithley ) (12/08/90)
In article <6130@pizza.cam.nist.gov> straw@cam.nist.gov (Mike Strawbridge) writes: >In my XView application I would like to display multiple lines of static >text ... i.e. text to be viewed and not edited. What are my options? > >c) Other better ways ??? > How about XDrawString, or XDrawImageString? -- Kaleb Keithley Jet Propulsion Labs kaleb@thyme.jpl.nasa.gov You can please all of the people some of the time,
quasar@krazykat.ctt.bellcore.com (Laurence R. Brothers) (12/11/90)
Well, as I have learned (thanks, Orest), you can interpose on the OPENWIN_NTH_VIEW of a text subwindow to disable all the unnecessary editing potential of a text subwindow. Since TEXTSW_BROWSING doesn't help much, this seems to be the best way to show read-only text in xview. Laurence R. Brothers (quasar@bellcore.com) Bellcore -- Computer Technology Transfer -- Knowledge-Based Systems "Like dancing oil on a madman's face, reason tends to fly away"
fgreco@dprg-330.GOVt.shearson.COM (Frank Greco) (12/14/90)
> > In my XView application I would like to display multiple lines of static > text ... i.e. text to be viewed and not edited. What are my options? > 1. Read Only Text Subwindows with your own event proc that ignores mouse/keyboard events. For multi-line static, one-font, one-color text, this is the easiest. Comes with (splittable/joinable) scrolling for free. 2. Panel Messages. One line per. 3. Read Only Panel Text items. One line per. 4. Canvas with either: a.) Xview style repainting b.) Xlib style repainting c.) If you have OpenWindows, NeWS-style (ie, Postscript) repainting This is the most flexible, but the most work (actually its not *that* much work, just more than the previous choices). Frank G. In case you're interested, there is an openlook list (openlook@unify.com).