• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Horizontal scrolling text window problem.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Multiple NSTextView with Movable Splitter
  • Next by Date: Re: Multiple NSTextView with Movable Splitter
  • Previous by thread: Re: Multiple NSTextView with Movable Splitter
  • Next by thread: RE:Horizontal scrolling text window problem.
  • Index(es):
    • Date
    • Thread