Customize NSScroller in the NSScrollView

2011-07-19 Thread Dawid Naglik
Hello Could anyone describe me a way to customize the NSScroller look inside NSScrollView? I know that NSScrollView and NSScroller have to be subclassed but I'm stuck with that. Could anyone tell me how to exchange slider bitmaps and implement the new slider into NSScrollView? Thanks in advanc

Re: Customize NSScroller

2008-10-04 Thread Mr. Gecko
Never mind I found out how - (void)drawKnob { NSRect position = [self rectForPart:NSScrollerKnob]; NSImage *topImg = [NSImage imageNamed:@"kt"]; [topImg setFlipped:YES]; NSSize topImgSize = [topImg size]; [topImg drawInRect:NSMakeRect(position.origin.x, position.or

Customize NSScroller

2008-10-04 Thread Mr. Gecko
Hello I have been working on making a custom NSScroller and so far I got a lot done. the only thing I am having trouble with is drawing the knob. I have three images top, center, and bottom. how can i put that together to make a scroll bar. Top and Bottom width is 15 and height is 12. Center