discuss-gnustep
[Top][All Lists]
Advanced

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

NSScroller and borders


From: Jeff Teunissen
Subject: NSScroller and borders
Date: Wed, 12 Feb 2003 04:57:06 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021226 Debian/1.2.1-9

The other day, I discovered a bit of difference in how GNUstep and OPENSTEP draw NSScrollViews by default.

While porting TextEdit's nibs to .gorm files, I noticed that on OPENSTEP the scroll view was positioned at 0,0, while on GNUstep I had to position it at -2,-2 or modify the code to remove the bezelled border (TextEdit uses a custom SalingScrollView class for its text view so that it can provide a multiple-page view).

(BTW: Other than that difference, TextEdit now mostly runs fine, thanks to Alex's work on the new text system -- with only a small patch to its handling of a NSPopUpButton [message being sent from the menuitem instead of the popup button, an already-known behavior difference]!)

Anyway, this post is to bring up the subject of NSScrollView's default border type. From my examimations, OPENSTEP's NSScrollView has no border by default, while GNUstep's defaults to having a bezelled border. Besides being consistent with OPENSTEP, I think that it's a good idea in general for scrollviews to be unadorned by default, and if wanted it should be set.

gnustep-gui itself will not look different if the default is changed, but there is a small problem with a few apps that don't explicitly set their border type but obviously want one (chiefly Gorm [though I have a patch for this] and GNUMail, though there are others). They look a little bit ugly until they have been patched.

Should this change be made? If so, should it be delayed until after the next release or done now? As I said, -gui itself is clean, but some apps aren't.

--
| Jeff Teunissen  -=-  Pres., Dusk To Dawn Computing  -=-  deek @ d2dc.net
| GPG: 1024D/9840105A   7102 808A 7733 C2F3 097B  161B 9222 DAB8 9840 105A
| Core developer, The QuakeForge Project        http://www.quakeforge.net/
| Specializing in Debian GNU/Linux              http://www.d2dc.net/~deek/





reply via email to

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