david wrote:
> I have tried setting the value (""), (" "),.... Clear(), then put the
> value back and none of that has worked. Same exact results. As long as
> user doesn't highlight any character in the box, it will put the original
> value back. Any highlighting of a character and the original value PLUS
> the character hit gets put back in box.Use wx.CallAfter to put the value back after the current events have
been processed.--
Robin Dunn
Thanks Robin! Didn't think would have to make a new function. But this
wouldn't work either in same function. So if highlighted value and hit 2,
then 2 and my original number would be returned, just like before and
put in the box.
But making a new function just for this did work, and using wx.CallAfter
to call it. The orig function is called by an EVT_TEXT that the user was
trying to edit the box. So instead of returning box to original state in that
function, use the wx.CallAfter to call yet another oneline function AFTER
the the current events have been processed like you said.
I need to look thru my program and see if I have any more of these
anomaly/bug for this. I never tested it before like this & always hit the
Delete key and worked like a charm. This time decided to highlight
and start entering the numbers and found this.
Thanks again!
Resending this cause 2 days later get returned saying:
Your message was not delivered because the destination computer was
not found.