[comp.windows.x] R3 -> R4 conversion help

lindholm@greve.ucs.ubc.ca (George Lindholm) (07/03/90)

I`m trying to compile a package that has the following R3 data:

        static Arg arglist[] = {              
		{XtNtextOptions, resizeHeight | resizeWidth | 
			scrollHorizontal | scrollVertical | wordBreak}
	};


What do I replace the above with for R4? Thanks

Also, is there an easy way to learn X11 programming ;-)?

George_Lindholm@mtsg.ubc.ca   lindholm@staff.ucs.ubc.ca  USERGNL@UBCMTSG.BITNET
University of British Columbia Computing Services

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (07/03/90)

Put the following lines in you app-defaults file:

> resizeHeight | resizeWidth

*Text*resize:		Both

> scrollHorizontal | scrollVertical

*Text*Scroll:		Always		(or try WhenNeeded)

> wordBreak}

If you want exactly the same behavior:

*Text*wrap:		word

But I personally favor:

*Text*autoFill:		on
*Text*wrap:		none		(or is it never)

NOTE:

The r3 Text widget did not allow hoizontal scrolling, and the R4 one does not
allow Horizontal scrolling with word or line wrap activated.


						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213