PCE version 4C man_modulenamespaceid_tablemodified current_idOIxN class/sliderN referenceC hash_tablerefersizeOIxNbothIsN V.slider.lowCman_variable_card identifiermodule last_modifiednamesummary descriptionsee_alsoinheritdefaultsOIxN V.slider.lowRICdateOIx*ÆávNlownCstringOIx+Lowest value for <->selection. See ->high.CchainsizeOIxIeNV.slider.selectionEN V.slider.highXnnsNC.sliderCman_class_card identifiermodule last_modifiednamesummary descriptionsee_alsoinherituser_interfacebugsOIxNC.sliderRIOIx0ŒÛ.NslidernOI xÆA slider is a graphical representation of a numeric value in a predefined range. The value can be changed by dragging the slider. Sliders are commonly used to view/edit numeric values that should not be exact (it is difficult to drag to an exact value). Examples are the speed of something or a percentage(done). A slider selects or visualises an numeric value in the range (<-low, <-high). Its current value is (as with all dialog_item objects) accessible through <->selection. The exact value is normally shown in textual form as well. This may be controlled by <->show_value. ->show_label determines whether or not the label visible. If either <-low or <-high is a real object, the slider will assume it operates on floating point numbers. If both <-low and <-high is integer, the slider will assume integer values. So, to specify a slider from 0 to 10 in floating point, use: ?- new(S, slider(value, 0,0, 10.0, 5.0)). When a slider is operated by the user (by dragging the value), <-message may be send either on termination or at each drag-event. This is controlled by <->drag. When message is executed, the arguments are: @receiver The slider @arg1 The current <-selection @arg2 The event object.OI xIeN$class/scroll_bar$C.scroll_bareN $class/dialog_item$C.dialog_itemEN$class/text_item$C.text_itemXnnOI xFSliders should be able to handle ranges of floating-point numbers too.sNV.slider.widthOI xNV.slider.widthRIOI x(†®VNwidthnOIx/Length of the bar-part of the slider in pixels.nnOIx 200 pixels.sNV.slider.formatOIxNV.slider.formatRIOIx0ŒÚDNformatnOIxXFormat specification used to represent the textual values. The specification is as for the C printf() call (see also `string->format'). The default format for floating point values is %f and for integers %d. The following defines a slider in 0.01 steps from 0.0 .. 1.0: ?- new(S, slider(value, 0.0, 1.0, 0.5)), send(S, format, '%.2f').nnnsNM.slider.S.computeCman_method_card identifiermodule last_modifiednamesummary descriptionsee_alsoinherit diagnosticsdefaultsbugsOIxNM.slider.S.computeRIOIx,BŸqNcomputenOIxQComputes the layout and sets <-area and <-reference using the various attributes.nnnnnsN V.slider.dragOIxN V.slider.dragRIOIx*ÆÝßNdragnOIx›When @on, <-message will be activated on each drag-event received by the slider. Otherwise, <-message will only be sent when the mouse-button is released.nnOIx@off (only send at mouse-up).sNM.slider.S.defaultOIxNM.slider.S.defaultRIOIx,B aNdefaultnOIx,Sets the -default value and the ->selection.nnnnnsNV.slider.value_fontOIxNV.slider.value_fontRIOIx*ÆâpN value_fontnnOIxIENV.slider.show_valueXnnsNM.slider.S.eventOI xNM.slider.S.eventRIOI!x,B NeventnOI"xôA slider is operated by the left pointer-button. It will execute it's <-message when the user releases the button (<-drag: @off) or anytime the user moves the pointer with the button held down (<-drag: @on). First tries `dialog_item <-event'.nnnnnsNM.slider.G.modifiedOI#xNM.slider.G.modifiedRIOI$x,BŸ!NmodifiednOI%x®A slider is considered modified if the currently displayed value (<-selection) is not equal to the <-displayed_value. ->modified: @off sets <-displayed_value to <-selection.nnnnnsNM.slider.G.defaultOI&xNM.slider.G.defaultRIOI'x,B ”NdefaultnOI(xIf -default holds a function, execute it and return the result. Otherwise return the plain value of -default. Used by ->restore.nnnnnsNV.slider.defaultOI)xNV.slider.defaultRIOI*x,B 8NdefaultnOI+x@The default selection or function to get it. Used by ->restore.nnnsNV.slider.label_fontOI,xNV.slider.label_fontRIOI-x*ÆàN label_fontnOI.x:Font used to print the <-label if <-show_label equals @on.OI/xIENV.slider.show_labelXnnsNM.slider.S.modifiedOI0xNM.slider.S.modifiedRIOI1x,BžÈNmodifiednnnOI2xIENM.slider.G.modifiedXnnnsN V.slider.highOI3xN V.slider.highRIOI4x*ÆÞ&NhighnOI5xBTogether with <-low this variable describes the (including) range.OI6xIeNV.slider.selectioneN V.slider.lowXnnsNM.slider.S.initialiseOI7xNM.slider.S.initialiseRIOI8x,Bž,N initialisenOI9xECreate a slider object from its <-label, <-low, <-high and ->default.nnnnnsNV.slider.show_labelOI:xNV.slider.show_labelRIOI;x*Æâ;N show_labelnOIx@onsNV.slider.selectionOI?xNV.slider.selectionRIOI@x*ÆáôN selectionnOIAxDCurrent value. An integer for which <-low <= <-selection <= <-high.OIBxIeN V.slider.highEN V.slider.lowXnnsNV.slider.show_valueOICxNV.slider.show_valueRIOIDx*ÆâkN show_valuenOIExbWhen @on, the current value is printed in textual format too. It will be printed in <-value_font.OIFxIeNV.slider.value_fontENV.slider.show_labelXnOIGx@onXaCnumber O IHxx