uslider (Slider)

The uslider widget allows users to edit a numeric value in a field by sliding an indicator in a set of a previously defined range of values. Uniface provides a logical widget called Slider, which is mapped to uslider.

Slider widget

For more information, see Specifying a Widget for a Field or Entity.

Widget Overview
Logical widget name: Slider
Maps to physical widget:

uslider

Default definition: Slider=uslider
Use for: Numeric fields
Supported triggers: See Triggers
Supported properties: See Widget Properties
Supported in egrid(Grid) widget? No
Supports MSAA? : No

Description

The uslider widget is a graphical representation of numeric data. The Orientation property defines the exact view of the widget. Unlike the umeter widget, the uslider widget is editable by the user (unless the widget has the field attribute NED).

Triggers

If the user edits the slider’s value, the valueChanged trigger is activated when the mouse button is released. When the user double-clicks the slider widget, the detail trigger is activated.

Widget Properties

Slider Widget Properties

Property

Technical Name

Dynamic?

3-D Effect (3d)

3D>

No

Attach to Window Border (attach)

Attach

Yes

Background Color (BackColor)

BackColor

Yes

Frame

Frame

No

Label Font (LabelFont)

LabelFont

No

Major Tick Units (MajorTickUnits)

MajorTickUnits

Yes

Minor Tick Units (MinorTickUnits)

MinorTickUnits

Yes

Maximum Annotation Value

Maximum

Yes

Minimum Annotation Value

Minimum

Yes

Orientation

Orientation

Yes

Snap to Ticks

Snap

Yes

Attach Margin (AttachMargin)

AttachMargin

Yes

Popup Rectangle (PopupRect)

PopupRect

Yes