Horizontal scrolling text window problem.
Horizontal scrolling text window problem.
- Subject: Horizontal scrolling text window problem.
- From: Jerry LeVan <email@hidden>
- Date: Sat, 24 Jul 2004 21:38:21 -0400
Hi,
I have a need for a horizontal scrollbar in one of my applications.
I will occasionally generate tables with many or wide columns and
wrapping "destroys the user experience". I dug around in the
archives and found some code that looks like:
// set horizontal scrolling for the input window
[[inputTextView enclosingScrollView] setHasHorizontalScroller:YES];
[inputTextView setHorizontallyResizable:YES];
[inputTextView
setAutoresizingMask:(NSViewWidthSizable|NSViewHeightSizable)];
[[inputTextView textContainer] setContainerSize:NSMakeSize(MAXFLOAT,
MAXFLOAT)];
[[inputTextView textContainer] setWidthTracksTextView:NO];
The horizontal scroller sorta works, however if a displayed table has
enough columns/width the scroll bar will *not* be able to scroll to
the end of the line.
It kinda looks like the width of the monitor is the determining factor.
Can anyone offer any hints on how to fix the problem?
Thanks
Jerry
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.