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 » RichText,QTF,RTF... » RichText over an image background - weird scroll (on windows)
Re: RichText over an image background - weird scroll (on windows) [message #50817 is a reply to message #50657] Thu, 03 January 2019 10:04 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Try this:

void Scroller::Scroll(Ctrl& p, const Rect& rc, Point newpos, Size cellsize)
{
	if(!IsNull(psb) && !p.IsTransparent()) {
		Point d = psb - newpos;
		p.ScrollView(rc, d.x * cellsize.cx, d.y * cellsize.cy);
	}
	else
		p.Refresh();
	psb = newpos;
}



If it does not help, I will need a testcase...

That said, I think I will remove/depreacete all scrolling support soon (GPUs are fast enough)

Mirek
 
Read Message
Read Message
Previous Topic: Constant font size in resizeable RichEdit?
Next Topic: How to add/enable spell-CORRECTING with richedit (not-quite-solved-sort-of)
Goto Forum:
  


Current Time: Fri Apr 19 06:23:50 CEST 2024

Total time taken to generate the page: 0.03280 seconds