UEditableText

Editable text box widget

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/EditableText.h

Include

#include "Components/EditableText.h"

Syntax

class UEditableText : public UWidget

Remarks

Editable text box widget

Variables

Name Description

Public variable

bool

 

AllowContextMenu

Whether the context menu can be opened

Public variable

bool

 

ClearKeyboardFocusOnCommit

Whether to clear keyboard focus when pressing enter to commit changes

Public variable

FText

 

HintText

Hint text that appears when there is no text in the text box

Public variable

FGetText

 

HintTextDelegate

A bindable delegate to allow logic to drive the hint text of the widget

Public variable

bool

 

IsCaretMovedWhenGainFocus

Workaround as we lose focus when the auto completion closes.

Public variable

bool

 

IsPassword

Sets whether this text box is for storing a password

Public variable

bool

 

IsReadOnly

Sets whether this text box can actually be modified interactively by the user

Public variable

TEnumAsByte< ET...

 

Justification

How the text should be aligned with the margin.

Protected variable

FText

 

K2_Cache_HintText

Protected variable

FText

 

K2_Cache_Text

Public variable

TEnumAsByte< EV...

 

KeyboardType

If we're on a platform that requires a virtual keyboard, what kind of keyboard should this widget use?

Public variable

float

 

MinimumDesiredWidth

Minimum width that a text block should be

Protected variable

TSharedPtr< SEd...

 

MyEditableText

Public variable

FOnEditableText...

 

OnTextChanged

Called whenever the text is changed programmatically or interactively by the user

Public variable

FOnEditableText...

 

OnTextCommitted

Called whenever the text is committed.

Public variable

bool

 

RevertTextOnEscape

Whether to allow the user to back out of changes when they press the escape key

Public variable

bool

 

SelectAllTextOnCommit

Whether to select all text when pressing enter to commit changes

Public variable

bool

 

SelectAllTextWhenFocused

Whether to select all text when the user clicks to give focus on the widget

Public variable

FShapedTextOpti...

 

ShapedTextOptions

Controls how the text within this widget should be shaped.

Public variable

FText

 

Text

The text content for this editable text box widget

Public variable

FGetText

 

TextDelegate

A bindable delegate to allow logic to drive the text of the widget

Public variable

EVirtualKeyboar...

 

VirtualKeyboardDismissAction

What action should be taken when the virtual keyboard is dismissed?

Public variable

FVirtualKeyboar...

 

VirtualKeyboardOptions

Additional options for the virtual keyboard

Public variable

FEditableTextSt...

 

WidgetStyle

The style

Constructors

Name Description

Public function

UEditableText

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

FText

 

GetText()

Gets the widget text

Protected function

void

 

HandleOnTextChanged

(
    const FText& Text
)

Protected function

void

 

HandleOnTextCommitted

(
    const FText& Text,
    ETextCommit::Type CommitMethod
)

Protected function

FText

 

K2_Gate_HintText()

Protected function

FText

 

K2_Gate_Text()

Public function

void

 

SetClearKeyboardFocusOnCommit

(
    bool bInClearKeyboardFocusOnCommit
)

Public function

void

 

SetHintText

(
    FText InHintText
)

Public function

void

 

SetIsPassword

(
    bool InbIsPassword
)

Public function

void

 

SetIsReadOnly

(
    bool InbIsReadyOnly
)

Public function

void

 

SetText

(
    FText InText
)

Directly sets the widget text.

Overridden from UWidget

Name Description

Protected function Virtual Const

TSharedPtr< ...

 

GetAccessibleWidget()

Gets the widget that accessibility properties should synchronize to.

Public function Virtual

const FText

 

GetPaletteCategory()

Gets the palette category of the widget

Protected function Virtual

TSharedRef< ...

 

RebuildWidget()

Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed.

Public function Virtual

void

 

SynchronizeProperties()

Applies all properties to the native widget if possible.

Overridden from UVisual

Name Description

Public function Virtual

void

 

ReleaseSlateResources

(
    bool bReleaseChildren
)

Overridden from UObject

Name Description

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Classes

Deprecated Variables

Name Description

Public variable

USlateBrushAsse...

 

BackgroundImageComposing_DEPRECATED

Background image for the composing text (overrides Style)

Public variable

USlateBrushAsse...

 

BackgroundImageSelected_DEPRECATED

Background image for the selected text (overrides Style)

Public variable

USlateBrushAsse...

 

CaretImage_DEPRECATED

Image brush used for the caret (overrides Style)

Public variable

FSlateColor

 

ColorAndOpacity_DEPRECATED

Text color and opacity (overrides Style)

Public variable

FSlateFontInfo

 

Font_DEPRECATED

Font color and opacity (overrides Style)

Public variable

USlateWidgetSty...

 

Style_DEPRECATED

Text style

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback