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 » TabCtrl » How to use TabBar CancelClose/WhenClose?
How to use TabBar CancelClose/WhenClose? [message #46501] Tue, 17 May 2016 10:46 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
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!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coloring tab
Next Topic: How to plot image in one tab based on TabCtrl
Goto Forum:
  


Current Time: Sun Apr 28 12:15:28 CEST 2024

Total time taken to generate the page: 0.04147 seconds