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 » serialize Ctrl status?
icon5.gif  serialize Ctrl status? [message #33510] Wed, 17 August 2011 00:05 Go to next message
dave is currently offline  dave
Messages: 14
Registered: July 2011
Promising Member
hi,
is there a way to serialize Ctrl status, typically the status of various Ctrl widgets ie- enabled or disabled?

regards
dave



Re: serialize Ctrl status? [message #33527 is a reply to message #33510] Sun, 21 August 2011 00:57 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Hello Dave

AFAIK you will have to add a Serialize method in parent class and include inside the properties of the controls you want to store, as:

class MyClass : public Ctrl {
public:
	void Serialize(Stream &s) {
		s 
			% mycontrol1.IsEnabled()
			% mycontrol2.IsEnabled();
	}
	...


Best regards
IƱaki
Re: serialize Ctrl status? [message #33785 is a reply to message #33527] Tue, 13 September 2011 16:54 Go to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
i am currently preparing such a package. both for binariy serialisation and xml.

the problem is, that Ctrl::Serialize is reserved for the Accept/Reject behaviour, as to restore previous 'TopWindow::Backup' ed values in the ctrl's. so there is no trivial way of doeing this.

soon going to put it in bazaar..
Previous Topic: GridCtrl Focus Indication Problem
Next Topic: Dynamic Graphs Functions
Goto Forum:
  


Current Time: Wed Apr 24 01:03:25 CEST 2024

Total time taken to generate the page: 0.90986 seconds