Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Label won't initialize enabled=.F.
Message
De
08/07/2003 11:33:03
 
 
À
07/07/2003 20:11:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00807758
Message ID:
00808022
Vues:
14
Thanks for bringing this to our attention.

This goes back to VFP5. I sent it up the line for you. It works fine if the label is added to a visually designed form. Your workaround of setting the Enabled value to itself in the label init looks like a good one to me.

Thanks again!

>I'm using VFP 7.0
>
>LOCAL lo
>lo = CREATEOBJECT( '_frm' )
>lo.VISIBLE = .T.
>SET STEP ON
>
>DEFINE CLASS _frm AS FORM
>  ADD OBJECT cnt1 AS _cnt
>ENDDEFINE
>
>DEFINE CLASS _cnt AS CONTAINER
>  ADD OBJECT _lbl1 AS _lbl ;
>    WITH ;
>    CAPTION = 'This should be disabled', ;
>    ENABLED = .F.
>ENDDEFINE
>
>DEFINE CLASS _lbl AS LABEL
>  PROCEDURE CLICK()
>    WAIT WINDOW PROGRAM()
>  ENDPROC
>ENDDEFINE
>
>Why isn't _lbl1 displayed disabled?
>It is disabled. If you click on it, nothing happens because it's disabled. But it appears enabled.
Jim Saunders
Microsoft
This posting is provided “AS IS”, with no warranties, and confers no rights.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform