Refresh Object

Refresh Object

Postby rasptty » Tue Sep 23, 2008 4:21 pm

Function Cloca_tx(texto)
@ 2, 10 SAY alltrim(texto) size 50,15
return nil

Só funciona a 1º Vez, a segunda não limpa o texto Anterior porqué?

o mesmo se passa se for uma imagem

Obrigado
rasptty
 
Posts: 88
Joined: Sun May 25, 2008 5:46 pm

Postby Antonio Linares » Thu Sep 25, 2008 4:36 pm

Do it this way:
Code: Select all  Expand view
Function Cloca_tx(texto)
   static oSay

   if oSay == nil
      @ 2, 10 SAY oSay PROMPT alltrim(texto) size 50,15
   else
      oSay:SetText( alltrim(texto) )
   endif
 
return nil

or you will be creating a new control SAY again and again :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby rasptty » Thu Sep 25, 2008 11:12 pm

Ok se for texto funciona e se for uma imagem ? tipo:

DO case
case que_cla="A"
@ 16, 25 BITMAP oBmp FILENAME CURDIR() + "\img\a.bmp" Noborder OF oWnd
case que_cla="B"
@ 16, 25 BITMAP oBmp FILENAME CURDIR() + "\img\b.bmp" Noborder OF oWnd
case que_cla="C"
@ 16, 25 BITMAP oBmp FILENAME CURDIR() + "\img\c.bmp" Noborder OF oWnd
case que_cla="G"
@ 16, 25 BITMAP oBmp FILENAME CURDIR() + "\img\g.bmp" Noborder OF oWnd
Endcase
rasptty
 
Posts: 88
Joined: Sun May 25, 2008 5:46 pm


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 9 guests