Core.Object | +--UWindow.UWindowBase | +--UWindow.UWindowList | +--UWindow.UWindowPulldownMenuItem
string
Caption
Texture
Graphic
byte
HotKey
float
ItemTop
UWindowPulldownMenu
Owner
SubMenu
void
CloseUp()
DeSelect()
UWindowMenuBar
GetMenuBar()
Select()
SetCaption(string C)
00001 //============================================================================= 00002 // UWindowPulldownMenuItem 00003 //============================================================================= 00004 00005 class UWindowPulldownMenuItem extends UWindowList; 00006 00007 var string Caption; 00008 var Texture Graphic; 00009 var byte HotKey; 00010 00011 var UWindowPulldownMenu SubMenu; 00012 var bool bChecked; 00013 var bool bDisabled; 00014 00015 var UWindowPulldownMenu Owner; 00016 var float ItemTop; 00017 00018 function UWindowPulldownMenu CreateSubMenu(class<UWindowPulldownMenu> MenuClass, optional UWindowWindow InOwnerWindow) 00019 { 00020 SubMenu = UWindowPulldownMenu(Owner.ParentWindow.CreateWindow(MenuClass, 0, 0, 100, 100, InOwnerWindow)); 00021 SubMenu.HideWindow(); 00022 SubMenu.Owner = Self; 00023 return SubMenu; 00024 } 00025 00026 function Select() 00027 { 00028 if(SubMenu != None) 00029 { 00030 SubMenu.WinLeft = Owner.WinLeft + Owner.WinWidth - Owner.HBORDER; 00031 SubMenu.WinTop = ItemTop - Owner.VBORDER; 00032 00033 SubMenu.ShowWindow(); 00034 } 00035 } 00036 00037 function SetCaption(string C) 00038 { 00039 local string Junk, Junk2; 00040 00041 Caption = C; 00042 HotKey = Owner.ParseAmpersand(C, Junk, Junk2, False); 00043 } 00044 00045 function DeSelect() 00046 { 00047 if(SubMenu != None) 00048 { 00049 SubMenu.DeSelect(); 00050 SubMenu.HideWindow(); 00051 } 00052 } 00053 00054 function CloseUp() 00055 { 00056 Owner.CloseUp(); 00057 } 00058 00059 function UWindowMenuBar GetMenuBar() 00060 { 00061 return Owner.GetMenuBar(); 00062 } 00063 00064 defaultproperties 00065 { 00066 }