Inverting range of Vertical Slider

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Inverting range of Vertical Slider

Himanshu Balasamanta
In org.eclipse.swt.widgets.Slider class,

In the method Slider.setOrientation(boolean), the
GTK.gtk_range_set_inverted(long handle, boolean invert) is only called
if the Slider is Horizontal..

This leads to Vertical Sliders not being able to change their direction
of value increase.

This issue is filed as a bug here
https://bugs.eclipse.org/bugs/show_bug.cgi?id=511257

I was thinking of adding to org.eclipse.swt.SWT two more Style
Constants, TOP_TO_BOTTOM and BOTTOM_TO_TOP, to allow the vertical slider
access the GTK.gtk_range_set_inverted(long handle, boolean invert) method.

Please let me know whether or not it is a good option, and let me know
similar bugs that exist in SWT.

Myself Himanshu Balasamanta, a sophomore in Electrical Engineering from
India. If this is is OK, I would like to add it to my GSoC proposal.


Thanks in advance and regards,

Himanshu

_______________________________________________
platform-dev mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/platform-dev