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

Pranav Lal pranav.lal at gmail.com
Fri Feb 17 14:31:54 UTC 2012


Hi Richard,

Glad to have been of service. <smile

Pranav

-----Original Message-----
From: blindmath-bounces at nfbnet.org [mailto:blindmath-bounces at nfbnet.org] On
Behalf Of Richard Baldwin
Sent: Friday, February 17, 2012 7:30 AM
To: Blind Math list for those interested in mathematics;
accessibleimage at freelists.org
Subject: Re: [Blindmath] Question on keyboard control of an SWT Scale object

Pranav, that is the answer. If I set the pageIncrement to 10, pressing Page
Up and Page Down will move the slider by 10 steps.

Thanks,
Dick Baldwin

On Thu, Feb 16, 2012 at 7:16 PM, Pranav Lal <pranav.lal at gmail.com> wrote:

> 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
>
>
> _______________________________________________
> 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/baldwin%40dickbaldwin
.com
>



-- 
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