Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

XInterface.ListTest


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
class ListTest extends TestPageBase;

//var GUIList	TheList;
//var GUIStringCollection Col1, Col2;
var GUIScrollText	tScroll;

function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
local string newText;

	Super.InitComponent(MyController, MyOwner);
	tScroll=GUIScrollTextBox(Controls[0]).MyScrollText;

	newText = "This is a simple test of multiline splitting that should be happening very easily but i will debug to be sure that whatever the length is set at it wont bug."$Chr(10)$Chr(10);
	newText = newText$"But more importantly i must also handle having more than just 1 line of text and see how this is dealt with."$Chr(10);
	newText = newText$"I wonder how this would be dealt with if i wasnt taking care of it and if Joe wasnt going to do it."$Chr(10)$Chr(10);
	newText = newText$"Bah, We'll see later since no one seems to reply to my messages.";

	tScroll.SetContent(newText);
//	TheList=GUIList(Controls[0]);
//	Col1=GUIStringCollection(GUIListCollection(Controls[1]).MyCollection);
//	Col2=GUIStringCollection(GUIListCollection(Controls[2]).MyCollection);
//	Col2.bMultiSelect=true;
	Controller.bDesignMode = false;
}

function bool AddClick(GUIComponent Sender)
{
//	TheList.Add("Simple Item Text");
//	Col1.AddItem("Simple Item Text"@Col1.Count());
//	Col2.AddItem("Simple Item Text"@Col1.Count());
	return true;
}

defaultproperties
{
	Begin Object Class=GUIScrollTextBox Name=Scroller
		WinTop=0.05
		WinLeft=0.05
		WinWidth=0.35
		WinHeight=0.2
		CharDelay=0.05
		EOLDelay=0.6
//		bRepeat=true
	End Object

	// First a normal GUIList
//	Begin Object Class=GUIList Name=lbTheList
//		WinTop=0.05
//		WinLeft=0.05
//		WinWidth=0.4
//		WinHeight=0.4
//	End Object

	// Then, a single selection list
//	Begin Object Class=GUIListCollection Name=lcSingleList
//		WinTop=0.05
//		WinLeft=0.55
//		WinWidth=0.4
//		WinHeight=0.4
//	End Object

	// Then a multi-selection List
//	Begin Object Class=GUIListCollection Name=lcMultiList
//		WinTop=0.55
//		WinLeft=0.55
//		WinWidth=0.4
//		WinHeight=0.4
//	End Object

	Begin Object Class=GUIButton Name=btnAddItems
		WinLeft=0.05
		WinTop=0.55
		WinWidth=0.4
		WinHeight=0.06
		OnClick=AddClick
	End Object

	Controls(0)=GUIScrollTextBox'Scroller'
	Controls(1)=GUIButton'btnAddItems'

//	Controls(0)=GUIList'lbTheList'
//	Controls(1)=GUIListCollection'lcSingleList'
//	Controls(2)=GUIListCollection'lcMultiList'
//	Controls(3)=GUIButton'btnAddItems'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:36:28.000 - Creation time: Do 14.8.2014 09:58:43.936 - Created with UnCodeX