# Multi-Line Control

> Source: https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/multi-line-control/overview

A Multi-Line control is used for entering one or more lines of text. Depending on the Multi-Line input field, the user will press a function key, **Tab** or **Enter** to submit the input.

![](https://manual.pvxplus.com/migration-assets/1adaee9a451f37ebadda3a8fa280dbdbeb904dc026d94081be9a4ee87def1ba5.jpg)

If you define a Multi-Line input field as more than one line in height, PxPlus adds scrollbars and applies word wrapping. If the input area is only one line high, the Multi-Line input region will not have a vertical scrollbar but will scroll horizontally as required.

Your application may use a locked and borderless Multi-Line to display text, which can be updated by your program (a dynamic alternative to fonted text).

A predefined **[Data Class](https://manual.pvxplus.com/data-dictionary/data-classes/overview)** can also be applied to a Multi-Line control.

## Creating a Multi-Line

To draw a new Multi-Line on your panel, select the Multi-Line control tool from the **[Controls Toolbar](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/drawing-and-modifying-panel-objects/controls-toolbox)**. Hold down the left-mouse button and drag the mouse to create a rectangle to the desired size. Release the mouse button to create the new object.

A Multi-Line control can also be created from a ***data class*** or a data dictionary ***element***. See **[Data Class Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/introduction#Mark4)** and **[Data Element Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/introduction#Mark5)**.

For making other adjustments, see **[Modifying Objects](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/drawing-and-modifying-panel-objects/modifying-objects)**.

To define the specific attributes for the new control, see **[Multi-Line Properties](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/multi-line-control/multi-line-properties)**.

For information and examples on the use of ***dynamic data classes*** and ***dynamic control properties***, see **[Dynamic Control Properties](https://manual.pvxplus.com/data-dictionary/data-classes/dynamic)**.

## Loading Data Elements

Once created, values in a Multi-Line are accessible to retrieve or set using the variable with the same name as the control. See **[Accessing and Manipulating Controls](https://manual.pvxplus.com/nomads-graphical-application/program-interaction/event-handler-routines/accessing-and-manipulating-controls)**.

**[Smart Controls](https://manual.pvxplus.com/nomads-graphical-application/smart-controls/overview)** can be used to simplify this process by auto-loading data based on query definitions. Use the Auto Load property to set this feature (if activated).

An **[EZ Load Multi-Line](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/multi-line-control/ez-load-multiline)** is a Multi-Line that self-loads based on the value of another control or variable associated with its panel. When the value of the other control changes, the EZ Load Multi-Line is re-populated with the associated value.

## See Also

**[MULTI_LINE Directive](https://manual.pvxplus.com/directives/multi-line#Mark3)**
