#DropDownList

Top  Previous  Next

The #DropDownList object enables an element to be selected from a static dropdown list.

 

Example

DropDownList_Up

 

When an element is selected from the #DropDownList object, the VarValue is automatically set to the value of the associated image/text information.

The first list element has the value 0.

 

Sample:

Text0 à Wert = 0
Text1 à Wert = 1
Text2 à Wert = 2

 

 

Parameters

Object

Column A

M/O

Default

Description

#DropDownList

M


Selection of an element from a static list

Text/File

Column B

M/O

Default

Description

<text0>,<text1>,...

M/O


Text strings for states 0,1,... separated by ‘,’. Texts can also be defined on multiple lines. Each text element is added to the DropDownList and shown as a list.

Example

DropDownList_Up

<image0>,<image1>,...

O/M


Name of image files for states 0,1, separated by ‘,’. Same as for text elements, only with images.

Example

DropDownList_Down

Font

Column C Font

M/O

Default

Description

<Fontname>.FNT

O

Current font

Font for displaying text

X, Y, DX, DY

Columns D-G

M/O

Default

Description

Integer constants

Variable of type INT

O

Autom. positioning

Position and dimension

Color

Column H

M/O

Default

Description

Color

O

Current foreground color

Font color of text

BackColor

Column I

M/O

Default

Description

Color

O

Current background color

Background color of text

Format

Column J

M/O

Default

Description


O

Border=Standard

Fixed format Border=Standard

Limit1

Column L

M/O

Default

Description

 

<constant>

<variable>

O

VarType-Min

Lower limit value

...Numerical constant

...Variable of type VarType

Limit2

Column M

M/O

Default

Description

 

<constant>

<variable>

O

VarType-Max

Upper limit value

Numerical constant

Variable of type VarType

ActionLimit1, ActionLimit2

Columns N,O

M/O

Default

Description

<action>

O


The standard LimitActions are available.

VarValue

Column P

M/O

Default

Description

<variable>

O


Value of the DropDownList

VarType

Column Q

M/O

Default

Description

Numerical data types

O


All numerical data types are supported

VarState

Column R

M/O

Default

Description

<variable>

O


See VarState column

Option

Column S

M/O

Default

Description

Pos=<Center¦Left¦Right>

O

Pos=Left

Positioning of the text

Pos=Center

 

 

Center = centered

Pos=Left

 

 

Left = left-justified

Pos=Right

 

 

Right = right-justified

MaxLines=<n>

O

Number of list elements

<n> stands for the maximum number of lines to be displayed. The remaining lines must then be scrolled.

Default: All lines are displayed.

PWL=<level>

O

 

Required password level for enabling (see #Password).

LineHeight=<pixel>

O

Font height

<pixel> determines the line height. Without this option, the line height is adjusted to the text or pixel field.

Timeout=<sec>

O

 

<sec> stands for the number of seconds until the DropDownList is closed again.

Transparency=<color>

O

 

The <color> specified in an image file is interpreted as transparent.

Icon-Hinweis Is only required for image formats that do not support transparency, e.g. PCX

In EPAM4 it is better to use the PNG image format instead of this option.

DX=<width>

O

25

<width> stands for the width of the vertical scroll bar in pixels. The value 0 means that the scroll bar is to be hidden.

VarStateOnOffInverted

O

 

Inverts the On / Off functionality of the VarState Variable:

 

VarState = 0 -> Off

VarState = 1 -> On

 

Init, Exit

Columns U, V

M/O

Default

Description

SetVar=<constant>

SetVar=<variable>

O


The SetVar= actions are available

 

 

Difference to EPAM3

Option Open=Up is no longer supported. The list is opened automatically at the top if there is not enough space at the bottom.
The Coff option is currently not supported
An empty list is shown if VarValue contains a value outside of the range of the DropDownList
When the DropDownList is opened all objects can be operated as normal