Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem when setting button visible to False
Message
De
04/06/2008 10:20:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01321584
Message ID:
01321595
Vues:
19
Hi Dmitry,

I wouldn't write code into .Click(). Use BINDEVENTS()...
BINDEVENTS(Thisform.cmdMyButton,[Click],Thisform,[myButtonHandler])

Thisform.myButtonHandler:

Thisform.cmdMyButton.Visible = .F.
...
>Good morning,
>
>I have a weird problem (I have been struggling with it all morning) with a button Visible property. Here is what happens:
>
>In the Click() of this button I set visible of the button to .F.
>
>
>this.visible = .F.
>
>
>But then when I try to click on any place of the form a certain completely unrelated method fires. As if there is an invisible form in front of the actual form.
>
>How can I find out what causes this weird behaviour.
>
>Thank you in advance for any suggestions.
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform