[Blindmath] Question on keyboard control of an SWT Scale object

Pranav Lal pranav.lal at gmail.com
Fri Feb 17 01:16:53 UTC 2012


Richard,

In windows, I use page up and page down to adjust the slider in large
increments. This is not happening for the slider in the currently published
version. You may want to post this on program-java.

Pranav

-----Original Message-----
From: blindmath-bounces at nfbnet.org [mailto:blindmath-bounces at nfbnet.org] On
Behalf Of Richard Baldwin
Sent: Thursday, February 16, 2012 11:44 PM
To: BlindMath Mailing List; accessibleimage at freelists.org;
brailleblaster at freelists.org
Subject: [Blindmath] Question on keyboard control of an SWT Scale object

I am using an SWT Scale object in the GUI for my latest generation of
blind-oriented software tools. Here is an excerpt of the configuration code:

    Label scaleLabel = new Label(shell,SWT.CENTER);
    scaleLabel.setText("Slide to adjust threshold.");

    //Place a Scale object (slider) on the GUI
    scale = new Scale(shell, SWT.HORIZONTAL);
    scale.setBounds(0, 0, 40, 200);
    scale.setMaximum(100);
    scale.setMinimum(0);
    scale.setIncrement(1);
    scale.setPageIncrement(1);

I would like to find a way to make it possible for a blind user to move the
slider on the scale in both large steps and small steps while maintaining a
reasonable control strategy for mouse users.

As configured, the arrow keys cause the slider to move in one-unit
increments. Also clicking the mouse in the track causes the slider to move
one unit.

Increasing the value of the setPageIncrement parameter has no effect on
movement using the arrow keys. However, it does increase the distance that
the slider moves when the mouse is clicked in the track.

The value of the setIncrement parameter doesn't seem to have any effect for
either keyboard users or mouse users.

Holding down the shift key or the control key while pressing an arrow key
doesn't seem to have any effect.

If anyone knows how to configure the Scale object to make it possible for a
blind user to move the slider on the scale in both large steps and small
steps while maintaining a reasonable control strategy for mouse users,
please let me know.

Or, if there is a different slider-like SWT control that would be better to
use in such an application, I would like to hear about it also. By the way,
before using the Scale object, I looked into the Slider object and found it
unacceptable for my purpose.

Dick Baldwin

-- 
Richard G. Baldwin (Dick Baldwin)
Home of Baldwin's on-line Java Tutorials
http://www.DickBaldwin.com

Professor of Computer Information Technology
Austin Community College
(512) 223-4758
mailto:Baldwin at DickBaldwin.com
http://www.austincc.edu/baldwin/
_______________________________________________
Blindmath mailing list
Blindmath at nfbnet.org
http://nfbnet.org/mailman/listinfo/blindmath_nfbnet.org
To unsubscribe, change your list options or get your account info for
Blindmath:
http://nfbnet.org/mailman/options/blindmath_nfbnet.org/pranav.lal%40gmail.co
m





More information about the BlindMath mailing list