Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Qual o objeto ativo?
Message
De
24/01/2002 09:15:13
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00609639
Message ID:
00609679
Vues:
13
Oi Fábio e Rodolfo;

>No evento Keypress do seu Form:


>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>LOCAL loControleAtivo
>
>loControleAtivo = THISFORM.ActiveControl
>loControleAtivo.SetFocus()
>

Pessoal, Discordando um pouco e ao mesmo tempo complementando seu raciocínio acredito que o Rodolfo necessita de algo num Refresh como:
oobj.lockscreen = .t.
For m.i = 1 TO oobj.ControlCount  && oobj é a referencia ao form dele
    oControl = oobj.Controls[m.i]
    if  oobj.ActiveControl.name=oControl.name
        oControl.forecolor=rgb(255,0,0)
    else
        oControl.forecolor=rgb(0,0,0)
    endif
ENDFOR
oobj.lockscreen = .f.
HTH

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform