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 » TreeCtrl » OptionTree has too large horizontal size
Re: OptionTree has too large horizontal size [message #40344 is a reply to message #40182] Mon, 22 July 2013 21:41 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1106
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Typhoor,

For me the first part of yours patch is absolutely correct (CtrlLib/TreeCtrl.cpp - line 118). I have tested in on GNU/Linux.

Size   TreeCtrl::Item::GetCtrlSize() const
{
    if(!ctrl) return Size(0, 0);
    Size csz = ctrl->GetMinSize();
    return Size(Nvl(size.cx, csz.cx), Nvl(size.cy, csz.cy));
}


Sincerely,
Klugier


U++ - one framework to rule them all.
 
Read Message
Read Message
Read Message
Previous Topic: Cannot scroll selected node into view from code [SOLVED]
Next Topic: TreeCtrlDnD inheritance bug?
Goto Forum:
  


Current Time: Thu Aug 21 21:32:05 CEST 2025

Total time taken to generate the page: 0.05439 seconds