[Date Index]
[Thread Index]
[Author Index]
Re: Vertical Scrollbars Unresponsive in Pane
*To*: mathgroup at smc.vnet.net
*Subject*: [mg129378] Re: Vertical Scrollbars Unresponsive in Pane
*From*: Gregory Lypny <gregory.lypny at videotron.ca>
*Date*: Tue, 8 Jan 2013 23:40:45 -0500 (EST)
*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com
*Delivered-to*: l-mathgroup@wolfram.com
*Delivered-to*: mathgroup-newout@smc.vnet.net
*Delivered-to*: mathgroup-newsend@smc.vnet.net
*References*: <20130108040620.C74A36868@smc.vnet.net>
Hello Murray,
Thank you for replying. I am using version 8.04 under Mac OS X 10.8.2.
After reading your post, I played around with the image size of the pane
and found that the vertical scroll will work as long the height of the
image is at least 500 (it was originally 100), which means that 18 of
the 244 rows of the array are displayed.
This is something that Wolfram may want to improve because the reason
for using a pane is to display a modest amount of the data but still be
able to browse all of it by scrolling. If I chop the array down to only
36 rows, I should be able to create a pane that displays four or five of
the rows and scrolls vertically, but I cannot. To get the vertical
scroll to work, I have to set the image height to at least 210, which
displays seven rows or almost 20 per cent of the number of rows in the
array. I'm guessing that Wolfram made the area of the hotspot (where
the location of the mouse is detected) on the thumb scroll too small
relative to the total area of the thumb scroll itself. Maybe the area
of the hotspot scales up with that of the thumb scroll as the image
height is increased. That's why the image size has to be increased (by
trial and error) to make the vertical scroll functional. In RAD
languages like LiveCode, a vertically-scrolling field containing 244
rows of data can be set to display only three rows (admittedly
impractical, but that's not the point) but still scroll fine.
Gregory
On Tue, Jan 8, 2013, at 9:59 AM, Murray Eisenberg <murray at math.umass.edu> wrote:
> What platform are you using? And what's the Dimensions of myArray in relation to the ImageSize you prescribed?
>
> I'm not having any trouble with this in Mathematica 9.0.0 under Mac OS X 10.8.2. For example:
>
> myArray = RandomInteger[{0, 100}, { 100, 20}];
> Pane[TableForm[myArray], ImageSize -> {500, 200}, Scrollbars -> True]
>
> I can readily scroll vertically as well as horizontally.
>
>
> On Jan 7, 2013, at 11:06 PM, Gregory Lypny <gregory.lypny at videotron.ca> wrote:
>
>> Hello everyone,
>>
>> Whenever I create a pane with scrollbars to be able to browse through an array of data, the vertical scrollbar is unresponsive.
>>
>> Pane[TableForm[myArray], ImageSize -> {800, 100}, Scrollbars -> True]
>>
>> Is this a bug?
>>
>> Gregory
>
> ---
> Murray Eisenberg murray at math.umass.edu
> Mathematics & Statistics Dept.
> Lederle Graduate Research Tower phone 413 549-1020 (H)
> University of Massachusetts 413 545-2838 (W)
> 710 North Pleasant Street fax 413 545-1801
> Amherst, MA 01003-9305
>
>
>
>
>
Prev by Date:
**ListLinePlot: Transform labels from numeric to text**
Next by Date:
**Re: Problem overloading a System function**
Previous by thread:
**Re: Vertical Scrollbars Unresponsive in Pane**
Next by thread:
**Re: Vertical Scrollbars Unresponsive in Pane**
| |