Add a range slider for values with two handlers. This one is set to be a number between 0 and 100, a start value of 25 and a stop value of 75.
When using two handles, the minimum distance between the handles can be set using the margin option. The margin value is relative to the value set in 'range'.
The limit option is the oposite of the margin option, limiting the maximum distance between two handles. Used together with the CanChangeWidth=false param, you can 'lock' both handles so changing one changes the other.
For more info on the HandleTooltip, visit the wNumb page.
Dim range As ABMRange range.Initialize(page, "myrange", 25, 75, 0, 100, 1, "") range.HandleToolTip = "wNumb({ decimals: 0 })" range.Connect = ABM.RANGE_CONNECT_TRUE page.Cell(2,1).AddComponent(range)
You can use the comp_changed() event and the GetStart()/SetStart()/GetStop()/SetStop() methods to manipulate the value. Note: for some reason I cannot retrieve the values as double, but only as string.
Sub myrange_Changed(start As String, stop As String) Log("new values: " & start & " " & stop) End Sub Dim range As ABMRange = page.Component("myrange") Log("current values: " & range.GetStart & " " & range.GetStop) range.SetStart(10) range.SetStop(90) range.Refresh