Hi,
I have an apparently simple problem that I cannot solve in the dialog box editor. I have a button and an editbox control on a dialog box and all that is required is that when the button is pressed some text should appear in the editbox and the editbox backcolor should change briefly to another colour before then reverting back. On the basis that the lines of code that change the backcolor will be executed very quickly I have tried to use Pause() just to hold the backcolor for a moment before changing back. However, what seems to happen is the pause is executed before the colour change, so no colour changes are seen. The code is:
Sub Btn_SPAD_EventClick(ByRef This) 'Created Event Handler
EditBox1.Text = "SPAD"
EditBox1.BackColor = RGB(95,153,240)
Pause(1)
EditBox1.BackColor = -1
End Sub
I have tried various insertions to refresh the textbox or the dialog itself but to no avail. I have also put the Pause in other Subs, like the editbox change or refresh events but also to no avail.
How do I get the backcolor to change briefly before reverting back?
Thanks.