Core.Object | +--UWindow.UWindowBase | +--UWindow.UWindowWindow | +--UWindow.UWindowDialogControl | +--UWindow.UWindowEditControl
EditAreaDrawX,
EditAreaDrawY
UWindowEditBox
EditBox
void
BeforePaint(Canvas C, float X, float Y)
Clear()
Created()
string
GetValue()
Paint(Canvas C, float X, float Y)
SetDelayedNotify(bool bDelayedNotify)
SetEditTextColor(Color NewColor)
SetFont(int NewFont)
SetHistory(bool bInHistory)
SetMaxLength(int MaxLength)
SetNumericFloat(bool bNumericFloat)
SetNumericOnly(bool bNumericOnly)
SetValue(string NewValue)
00001 class UWindowEditControl extends UWindowDialogControl; 00002 00003 var float EditBoxWidth; 00004 var float EditAreaDrawX, EditAreaDrawY; 00005 var UWindowEditBox EditBox; 00006 00007 function Created() 00008 { 00009 local Color C; 00010 00011 Super.Created(); 00012 00013 EditBox = UWindowEditBox(CreateWindow(class'UWindowEditBox', 0, 0, WinWidth, WinHeight)); 00014 EditBox.NotifyOwner = Self; 00015 EditBox.bSelectOnFocus = True; 00016 00017 EditBoxWidth = WinWidth / 2; 00018 00019 SetEditTextColor(LookAndFeel.EditBoxTextColor); 00020 } 00021 00022 function SetNumericOnly(bool bNumericOnly) 00023 { 00024 EditBox.bNumericOnly = bNumericOnly; 00025 } 00026 00027 function SetNumericFloat(bool bNumericFloat) 00028 { 00029 EditBox.bNumericFloat = bNumericFloat; 00030 } 00031 00032 function SetFont(int NewFont) 00033 { 00034 Super.SetFont(NewFont); 00035 EditBox.SetFont(NewFont); 00036 } 00037 00038 function SetHistory(bool bInHistory) 00039 { 00040 EditBox.SetHistory(bInHistory); 00041 } 00042 00043 function SetEditTextColor(Color NewColor) 00044 { 00045 EditBox.SetTextColor(NewColor); 00046 } 00047 00048 function Clear() 00049 { 00050 EditBox.Clear(); 00051 } 00052 00053 function string GetValue() 00054 { 00055 return EditBox.GetValue(); 00056 } 00057 00058 function SetValue(string NewValue) 00059 { 00060 EditBox.SetValue(NewValue); 00061 } 00062 00063 function SetMaxLength(int MaxLength) 00064 { 00065 EditBox.MaxLength = MaxLength; 00066 } 00067 00068 function Paint(Canvas C, float X, float Y) 00069 { 00070 LookAndFeel.Editbox_Draw(Self, C); 00071 Super.Paint(C, X, Y); 00072 } 00073 00074 00075 function BeforePaint(Canvas C, float X, float Y) 00076 { 00077 Super.BeforePaint(C, X, Y); 00078 LookAndFeel.Editbox_SetupSizes(Self, C); 00079 } 00080 00081 function SetDelayedNotify(bool bDelayedNotify) 00082 { 00083 Editbox.bDelayedNotify = bDelayedNotify; 00084 } 00085 00086 defaultproperties 00087 { 00088 }