GUI
Class GUIListBoxBase

source: C:\XIII\GUI\Classes\GUIListBoxBase.uc
Core.Object
   |
   +--GUI.GUI
      |
      +--GUI.GUIComponent
         |
         +--GUI.GUIMultiComponent
            |
            +--GUI.GUIListBoxBase
Direct Known Subclasses:GUIListBox

class GUIListBoxBase
extends GUI.GUIMultiComponent

// ==================================================================== // (c) 2002, Epic Games, Inc. All Rights Reserved // ====================================================================

Function Summary
 void InitComponent(GUIController MyController, GUIComponent MyOwner)
     
// List box is visible when empty.



Source Code


00001	// ====================================================================
00002	//  (c) 2002, Epic Games, Inc.  All Rights Reserved
00003	// ====================================================================
00004	
00005	class GUIListBoxBase extends GUIMultiComponent
00006			Native;
00007	
00008			
00009	var		GUIVertScrollBar	ScrollBar;
00010	var		bool				bVisibleWhenEmpty;						// List box is visible when empty.
00011	
00012	function InitComponent(GUIController MyController, GUIComponent MyOwner)
00013	{
00014		local int i;
00015		local GUIListBase LocalList;
00016	
00017		LocalList = GUIListBase(Controls[0]);
00018		ScrollBar = GUIVertScrollBar(Controls[1]);	
00019		
00020		LocalList.StyleName = StyleName;	
00021		LocalList.bVisibleWhenEmpty = bVisibleWhenEmpty;
00022		
00023		Super.Initcomponent(MyController, MyOwner);
00024	
00025		
00026		LocalList.MyScrollBar = ScrollBar;
00027		ScrollBar.MyList = LocalList;	
00028		
00029		ScrollBar.FocusInstead = LocalList;
00030		
00031		for (i=0;i<ScrollBar.Controls.Length;i++)
00032			ScrollBar.Controls[i].FocusInstead = LocalList;
00033	}
00034	
00035	
00036	
00037	defaultproperties
00038	{
00039	     Controls(1)=GUIVertScrollBar'GUI.GUIListBoxBase.TheScrollbar'
00040	     bAcceptsInput=True
00041	}

End Source Code