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.