Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1428
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 359 times)
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Equivalent widgets
Next Topic: Ctrl::GlobalBackPaintHint() and GLCtrl
Goto Forum:
  


Current Time: Thu Sep 04 12:57:59 CEST 2025

Total time taken to generate the page: 0.08638 seconds