in reply to Re^5: Release Button in Click
in thread Release Button in Click

The event handler activities are fairly time-consuming, and each already ends with a call to DoEvents() after all widgets in the interface that accept user input have been polled (eachTextfield_Change() or eachCombobox_Change()). However even after the event handler concludes and control returns to the main Dialog() loop, the active button is not redrawn with a released appearance. It remains pushed until the user pressed another button. And that's the objective: to trigger a redraw when the handler finishes to tell the user processing is done.

Replies are listed 'Best First'.
Re^7: Release Button in Click
by kejohm (Hermit) on Sep 22, 2010 at 12:15 UTC

    You could try using one of the Update()/InvalidateRect()/Redraw() methods on the button at the end of the event handler. Alternatively, you could try running the event handler code in a thread to see if this makes any difference to the button's appearance.