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 » TreeCtrl Scroll triggers Parent Refresh
Re: TreeCtrl Scroll triggers Parent Refresh [message #11422 is a reply to message #11336] Wed, 12 September 2007 12:08 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Should be fixed, sorry for delay, took quite a lot of time to find it....

Quick fix:

Ctrl *Ctrl::GetTopRect(Rect& r, bool inframe)
{
	if(!inframe) {
		r &= Rect(GetSize());
		r.Offset(GetView().TopLeft());
	}
	if(parent) {
		r.Offset(GetRect().TopLeft());
		return parent->GetTopRect(r, InFrame());
	}
	return this;
}

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Right Clicking Tree Nodes?
Next Topic: Like the new Drag and Drop TreeCtrl but...
Goto Forum:
  


Current Time: Tue May 14 04:28:56 CEST 2024

Total time taken to generate the page: 0.02732 seconds