Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Qual o objeto ativo?
Message
De
24/01/2002 09:27:17
 
 
À
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:
00609689
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform