04-15-2006 06:23 AM
04-15-2006 08:54 PM
04-16-2006 01:11 PM - edited 04-16-2006 01:11 PM
Another approach would be to set the Disabled property of the control in question.
@ali mootab wrote:hi.i use event case and i want to enable and disable some events programatically. for example sometimes i want to have an event for a button and sometimes i don't want. how can i do this?
Message Edited by rolfk on 04-16-2006 08:12 PM
04-16-2006 07:45 PM
rolfk a écrit:...Another approach would be to set the Disabled property of the control in question.
04-16-2006 07:45 PM
rolfk a écrit:...Another approach would be to set the Disabled property of the control in question.
04-16-2006 09:23 PM
Hi Ali,
Not to beat this to death, but in fact you can enable/disable events programmatically.
Cheers.
04-17-2006 03:03 AM
If you use mouse events then yes you are right. But usually it is about the Commit or Value Changed event and here Enable/Disable works perfect.
@chilly charly wrote:
rolfk a écrit:...Another approach would be to set the Disabled property of the control in question.
Sorry rolfk, but the Disabled property doesn't affect the response to events (at least on my Mac...). The mouse down event is generated even with a grayed button. And this looks normal to me 😉