#7996: [BSlider] Range slider capability --------------------------------+------------------------- Reporter: jwlh172 | Owner: axeld Type: enhancement | Status: new Priority: normal | Milestone: R1 Component: Kits/Interface Kit | Version: R1/alpha3 Keywords: | Blocked By: Blocking: | Has a Patch: 0 Platform: All | --------------------------------+------------------------- I've enhanced the BSlider control to allow its use as a range slider; rather than only one movable thumb area, there are two, allowing the setting of an offset (starting point) and an end point. In order to create the range slider, one can either set the final variable "dualMode" in the BSlider constructor to "true", or, after creation, can call the SetDualMode(true) member function. SetOffsetValue(int32) and int32 OffsetValue() can be used to set and retrieve the new offset value, which, by default, is set to the slider's minimum value, while the end point value can still be set and retrieved using SetValue and Value. -- Ticket URL: <http://dev.haiku-os.org/ticket/7996> Haiku <http://dev.haiku-os.org> Haiku - the operating system.