|
|
Home » U++ Library support » TabCtrl » How to use TabBar CancelClose/WhenClose?
How to use TabBar CancelClose/WhenClose? [message #46501] |
Tue, 17 May 2016 10:46  |
cbpporter
Messages: 1427 Registered: September 2007
|
Ultimate Contributor |
|
|
I have a TabBar and when you close a tab it unceremoniously closes the tab. I would like to prompt the user to save if needed with a Yes/No/Cancel dialog like in the rest of the application and the handle the saving and cleanup.
Looking over the source code I think that I need to handle the prompt and the actual saving in CancelClose and the cleanup in WhenClose? How do you CancelClose? I have never used a gate before. I can't even get it to compile with callbacks.
And what is up with CancelCloseSome/WhenCloseSome? What is the difference between the Some variants and the normal ones and which one should I handle?
Thank you!
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat May 10 11:31:43 CEST 2025
Total time taken to generate the page: 0.04002 seconds
|
|
|