Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Qual o objeto ativo?
Message
From
24/01/2002 09:15:13
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00609639
Message ID:
00609679
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform