Top
PowerCOBOL V11.0 Reference
FUJITSU Software

3.33 TextBox Control

Description:

The TextBox control provides text entry and editing functions.

It offers single and multiple line entry and formatting of entered character strings.

Sample images:

TextBox:

TextBox with Edit Window:

Multi-line TextBox:

Details:

The RenderText property enables formatting of the text using COBOL PICTURE string or date formats.

You can input the text string into an "edit window" by setting the EditableLabel property to True.

Data can be entered when:

  • The AutoEdit property (which can be set in the EditableLabel group of the SingleLine property page) is True and the TextBox receives focus.

  • A character key is pressed.

  • The ENTER key is pressed.

  • A doubleclick is executed over the TextBox control.

Data entry is concluded when:

  • The ENTER key is pressed.

  • The focus is lost and moved to another control.

  • The DecisionMaxString property (which can be set in the EditableLabel group of the SingleLine property page) is True and the input data reaches the effective maximum string length.

  • The EditableLabel property is True and you are entering text strings to the "edit window", the "edit window" disappears when you press the ESC key.

Properties:

Alignment

Appearance

Array

AutoEdit

AutoHScroll

BackColor

BackStyle

BorderStyle

ClassMajorVersion

ClassMinorVersion

ClassProgID

Container

DecisionMaxString

EditableLabel

Enabled

Font

ForeColor

Height

Highlight

HighlightColor

HScrollBar

IMEMode

Index

Left

MaxLength

MultiLine

Name

Parent

Password

PasswordChar

Printable

ReadOnly

RenderText

ScaleMode

ScalingStyle

SelectText

TabGroup

TabIndex

TabStop

Text

TextCase

ToolTipText

Top

Visible

VScrollBar

Width

Methods:

LoadFile

Move

Refresh

SaveFile

SetFocus

ZOrder

Events:

Change

Click

DblClick

Edit

GotFocus

KeyDown

KeyPress

KeyUp

LostFocus

MouseDown

MouseMove

MouseUp

Return

Class ProgID name:

Fujitsu.PcobTextBox.4

Corresponding Control in PowerCOBOL V3.0 or earlier:

Edit Item.

PictureEdit Item.