Project

General

Profile

Actions

Range

Widgets which visualize an adjustment : scale, scroll bar, ... objects

_gtkRangeSetValues

Sets min et max, step and page size to a range object.

Prototype : fun [ObjGtkWidget [F F] [F F]] ObjGtkWidget

range ObjGtkWidget a valid existing object
min_max [F F] the min and the max values availables
step_page [F F] the step and the page sizes values

Return : ObjGtkWidget : the same object or nil if error

  • step is used when the user clicks on the arrow button / cursor or when he moves the cursor with the arrow keys (by example).
  • page is used when th user click on the body or he moves the cursor with the page up / page down keys (by example).

_gtkRangeGet

Returns the current value or nil if error

Prototype : fun [ObjGtkWidget] F

_gtkRangeSet

Sets the current value

Prototype : fun [ObjGtkWidget F] ObjGtkWidget

range ObjGtkWidget a valid existing object
value F the new value. It will be forced to inside the range if it is outside.

Return : ObjGtkWidget : the same object or nil if error

Return Api

Updated by iri about 13 years ago ยท 3 revisions