PreviousNextIndex

SLIDER phrase

Describes a slider representation of a field or variable. A slider is a graphical representation of a numeric range. It is composed of a rectangular area that contains a line or trackbar. A marker or pointer within the region indicates the current value. The SLIDER phrase is an option of the VIEW-AS phrase.

Note: Does not apply to SpeedScript programming.
Syntax

VIEW-AS SLIDER 
  MAX-VALUE max-value MIN-VALUE min-value 
  [ HORIZONTAL | VERTICAL ]  
  [ NO-CURRENT-VALUE ] 
  [ LARGE-TO-SMALL ] 
  [ TIC-MARKS { NONE | TOP | BOTTOM | LEFT | RIGHT | BOTH } 
    [ FREQUENCY n ] ] 
  [ TOOLTIP tooltip ] 
  [ size-phrase ] 

MAX-VALUE max-value MIN-VALUE min-value
HORIZONTAL | VERTICAL
NO-CURRENT-VALUE
LARGE-TO-SMALL
TIC-MARKS { NONE | TOP | BOTTOM | LEFT | RIGHT | BOTH }
FREQUENCY n
TOOLTIP tooltip
size-phrase
Example

The following procedure displays a slider with tic-marks noted every tenth position, and prompts the user to pick an integer value. After the user picks an integer, the program displays in a separate frame the text “You selected” followed by the value.

r-slide.p
DEFINE VARIABLE choice AS INTEGER NO-UNDO LABEL "You selected". 
DEFINE VARIABLE a      AS INTEGER NO-UNDO. 
UPDATE a VIEW-AS SLIDER MAX-VALUE 100 MIN-VALUE 1 SIZE-CHAR 33 BY 3  
  TIC-MARKS BOTTOM FREQUENCY 10 
  LABEL "Slide to select an integer. Then press GO." 
  WITH FRAME f Three-D. 
choice = a. 
DISPLAY choice WITH FRAME b SIDE-LABELS THREE-D. 
PAUSE. 

Notes
See also

VIEW-AS phrase


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex