TextPad

<< 点击显示目录 >>

主页  mappView帮助助手 > mapp View帮助信息 > Widgets  > Text  >

TextPad

Widget "TextPad" is used as a text editor.

The text pad offers functions for editing generic text files directly from the mapp View HMI application. It allows editing and saving text files with advanced functions such as keyboard shortcuts, search/replace and many others.

logo_online_tutorial

Our B&R Tutorial Portal includes a tutorial on widget TextPad (GER/ENG). (access data)

To use this widget, library MpServer must be present on the target system. "MpServer" is used for internal communication. For more information, see here.

The MpFileManager configuration must be used for this widget. A mapp Link does not need to be specified; the connection between widget and configuration is created automatically!

Files larger than 15 MB may take longer to display in the widget.

The following properties cannot be used in compound widget "Mapping":

zIndex, left, top, height, width

Appearance

textpad_editor

textpad_webbrowser_default

Editor

Web browser

Properties

Name

Type

Description

Bindable

Necessary

Default value

permissionOperate

RoleCollection

Defines the roles that are permitted to use the widget. For roles without sufficient rights, the widget does not react to user interaction and does not trigger events.

 

 

 

permissionView

RoleCollection

Defines the roles that are permitted to see the widget. For roles without sufficient rights, the widget is hidden.

 

 

 

enable

Boolean

Defines the usability of the widget. A disabled widget (enable=false) does not react to user interaction and does not trigger events. The "enable" behavior is inherited from the container widgets to the child widgets.

check

 

true

visible

Boolean

Defines the visibility of the widget. The widget can be hidden with visible=false. (visible = true, hidden = false). The "visible" behavior is inherited from the container widget to the child widgets.

check

 

true

top

Integer

Absolute position measured from the top border of the surrounded element (e.g. container widget or content).

 

 

 

left

Integer

Absolute position measured from the left border of the surrounded element (e.g. container widget or content).

 

 

 

width

Size

Defines the total width of the widget in pixels.

A value in % refers to the width of the surrounding element.

 

 

400

height

Size

Defines the total height of the widget in pixels.

A value in % refers to the height of the surrounding element.

 

 

300

zIndex

UInteger

zIndex determines the z-order of the widget. With overlapping widgets, the zIndex determines which widget is on the top and which one is on the bottom. The widget with the larger zIndex is on top, and the one with the smaller zIndex is on the bottom. The zIndex must be unique within a piece of content or a container widget. The zIndex is automatically assigned by the visual editor and can therefore be changed via the toolbar.

 

check

 

keyboard

Boolean

Defines whether widget "TextKeyPad" is used as an on-screen keyboard for input.

If keyboard=true, "MotionKeyPad" is used and opens automatically as soon as input is required in widget "TextPad". If keyboard=false, it must be ensured that a hardware keyboard is available.

 

 

false

showLineNumber

Boolean

Defines whether line numbering is displayed on the left margin.

If showLineNumber=true, the line numbers are displayed; if false, no line numbers are displayed.

 

 

true

style

StyleReference

Reference to a customizable widget style.

check

 

default

tooltip

String

Defines the text that should appear as information when the tooltip indicator is pressed.

You can use a static text or a text from the text system. For more information, see here.

Mode "Tooltip" must be enabled for this. There are two different options for this:

Using action "ShowTooltip"

Using action "Client system" ShowTooltips.

 

 

 

tabIndex

Integer

Property tabIndex is used to manage the tab order during keyboard operation.

For additional information, see Keyboard operation.

ENTER triggers event Click if tabIndex ≥0.

Operating widget TextPad with buttons is possible in principle, but is not yet supported with the pure button operation of the HMI application.

 

 

-1

Styleable properties

Name

Type

Description

Default value

borderColor

ColorCollection

Defines the color of the border around the widget.

#DFDFDF

borderStyle

BorderStyle

Defines the style of the border around the widget. Borders can be unbroken, dashed or dotted.

none

borderWidth

PixelValCollection

Defines the width of the border around the widget.

1px

margin

Margin

Defines the offset of the external boundary of the widget to the widget's actual set position. For more information, see here.

0px

shadow

Shadow

Defines the shadow of the widget.

none

fontName

FontName

Defines the font used for the text shown.

Monospaced fonts should be used for correct cursor alignment. For additional information, see here.

If the font is not installed on the client, it can be added and manged in a mapp View font package. This is automatically provided to the client when the HMI application is requested.

Courier New

fontSize

PixelVal

Defines the size of the font used to display the text.

12px

textColor

Color

Defines the color used to display the text.

#000000

gutterTextColor

Color

Defines the color used to display the text in the text margin.

#000000

backColor

Color

Defines the background color of the editable area of the widget.

#FFFFFF

selectionBackColor

Color

Defines the background color of the selected text.

#FF8800

activeLineBackColor

Color

Defines the background color of the line on which the cursor is placed.

#E2E2E2

gutterBackColor

Color

Defines the background color of the numbering bar on the left side.

#D1D1D1

activeGutterBackColor

Color

Defines the background color of the row in the numbering bar on which the cursor is placed.

#E2E2E2

Topics in this section:

Actions and events

Concept