Scroll bar customizing

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

  1. macrumors 6502

    szsiddiq

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

    ®îçhå®?

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

    szsiddiq

    Joined:
    Dec 21, 2005
    #3
    how hard is that?
     
  4. macrumors 6502a

    Joined:
    Jun 15, 2006
    Location:
    Jakarta
    #4
    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

    Joined:
    Jul 25, 2006
    #5
    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

    slooksterPSV

    Joined:
    Apr 17, 2004
    Location:
    Nowheresville
    #6
    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