From dcc21eb0878f2b1a1d1e6f8c3f135d76e1f1fb90 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 13 Apr 2014 01:59:45 -0400 Subject: Pinned down horizontal scrollbar behavior on Listboxes; also reworded the Area scrollbar behavior sentence a bit to match. Now to actually implement the changes... --- area.go | 2 +- listbox.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/area.go b/area.go index d320410..eadec19 100644 --- a/area.go +++ b/area.go @@ -11,7 +11,7 @@ import ( ) // Area represents a blank canvas upon which programs may draw anything and receive arbitrary events from the user. -// An Area has an explicit size, represented in pixels, that may be different from the size shown in its Window; Areas have horizontal and vertical scrollbars that are hidden when not needed. +// An Area has an explicit size, represented in pixels, that may be different from the size shown in its Window; Areas have both horizontal and vertical scrollbars that are hidden when not needed. // The coordinate system of an Area always has an origin of (0,0) which maps to the top-left corner; all image.Points and image.Rectangles sent across Area's channels conform to this. // The size of an Area must be at least 1x1 (that is, neither its width nor its height may be zero or negative). // diff --git a/listbox.go b/listbox.go index 7c11f78..4e26d3d 100644 --- a/listbox.go +++ b/listbox.go @@ -9,8 +9,7 @@ import ( // A Listbox is a vertical list of items, of which either at most one or any number of items can be selected at any given time. // On creation, no item is selected. -// Listboxes have vertical scrollbars that are hidden when not needed. -// [TODO decide horizontal scrollbar behavior; only the Windows HIG explicitly says to do anything about them (in their case, avoid them unless the control has lots of info and is wide enough, such as a multi-column list) (the Mac OS X one says to just make lists wide enough and ellipsize if needed)] +// Listboxes have both horizontal and vertical scrollbars that are hidden when not needed. type Listbox struct { // TODO Select event -- cgit v1.2.3