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 » U++ Library : Other (not classified elsewhere) » CtrlPaint Bug: Frame draws outside of Ctrl
CtrlPaint Bug: Frame draws outside of Ctrl [message #15120] Tue, 01 April 2008 17:37 Go to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
If you have a Ctrl with FrameCtrl type frames large enough to exceed the width/height of the ctrl there is nothing to prevent them drawing outside the ctrls rect. I've attached a test package.

Simple solution (Ctrl::CtrlPaint, CtrlCore/CtrlDraw.cpp):
	w.Clip(orect); // New clip
	for(q = firstchild; q; q = q->next)
		if(q->IsShown())
			if(q->InFrame()) {
                           // Draw CtrlFrame
			}
			else
				hasviewctrls = true;
	if(viewexcluded)
		w.End();
	w.End(); // End new clip

Although I'm sure you can find a better solution.

James
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New member needs help
Next Topic: StreamRasterEncoder puzzle
Goto Forum:
  


Current Time: Fri May 10 12:07:33 CEST 2024

Total time taken to generate the page: 0.02230 seconds