[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScroller, NSBrowser and some issues

From: Serg Stoyan
Subject: NSScroller, NSBrowser and some issues
Date: Fri, 4 Oct 2002 02:07:22 +0300

Hi everybody,

Here is another improvement in appearance: NSScroller.
Fist patch changes drawing of knob slot of NSScroller (stiplled 
instead of solid). Second one is updates NSBrowser according to NSScroller's 

Working on NSScroller, I've noticed that coordinate system of the 
gnustep-gui and gnustep-back is not the same. NSScroller's knob slot is drawing 
with number of rectangles using:

bPath = [NSBezierPath bezierPathWithRect:rect];
[bPath stroke];

Now we decrease heigth of rect by 10 points and draw with
[bPath stroke]. This second rectangle is expected to be visible as horizontal 
line 10 points lower then top of the first one. Instead, we
see horizontal line 10 points higher of the bottom of first rectangle.
Maube this is a specific behaviour of NSBezierPath?

Second, I've temporary replace [scrollBarColor set] with 
[[NSColor darkGrayColor] set], because changing from

gray, @"scrollBarColor", 


darkGray, @"scrollBarColor",

in NSColor.m has no effect. I can't figured out what the problem is...

To maintainers: Do you read me? Maybe these patches are useless? This is third 
post with no feedback...

Serg Stoyan

Attachment: NSScroller.m.patch
Description: Binary data

Attachment: NSBrowser.m.patch
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]