|
|
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Exclamation Popup: two clicks to dismiss
|
|
|
|
|
|
|
Re: Exclamation Popup: two clicks to dismiss [message #15362 is a reply to message #15359] |
Thu, 17 April 2008 15:56   |
cbpporter
Messages: 1427 Registered: September 2007
|
Ultimate Contributor |
|
|
indiocolifa wrote on Thu, 17 April 2008 16:08 |
luzr wrote on Thu, 17 April 2008 07:38 | P.S.: If you can pack the app so that I can reproduce the problem, I can look into it...
|
Look, Mirek, I've packed a very small example. Try pressing TAB to exit the first edit control, the exclamation box appears and I need to do two-clicks to close.
Check if you're getting the same behaviour.
I'm using 2008.1 beta.
Thank you very much.
|
Hi!
Yes, your problem is easily reproducible. I don't know exactly why this is happening, but it is probably due to the popup window, which triggers another loose focus event because the focused window of the application has changed, and basically your running the code twice.
I attached a simple fix of the top of my hat for this kind of behavior. I'm sure there is a better way though.
One of them would be to use the Min and Max properties of edit1. You can do this in the designer. And also changing the type of EditTwo to EditStringNotNull.
-
Attachment: Test.zip
(Size: 1.22KB, Downloaded 345 times)
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:52:08 CEST 2025
Total time taken to generate the page: 0.00951 seconds
|
|
|