Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Commandbutton.Click()
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00431359
Message ID:
00431414
Views:
8
Hi Jim,

Thanks for the explanation.

I have solved the problem. I was just wondering.


>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
>
Benn Kjaer
MS Certified Professional - Visual Foxpro

"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"
Previous
Reply
Map
View

Click here to load this message in the networking platform