Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-dev] Inverting range of Vertical Slider

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



Back to the top