OpenLaszlo focus no editText

0 respostas
G

Olá tenho a seguinte situação:

//Pagina …/Login.lzx
<?xml version=“1.0” encoding=“UTF-8” ?>
<canvas proxied=“true” title = “Teste” debug=“true”>
<include href=“components/ui/loginSigga.lzx”/>
</canvas>

//Este código fonte esta no subdiretorio …components/ui/loginSigga.lzx
<library>

&lt;class name="loginSigga" extends="view"&gt;	
         &lt;dashWindow 
		winLabel="${parent.title}"
		id="login" 
		name="login" 
		width="350" height="40" 
		visible="true" 
		windowTintColor="'ffffff'" showRestore="false"&gt;			
					
        &lt;tabslider id="tablogin" name="tablogin" width="100" height="50" mintabheight="20"&gt;	    
	            &lt;tabelement id="tabEntrar" name="tabEntrar" text="Entrar" selected="true" text_x="20"&gt;
	               	&lt;view bgcolor="0x778899" placement="header" width="10" height="12" x="5" y="5" /&gt;
					&lt;gradientviewSigga id="entrarBody" name="entrarBody" colorFrom="0x778899" colorTo="0xf8f8ff" 		
						width="100" height="50"&gt;								
							&lt;text font="helmetb" fontsize="16" x="40" y="35" text="Usuario"/&gt;
							&lt;edittext id="txtuser" font="helmetb" fontsize="16" x="120" y="35" width="180"/&gt;
							  								
							&lt;text font="helmetb" fontsize="16" x="40" y="70" text="Senha"/&gt;
							&lt;edittext id="txtpwd" font="helmetb" fontsize="16" x="120" y="70"  width="180"/&gt;          		
							
							&lt;button x="150" y="130" onclick="classroot.loginclick()" text="Entrar"/&gt;
	               &lt;/gradientviewSigga&gt;
	            &lt;/tabelement&gt; 			
		&lt;/tabslider&gt;																		
	&lt;/dashWindow&gt;		

&lt;/class&gt;

</library>

A questão é como eu faço o editText id=“txtuser” receber o focus quando a página Login.lzx é aberta?

Obrigado.

Criado 6 de março de 2008
Respostas 0
Participantes 1