- Local time
- Today, 06:43
- Joined
- Jul 9, 2003
- Messages
- 16,719
1) - Which Controls Click Events cannot be disabled?
Last edited:
The wording of this question is misleading. You are not disabling the click event (nor any other event). You are disabling the control, which as a "side effect" also causes that the events cannot happen any more.1) - Which Controls Click Events cannot be disabled?
The wording of this question is misleading.
Then the correct answer is: All control's!Its a Quiz Philipp! ...
Then the correct answer is: All control's!
Gotcha. Well, setting the Enabled property to false is very different than somehow disabling the entire click event... Two different thingsAs in:-
Me.mycontrol.enabled = false
Update:-
The control, mycontrol has an on click event and it cannot be disabled. Well, I haven't found out how to disable it....
Update 2
I've found two controls where this applies..
It's still a mystery for me why I can not use on double click event of a label/button when I have a code for its on click event.Labels have a click (and a double-click)
Then the correct answer is: All control's!
No, no, no. Things are getting mixed up here. - Sorry, if it was me. I feel slightly challenged with negating negative statements about all, any, or every control.Nope - for unattached labels and rectangles, you cannot disable them in the first place.
You just put the control in a state that prevents
Me too! - (Not the Woke sort)am enjoying this thread
No, no, no. Things are getting mixed up here. - Sorry, if it was me. I feel slightly challenged with negating negative statements about all, any, or every control.
What I tried to say is: All controls' click events cannot be disabled.
Or more concise: No control's click event can be disabled.
The rationale is: By setting a control's Enabled property to False you do not disable the click event (or any other event). You just put the control in a state that prevents (aka "makes it very difficult for") the user to perform an action that would trigger the event. The event itself however is not "disabled".
most likely the code calculates the boundaries of the control and identifies that the pixel is within them.