Urgent button disabling problem
-
hi in my code, i am saying button.enabled = false; ... ... ... ... progressbar.performstep(); label.text = "Pass"; button.enabled = true; the button is grayed out during this, but if i have clicked during this, it takes the click event after "Pass" is displayed. how do i prevent this? i need an urgent solution. please see if anyone can help me with some suggestion. thanks.
-
hi in my code, i am saying button.enabled = false; ... ... ... ... progressbar.performstep(); label.text = "Pass"; button.enabled = true; the button is grayed out during this, but if i have clicked during this, it takes the click event after "Pass" is displayed. how do i prevent this? i need an urgent solution. please see if anyone can help me with some suggestion. thanks.
-
What you exactly want button click will be fired after the text chenges to pass because you have enabled the button.
i am clicking the button before the text changes to pass.
-
i am clicking the button before the text changes to pass.
Hi In a separate thread, check the messages in application queues parallely. If any message of button click comes and you are doing "pass" processing work delete that message from application quese. Size of application queue would be 8. :)