home *** CD-ROM | disk | FTP | other *** search
/ Game Level Design / GLDesign.bin / Software / UnrealEngine2Runtime / UE2Runtime-22262001_Demo.exe / GUI / Classes / moEditBox.uc < prev    next >
Text File  |  2003-06-30  |  1KB  |  54 lines

  1. // ====================================================================
  2. //  Class:  GUI.moEditBox
  3. //  Parent: GUI.GUIMenuOption
  4. //
  5. //  <Enter a description here>
  6. // ====================================================================
  7.  
  8. class moEditBox extends GUIMenuOption;
  9.  
  10. var        GUIEditBox MyEditBox;
  11. var        bool       bReadOnly;        // This Combobox is read only
  12.  
  13. function InitComponent(GUIController MyController, GUIComponent MyOwner)
  14. {
  15.     Super.Initcomponent(MyController, MyOwner);
  16.     MyEditBox = GUIEditBox(MyComponent);
  17.     MyEditBox.bReadOnly = bReadOnly;
  18. }
  19.  
  20. function string GetText()
  21. {
  22.     return MyEditBox.GetText();
  23. }
  24.  
  25. function SetText(string NewText)
  26. {
  27.     MyEditBox.SetText(NewText);
  28. }
  29.  
  30. function ReadOnly(bool b)
  31. {
  32.     MyEditBox.bReadOnly = b;
  33. }
  34.  
  35. function IntOnly(bool b)
  36. {
  37.     MyEditBox.bIntOnly=b;
  38. }
  39.  
  40. function FloatOnly(bool b)
  41. {
  42.     MyEditBox.bFloatOnly = b;
  43. }
  44.  
  45. function MaskText(bool b)
  46. {
  47.     MyEditBox.bMaskText = b;
  48. }
  49.  
  50. defaultproperties
  51. {
  52.     ComponentClassName="GUI.GUIEditBox"
  53. }
  54.