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... » RichTextView: Size is wrong without scrollbar
RichTextView: Size is wrong without scrollbar [message #1305] Mon, 27 February 2006 00:08 Go to previous message
zsolt is currently offline  zsolt
Messages: 693
Registered: December 2005
Location: Budapest, Hungary
Contributor
The problem is, that without scrollbars, size is calculated as if there were scrollbars.

I have commented out two lines, and it seems to be OK with and without scrollbars as well:
int   RichTextView::GetPageCx() const
{
	int szcx = GetSize().cx;
	//if(!sb.IsShown() && sb.IsAutoHide())
	//	szcx -= ScrollBar::GetStdBox();
	return IsNull(zoom) ? cx: (szcx - margin.left - margin.right) / zoom;
}
 
Read Message
Read Message
Read Message
Previous Topic: How to add some text to RichTextview?
Next Topic: RichTextView can select more than one block of text [BUGS][FIXED]
Goto Forum:
  


Current Time: Thu Mar 28 12:19:47 CET 2024

Total time taken to generate the page: 0.01739 seconds