Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Qual o objeto ativo?
Message
From
24/01/2002 09:27:17
 
 
To
24/01/2002 09:15:13
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00609639
Message ID:
00609689
Views:
20
Oi Fábio e Rodolfo;

se vocês possuem ainda pageframes ou containner complemente com:
oobj.LOCKSCREEN = .T.
FOR m.i = 1 TO oobj.CONTROLCOUNT  && oobj é a referencia ao form dele
    IF  oobj.CONTROLS[m.i].BASECLASS$"Pageframe Container "
        FOR m.j = 1 TO oobj.CONTROLS[m.i].CONTROLCOUNT
            ocontrol = oobj.CONTROLS[m.i].CONTROLS[m.j]
            IF  oobj.ACTIVECONTROL.NAME=ocontrol.NAME
                ocontrol.FORECOLOR=RGB(255,0,0)
            ELSE
                ocontrol.FORECOLOR=RGB(0,0,0)
            ENDIF
        ENDFOR
    ELSE
        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
    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
Reply
Map
View

Click here to load this message in the networking platform