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 » TopWindow&PopUp, TrayIcon » TopWindow Backup/Restore
TopWindow Backup/Restore [message #11911] Sun, 30 September 2007 22:55 Go to next message
zsolt is currently offline  zsolt
Messages: 576
Registered: December 2005
Location: Budapest, Hungary
Contributor
I'm trying to use Backup() and Restore() on a TopWindow, but unable to get it working.
Restore() clears the controls instead of restoring them.
My simple test app is attached.
Re: TopWindow Backup/Restore [message #11913 is a reply to message #11911] Sun, 30 September 2007 23:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11700
Registered: November 2005
Ultimate Member
zsolt wrote on Sun, 30 September 2007 16:55

I'm trying to use Backup() and Restore() on a TopWindow, but unable to get it working.
Restore() clears the controls instead of restoring them.
My simple test app is attached.


RejectBreak, invoked by standard Cancel (from CtrlLayoutOKCancel), performs Restore if there was prior Backup.

Meanwhile, Close clears the backup (maybe a bad choice?).

The simple way how to fix your code is not to explicitly call Restore Smile

Mirek
Re: TopWindow Backup/Restore [message #11915 is a reply to message #11913] Mon, 01 October 2007 09:05 Go to previous message
zsolt is currently offline  zsolt
Messages: 576
Registered: December 2005
Location: Budapest, Hungary
Contributor
Thanks, it works without Restore();
Previous Topic: [1st Usable Version] TrayIcon for Linux Version 0.6
Next Topic: Modal vs non-modal window
Goto Forum:
  


Current Time: Sun Feb 17 11:35:26 CET 2019

Total time taken to generate the page: 0.00737 seconds