[comp.windows.x] XtNtextOptions & scrollHorizontal

cso@organ.cis.ohio-state.edu (Conleth OConnell) (04/18/89)

Hi,
	I am using X Toolkit V11R3 that I suppose our site's X
administrator has up to date with the appropriate fixes.  Anyway, I am
trying to display a file using an asciiDiskWidgetClass text widget.  I
am able to specify the size etc.  The problem I have is that setting
the argument XtNtextOptions with scrollHorizontal does nothing,
whereas scrollVertical works fine.  I know it is assigning the value
of scrollHorizontal to the argument but nothing happens on the screen.
As a result, I've had to put the text widget within a viewport widget.
Unfortunately, with the vertical scrollbar on the viewport widget it
only displays a page (in other words the percentage highlighted
(grayed) in the bar is relative to the page, not the whole file).
Fortunately, the horizontal bar on the viewport works, so between the
two widgets I can have both, almost - the vertical scroll bar of the
asciiDisk widget scrolls horizontally off the screen when I use the
horizontal bar of the viewport widget....sigh.  Any hope on explaining
the scrollHorizontal problem?  It would really simplify the code and
make the display much cleaner if it worked.

Thanks,
Con O'Connell

p.s.  I really like the option to choose where the scrollbars are
displayed in the viewport widget!
-=-
Conleth S. O'Connell	Department of Computer and Information Science
cso@cis.ohio-state.edu		 The Ohio State University
				       2036 Neil Ave.
				Columbus, OH USA 43210-1277

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (04/19/89)

> The problem I have is that setting
> the argument XtNtextOptions with scrollHorizontal does nothing...

Yep, that is because implimenting horizontal scrolling with variable
width fonts is hard.  If anyone out there has code to contribute let us
know, otherwise horizontal scrolling will probabally never happen.  I 
suppose we should just remove it from the docs.


                                                Chris D. Peterson
                                                MIT X Consortium