Scroll bar customizing

Discussion in 'Mac Programming' started by szsiddiq, Mar 20, 2007.

  1. macrumors 6502


    Dec 21, 2005
    Is it possible to reprogram the scroll bars is OS X to be wider?
  2. macrumors 68000


    Mar 7, 2006
    Only way that i can think of doing it is to make your own theme.
  3. thread starter macrumors 6502


    Dec 21, 2005
  4. macrumors 6502a

    Jun 15, 2006
    I don't even think you can do it with your own theme. I'm pretty sure the sizes of all the interface elements are fixed.
  5. macrumors 6502

    Jul 25, 2006
    It should be possible to do so in your own applications by subclassing NSScroller. The size of the scroller isn't hard coded, as can be seen by the fact that NSScroller has a "small" size. A properly designed subclass should allow a scroller of any width (perhaps within certain limits), though it's probably a lot more work than you would guess.

    If you succeed in creating that, there might be a possibility of making that class pose as NSScroller for all Cocoa applications. I highly doubt in the feasibility of doing this, and then again, it would only affect Cocoa applications.

    So, if you're looking to change the scroller width throughout the system, I'd say you're out of luck.
  6. macrumors 68030


    Apr 17, 2004
    you could probably do this with images as well, when the user clicks on the down button to scroll down, have it set the position of another image down lower or whatever you want, and have the up arrow do the opposite. Then have an image that shows the location that is draggable up down left right that will changed the position. It may take longer to code, and you'd have to setup everything to scroll based on it, but its possible (at least I think).

Share This Page