[comp.windows.x] XView and static text

straw@cam.nist.gov (Mike Strawbridge) (12/01/90)

I would like to use in my XView application either:

    a) multi-line static text items within a scrollable Panel

or

    b) some other type of object for displaying multiple lines of static
       text.

The XView Programming Manual page 136 footnote says that a) is not
supported. Is there any hope for me?

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

fgreco@dprg-330.GOVt.shearson.COM (Frank Greco) (12/11/90)

> 
> I would like to use in my XView application either:
> 
>     a) multi-line static text items within a scrollable Panel
> 
> or
> 
>     b) some other type of object for displaying multiple lines of static
>        text.
> 
> The XView Programming Manual page 136 footnote says that a) is not
> supported. Is there any hope for me?
> 
> mike


	If you can live with one font for all your text, you could
	create a read-only TEXTSW.  This is extremely trivial.
	There's a whole section devoted to TEXTSW's in Dan Heller's 
	XVPM.  Scrollbars/Scrolling and (multi-view) Splittability comes for free.

	Or for more flexibility, you could create a CANVAS and go 
	wild with colors and fonts.  There's just a little bit more 
	work you have to do (e.g., taking care of repainting and handling
	events) but its still very easy.



	Frank G.