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 Opened Scrollers 603.r9 [BUG?][FIXED]
TreeCtrl Opened Scrollers 603.r9 [BUG?][FIXED] [message #1832] Wed, 22 March 2006 00:55 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1298
Registered: November 2005
Location: London, UK
Senior Contributor
Administrator
It is just me and my computer or is it a bug?
From reference example TreeCtrl, if dir tree is opened (using
tree1.Open(0,true); ):

1. Both scrollers don't show at the begining without mouse over.
1.1. Instead of them, you can see copied strips of former top window (theide).
1.2. If you start with a smaller size TreeCtrl application window using SetRect, those strips are just black.
2. You need to move the splitter to get statusbar info to get in place.
3. Resizing corner on statusbar, despite unfunctional, is shown and changes the cursor.

//from reference TreeCtrl
	App() {
		horz.Add(tree1);
//		horz.Add(tree2);
		horz.Add(optree);  //
		Add(horz.Horz().SizePos());
//		optree.SetRoot("everything");


		for(int i = 0; i < 10; i++)
			optree.Add(i ? rand() % i : 0, x[i], AsString(i));

		tree1.MultiSelect();
		tree1.WhenOpen = THISBACK(OpenDir);
		tree1.WhenClose = THISBACK(CloseDir);
	#ifdef PLATFORM_WIN32
		String dir = String(GetExeFilePath()[0], 1) + ":\\";
	#else
		String dir = "/usr";
	#endif
		tree1.SetRoot(CtrlImg::Dir(), dir);
		tree2.SetRoot(CtrlImg::Dir(), dir);
		Progress pi;
		pi.AlignText(ALIGN_LEFT);
	//	LoadTree(0, dir, pi);
		tree2.NoCursor().NoRoot();
	//	tree2.SortDeep(0);  
		Sizeable();
		
		tree1.WhenCursor = THISBACK(ShowPath);
		tree1.AddFrame(info);

		tree1.Open(0,true); //aris added
		SetRect(50,50,672,300);  // "copied" strips
		SetRect(50,50,671,300);  // black strips if <671
	}

[Updated on: Tue, 02 May 2006 03:16]

Report message to a moderator

Re: 603.r9 Opened TreeCtrl Scrollers bug? [message #1837 is a reply to message #1832] Wed, 22 March 2006 11:56 Go to previous message
mirek is currently offline  mirek
Messages: 11844
Registered: November 2005
Ultimate Member
A bug (faulty repainting optimization in CtrlCore), thanks. Now fixed.

Mirek
Previous Topic: TreeCtrl crash - fixed
Next Topic: TreeCtrl - how to set heights for individual items? [SOLVED]
Goto Forum:
  


Current Time: Thu Apr 25 11:47:31 CEST 2019

Total time taken to generate the page: 0.00688 seconds