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++ Library : Other (not classified elsewhere) » Close() callback not conditioned in a dialog
Re: Close() callback not conditioned in a dialog [message #6372 is a reply to message #6365] Thu, 09 November 2006 21:48 Go to previous message
forlano is currently offline  forlano
Messages: 1207
Registered: March 2006
Location: Italy
Senior Contributor
luzr wrote on Thu, 09 November 2006 20:33

Then make your Close button a Rejector (or simply Breaker)!

There are three modal loop breakers:

- Breaker simply exits it
- Acceptor accepts widgets first (accepting makes the check for Null)
- Rejector rejects all widgets (this can be different from simple Break sometimes, e.g. open database data are canceled etc..)

Mirek



I've used the following code line

    //btnClose.WhenAction = THISBACK(Close); // previous
    btnClose <<= Breaker(999); // new


and it works as I wanted. Now the Breaker is promoted to my default method for Close/Exit button.

Thanks!
Luigi
 
Read Message
Read Message
Read Message
Previous Topic: examples/SQLApp crashes on double click in SQL console [BUG]
Next Topic: minimalist example with GridCtrl
Goto Forum:
  


Current Time: Sat Jun 28 06:12:08 CEST 2025

Total time taken to generate the page: 0.07983 seconds