<?xml version="1.0" encoding="UTF-8"?>
<component name="RegScreen" extends="Group" initialFocus="Buttons" >
	
	<script type="text/brightscript" uri="pkg:/components/RegScreen/RegScreen.brs"/>
	
	<children>
		<!-- Control buttons (Button List) -->
		<LabelList
		      id="Buttons"
		      translation="[1040,900]"
		      color="0xFFFFFFFF"
		      focusedColor="0x333333FF"
		      numRows="7"
		      vertFocusAnimationStyle="floatingFocus"
		      itemSpacing="[0,20]"
		      itemSize="[700, 35]"
		      textHorizAlign="right" />		       
		      
		<Rectangle
			id="codeBox"
			width="1300"
			height="400"
			color="0x101010C0"
			translation="[315,350]">
			
		    <Label
		    	id="Header"
		    	text="Activation Code"
		    	font="font:LargeBoldSystemFont"
		    	translation="[450,50]"
		    	horizAlign="center"
		    	width="400" />
		    	
		   	<Label
		    	id="Code" 
		    	font="font:LargeBoldSystemFont"
		    	translation="[450,150]"
		    	horizAlign="center"
		    	width="400"  />
		    
		    <Label
		    	id="explanation"
		    	text="Before using this channel, the channel must activate your account. Remain on this screen while logging in with this activation code."
		    	font="font:MediumBoldSystemFont"
		    	translation="[36,250]"
		    	numLines="3"
		    	wrap="true"
		    	width="1200" />
	    </Rectangle>
	    <Rectangle
	    	id="loginBox"
	    	width="1410"
			height="500"
			color="0x101010C0"
			translation="[255,300]"
			visible="false">
			<Label id="labelTitle" translation="[30,10]"/>
			<Keyboard
				id="keyboard"
				translation="[0,60]"/>
	    </Rectangle>
	   	<Timer 
	      id = "codeTimer" 
	      repeat = "true" 
	      duration = "5" />
	   	
	   	<Timer
	   		id="expireTimer"
	   		repeat="true"
	   		duration = "900"/>
 		
 		<Dialog 
 			id="expireDialog"
 			title="Code Expired"
 			message="This code has expired. Press OK to get a new one"
 			visible="false"/>
 		
      </children>
      
      <interface>
	      <!-- Button press handler -->
	      <field id="user" type="string"/>
      	  <field id="pass" type="string"/>
		  <field id="itemSelected" type="integer" alwaysnotify="true" alias="Buttons.itemSelected" onChange="onItemSelected" />
      	  <field id="validate" type="boolean" alwaysNotify="true" onChange="validateLogin"/>
      	  <field id="success" type="boolean"/>
          <field id="KeyboardText" type="string" alias="keyboard.text" />
      </interface>
</component>
