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 » Splitter » Patch request for SplitterFrame
New Patch request for SplitterFrame [message #12193 is a reply to message #11969] Wed, 17 October 2007 11:17 Go to previous messageGo to previous message
benoitc is currently offline  benoitc
Messages: 17
Registered: July 2007
Location: Nice (France)
Promising Member
Hi,

Funny, I did the same kind of patch 3 weeks ago.

I updated the Serialize function as well because it was a little bit broken (i.e. the layout was not refreshed if you loaded a size different than the original one).

I added the serialization of a new visibility flag to be able to restart the application with a Splitter that was previously hidden.

void SplitterFrame::Serialize(Stream& s)
{
	int 	version = 1;
	bool	visible = IsShown();
	
	s / version;
	s % size;
	if(version > 0)
		s % visible;
	
	if(s.IsLoading()) {
		Show(visible);
		RefreshParentLayout();
	}
}



Regards,
Benoit
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Splitter and SetMin strange behavior
Next Topic: Splitter::SetMinPixels() bug+fix
Goto Forum:
  


Current Time: Mon Sep 08 21:20:55 CEST 2025

Total time taken to generate the page: 0.09671 seconds