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 » Splitter::SetMinPixels() bug+fix
Splitter::SetMinPixels() bug+fix [message #24038] Mon, 21 December 2009 13:11 Go to previous message
Tom1
Messages: 1251
Registered: March 2007
Senior Contributor
Hi,

Splitter::SetMinPixels() fails set the minimum control size correctly in pixels when the splitter is configured to work in vertical mode. The fixed Splitter::GetMins() correcting the problem is here:
int Splitter::GetMins(int i) const
{
   int min1 = (i < mins.GetCount() ? mins[i] : 0);
   int min2 = 0;
   int cx = IsVert()?GetSize().cy:GetSize().cx;
   if(cx)
       min2 = (i < minpx.GetCount() ? minpx[i] : 0) * 10000 / cx;
   return max(min1, min2);
}


Best regards,

Tom
 
Read Message
Read Message
Previous Topic: Patch request for SplitterFrame
Next Topic: Splitter::Reset and Splitter::Clear clarification
Goto Forum:
  


Current Time: Fri Nov 01 00:52:00 CET 2024

Total time taken to generate the page: 0.02107 seconds