08-09-2006 02:10 AM
08-10-2006 10:09 AM
08-10-2006 10:14 PM
08-10-2006 10:34 PM
08-10-2006 11:52 PM
08-11-2006 02:50 AM - edited 08-11-2006 02:50 AM
If i Understood your query correctly, you are asking 'why is not the change disable/enable happening instantly once you perform a mouse down? '
Understand this funda: In the ring, first the mouse down event occurs and only then, value of the ring changes.
so when you do mouse down, the event case is entered and the code in it is executed.
However since the value change has not yet occured, your local variable will still be holding the previous value of the ring
hence you observe your desired result on the next mouse down operation
I suggest you keep this 'all ring indexes =0' check in the time out case and give a finite time out value ( Ex: 100 milli sec), instead of keeping it in a 'mouse down' case
Hope this helps
Regards
Dev
Message Edited by devchander on 08-11-2006 02:51 AM