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 » Community » Newbie corner » CanClose? Mechanism to prompt user to save edits
Re: CanClose? Mechanism to prompt user to save edits [message #34910 is a reply to message #34804] Fri, 16 December 2011 21:09 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
If I have did understand your problem, there's TabBarCtrl in Bazaar to which I added some time ago a couple of callbacks
named CancelCloseSome and WhenCloseSome just for that purpose.

First is called BEFORE a tab or also many tabs are being closed, giving the ability to prompt for a file/list of files to be saved; the latter happens AFTER the tabs are closed and allows the application to finish closing / do some cleanup.

It was refactored by original maintainer, but those callbacks are still there, IIRC.
I'm using a modified version of this control in my app and works quite good.

Max

Edit : I've read now one of your posts about CancelCloseSome and WhenCloseSome.... the purpose is the one I've explained above; you can close multiple tabs at once and those allows you to group the closing prompts.

[Updated on: Fri, 16 December 2011 21:11]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TheIDE refactoring and multiple packages build support?
Next Topic: mySql - how to use - what is needed?
Goto Forum:
  


Current Time: Sun May 19 06:28:48 CEST 2024

Total time taken to generate the page: 0.00933 seconds