This component is a slider between two set values, with optional tick marks and labels.
s := Slider() s.set_pos("85%", "25%") s.set_size(, "40%") # Width defaults for a vertical slider s.set_range(0,5) s.set_value(2) s.set_ticks(1) s.set_labels(1) s.set_snaps(1) self.add(s)
Class summary |
Variables inherited from gui::Component |
accel accepts_focus_flag allow_drag_flag allow_drop_flag attribs cbwin children cwin draw_border_flag h h_spec has_focus is_shaded_flag parent parent_dialog ticker tooltip valid w w_spec x x_align x_spec y y_align y_spec |
Methods inherited from lang::Object |
clone(seen) equals(other, seen) get_class() get_class_name() get_id() hash_code(depth, seen) is_instance(name) to_string(depth, seen) |
Methods inherited from util::Connectable |
connect(obj, meth, type) disconnect(l) fire(type, param) fire_event(e) |
Variables inherited from util::Connectable |
listeners |
Variables defined in this class |
discrete_vals hi increment_size is_horizontal_flag is_paging labels labels_pos lo repeat_delay slider_area slider_area_pos slider_area_size slider_down slider_down_offset slider_pos snaps ticks ticks_pos value |
Method detail |
Variable detail |