Slider properties
The Slider part has the following properties:
backgroundColor
The backgroundColor property is the name of the RGB color for the background of the part.
borderWidth
The borderWidth property is the width of the border, specified in pixels, that surrounds the part on all four sides. A width of zero means that a border does not show.
On some platforms, the border width is limited to 1 pixel and any nonzero value is set to 1.
bottomOrRightDetents
The bottomOrRightDetents property represents predefined, marked values along the bottom or right scale that you want the user to be able to click on and have the slider bar move to that position.
bottomOrRightMax
The bottomOrRightMax property specifies the slider's maximum value for the bottom or right scale. The value of this property must be greater than the value specified for the bottomOrRightMin property. The default value is 0.
bottomOrRightMin
The bottomOrRightMin property specifies the slider's minimum value for the bottom or right scale. The value of this property must be less than the value specified for the bottomOrRightMax property. The default value is 0.
bottomOrRightResolution
The bottomOrRightResolution property specifies the size of the increments between the minimum and maximum values for the bottom or right scale. For example, a resolution of 2 for a scale with a minimum value of 0 and a maximum value of 100 would result in increments of 2, 4, 6, ..., 100.
bottomOrRightShaftIncrement
The bottomOrRightShaftIncrement property specifies the amount to be added to or subtracted from the current value when the left mouse button is pressed inside the shaft to the left or right of the slider arm, respectively. This value must be a multiple of the value specified for the bottomOrRightResolution property. If the shaft increment is not a multiple of the resolution, it will be added to the current value, then rounded to the nearest multiple of the resolution, with a minimum movement of one resolution unit.
bottomOrRightSimpleTickIntervalIncrement
The bottomOrRightSimpleTickIntervalIncrement property specifies the interval from the specified minimum value to the specified maximum value to increment the ticks and detents for the scale of the slider.
bottomOrRightSimpleTickIntervalShowValueAsLabel
The bottomOrRightSimpleTickIntervalShowValueAsLabel property specifies that you want to show the value specified on the bottomOrRightSimpleTickIntervalIncrement property as the labels for the scale.
bottomOrRightTicks
The bottomOrRightTicks property specifies whether ticks are added or removed from the scale for the slider.
bottomOrRightValue
The bottomOrRightValue property specifies the value of the scale. If the value is not within the range set by the minimum value and maximum value, then the value is set to the current minimum value or the current maximum value, whichever is closer.
buttonStyle
The buttonStyle property specifies where the buttons should be displayed relative to the shaft. If you specify a value that is not valid, no buttons are displayed. Valid values include the following:
XmBUTTONSSPLIT
Displays one button on either end of the shaft.
XmBUTTONSBEGINNING
Displays both buttons above the shaft for vertical sliders and both buttons to the left of the shaft for horizontal sliders.
XmBUTTONSEND
Displays both buttons below the shafter for vertical sliders and both buttons to the right of the shaft for horizontal sliders.
XmBUTTONSNONE
Displays no buttons. This is the default value.
defaultTickSize
The defaultTickSize property represents the default size for the tick marks of a slider.
enabled
The enabled property specifies whether or not the part is available for selection. If true, the part's contents are available for selection.
fontName
The fontName property is the name of the font to use for the text displayed in the part.
foregroundColor
The foregroundColor property is the name of the RGB color for the foreground of the part.
framingSpec
The framingSpec property represents the values specified for the edge specifications of the part. The edge specifications determine the width, height, and position of the part.
helpFile
The helpFile property is the name of the help file associated with the part.
helpKeysId
The helpKeysId property is the ID of the keys help associated with the part. The ID can be a string or an integer value.
The ID must exist in the help file associated with the part.
helpTitle
The helpTitle property is the title of the help window associated with the part.
helpTopicId
The helpTopicId property is the ID of the help topic associated with the part. The ID can be a string or an integer value.
The ID must exist in the help file associated with the part.
horizontalMargin
The horizontalMargin property specifies the amount of margin you want around the slider.
partName
The partName property specifies the name you want to use to describe the part. For nonvisual parts, this text appears under the icon for the part on the free-form surface.
The name of the part can consist of alphanumeric characters, and must be different from those of all other parts on the layout surface.
If you do not specify a part name, VA Smalltalk generates a unique name based on the class name of the part.
readOnly
The readOnly property specifies that the user cannot modify the existing text.
ribbonStrip
The ribbonStrip property specifies whether you want a visual, colored cue (that looks like a strip of ribbon) to appear as the user drags the slider bar across the values on the scale.
snapToResolution
The snapToResolution property specifies whether you want the slider arm aligned with the nearest scale value. The current value of the slider is determined by the bottomOrRightResolution or topOrLeftResolution properties and not by this property.
tabGroup
The tabGroup property specifies whether or not the part is included as a tab stop so users can use the Tab and Backtab keys to access the part.
thickness
The thickness property specifies the thickness in pixels of the shaft of the slider. The size of the slider arm will be adjusted automatically. You cannot specify a size smaller than 3 pixels. The default is 16.
topOrLeftDetents
The topOrLeftDetents property represents predefined, marked values along the top or left scale that you want the user to be able to click on and have the slider bar move to that position.
topOrLeftMax
The topOrLeftMax property specifies the specifies the slider's maximum value for the top or left scale. The value of this property must be greater than the value specified for the topOrLeftMin property. The default value is 0.
topOrLeftMin
The topOrLeftMax property specifies the slider's minimum value for the top or left scale. The value of this property must be less than the value specified for the topOrLeftMax property. The default value is 0.
topOrLeftResolution
The topOrLeftResolution property specifies the size of the increments between the minimum and maximum values for the top or left scale. For example, a resolution of 2 for a scale with a minimum value of 0 and a maximum value of 100 would result in increments of 0, 2, 4, 6, ..., 100.
topOrLeftShaftIncrement
The topOrLeftShaftIncrement property specifies the amount to be added to or subtracted from the current value when the left mouse button is pressed inside the shaft to the left or right of the slider arm, respectively. This value must be a multiple of the value specified for the topOrLeftResolution property. If the shaft increment is not a multiple of the resolution, it will be added to the current value, then rounded to the nearest multiple of the resolution, with a minimum movement of one resolution unit.
topOrLeftSimpleTickIntervalIncrement
The topOrLeftSimpleTickIntervalIncrement property specifies the interval from the specified minimum value to the specified maximum value to increment the ticks and detents for the scale of the slider.
topOrLeftSimpleTickIntervalShowValueAsLabel
The topOrLeftSimpleTickIntervalShowValueAsLabel property specifies that you want to show the value specified on the topOrLeftSimpleTickIntervalIncrement property as the labels for the scale.
topOrLeftTicks
The topOrLeftTicks property specifies whether ticks are added or removed from the scale for the slider.
topOrLeftValue
The topOrLeftValue property specifies the value of the scale. If the value is not within the range set by the minimum value and maximum value, then the value is set to the current minimum value or the current maximum value, whichever is closer.
traversalOn
The traversalOn property specifies whether users can access the part using the cursor movement keys. If the part is specified as a tab stop by using the tabGroup property, users also can use the Tab and Backtab keys to access the part.
vertical
The vertical property specifies whether the part has a vertical or horizontal orientation.
verticalMargin
The verticalMargin property specifies the number of pixels to be used as a margin between the slider components (scales, shaft, buttons) and the top and bottom edges of the slider area.