Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Commandbutton.Click()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00431359
Message ID:
00431385
Vues:
15
Jim,
Couldn't have said it better myself. ;-)

>Benn,
>
>This is not a bug in my view. There are two things here to consider, the click event is the action of the mouse being clicked over the button. This is disabled when the button is disabled, that is clicking the mouse does not cause a click event to occur for the button.
>
>Calling a method is different, it is not an event. The click method is the method that will automatically run when the click event occurs. When the button is disabled this does not happen. However, programatically calling the click method is not controlled by the enabled status of the control, as are none of the other methods of the control.
>
>If you want the click method to be non-responsive when teh control is disabled then put this as the first lines of the click method;
>
>
>* Button click method
>IF NOT This.Enabled
>   RETURN
>ENDIF
>* The rest of the code here
>
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform