Cogito, ergo sum

UE2:GUIEditBox (UE2Runtime)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UE2Runtime Object >> GUI >> GUIComponent >> GUIButton >> GUIEditBox
Package: 
GUI
This class in other games:
UT2003, UT2004

Class: GUI.GUIEditBox

GUIEditBox - The basic text edit control. I've merged Normal edit, restricted edit, numeric edit and password edit in to 1 control.

Written by Joe Wilcox (c) 2002, Epic Games, Inc. All Rights Reserved

Properties

Property group 'Menu'

AllowedCharSet

Type: string

Only Allow these characters

bConvertSpaces

Type: bool

Do we want to convert Spaces to "_"

bFloatOnly

Type: bool

Only Allow Float Numeric entry

bIncludeSign

Type: bool

Do we need to allow a -/+ sign

bIntOnly

Type: bool

Only Allow Interger Numeric entry

bMaskText

Type: bool

Displays the text as a *

BorderOffsets

Type: int

Array size: 4

How far in from the edit is the edit area

bReadOnly

Type: bool

Can't actually edit this box

MaxWidth

Type: int

Holds the maximum width (in chars) of the string - 0 = No Max

TextCase

Type: GUI.eTextCase

Controls forcing case, etc

TextStr

Type: string

Holds the current string

Internal variables

bAllSelected

Type: bool


CaretPos

Type: int

Where is the cursor within the string

DelayTime

Type: float


FirstVis

Type: int

Position of the first visible character;

LastCaret

Type: int


Default value: -1

LastKey

Type: byte


LastLength

Type: int

Used to make things quick

Default value: -1

LastSizeX

Type: int

Used to detect resolution changes

Default values

Property Value
bCaptureMouse False
OnClickSound CS_Edit
StyleName "SquareButton"
WinHeight 0.06

Functions

Events

SetText

event SetText (string NewText)


Other instance functions

ConvertIllegal

function string ConvertIllegal (string inputstr)


DeleteChar

function DeleteChar ()


GetText

function string GetText ()


InitComponent

function InitComponent (GUIController MyController, GUIComponent MyOwner)

Overrides: GUIButton.InitComponent


InternalOnKeyEvent

function bool InternalOnKeyEvent (out byte Key, out byte State, float delta)

Overrides: GUIButton.InternalOnKeyEvent


InternalOnKeyType

function bool InternalOnKeyType (out byte Key, optional string Unicode)


LoadINI

function string LoadINI ()

Overrides: GUIComponent.LoadINI


SaveINI

function SaveINI (string Value)

Overrides: GUIComponent.SaveINI