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++ Widgets - General questions or Mixed problems » Slight problems with RichTextView
Slight problems with RichTextView [message #28945] Tue, 28 September 2010 21:49 Go to next message
aftershock is currently offline  aftershock
Messages: 143
Registered: May 2008
Experienced Member
Hi,

I have two little problems with RichTextView...

1.If I select a text, the redrawing can be seen, it vibrates.
2. Displayed text is ugly, the text is not evenly spaced.

E.g t his a s ample text....


Can you give me ideas how to fix or get around these issues?

Thank you.
Re: Slight problems with RichTextView [message #28951 is a reply to message #28945] Wed, 29 September 2010 07:58 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Aftershock

- Could you include a simple test case?
- Does it happen in Linux or Windows?


Best regards
Iñaki
Re: Slight problems with RichTextView [message #28989 is a reply to message #28951] Thu, 30 September 2010 16:57 Go to previous messageGo to next message
aftershock is currently offline  aftershock
Messages: 143
Registered: May 2008
Experienced Member
On Windows..

See about box in the beta.


Re: Slight problems with RichTextView [message #28991 is a reply to message #28989] Thu, 30 September 2010 18:51 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Sorry Aftershock

What is the beta?


Best regards
Iñaki
Re: Slight problems with RichTextView [message #29011 is a reply to message #28991] Fri, 01 October 2010 23:31 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Marton

I would prefer a simple test case but, well, this a screenshot.

index.php?t=getfile&id=2861&private=0

I think that the font is very small so it is difficult to render it well. Probably if it would be slightly bigger it would have better look.

To show a RichTextView I use to use parameters like these. You can play with them to get what you want.

rich.SetQTF(qtfText, Upp::Zoom(260, 140));
rich.Background(Null);
rich.AutoHideSb();
rich.HMargins(10);
rich.VMargins(10);

Remember that a problem with RichTextView (for somebody is a feature Smile), is that it changes its zoom with control size, so block resizing if you do not like it.
  • Attachment: dib.PNG
    (Size: 9.27KB, Downloaded 460 times)


Best regards
Iñaki
Re: Slight problems with RichTextView [message #29012 is a reply to message #29011] Fri, 01 October 2010 23:58 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
koldo wrote on Fri, 01 October 2010 17:31


rich.SetQTF(qtfText, Upp::Zoom(260, 140));
rich.Background(Null);
rich.AutoHideSb();
rich.HMargins(10);
rich.VMargins(10);



I use a simpler version:

rich.SetQTF(qtfText, Upp::Zoom(StdFont().GetHeight(), 96));


Regards,
Novo
Re: Slight problems with RichTextView [message #29018 is a reply to message #29011] Sat, 02 October 2010 11:13 Go to previous messageGo to next message
aftershock is currently offline  aftershock
Messages: 143
Registered: May 2008
Experienced Member
Yes that helps.

Background(NULL) does not draw background which sacrifices look.
Re: Slight problems with RichTextView [message #29020 is a reply to message #29018] Sat, 02 October 2010 13:43 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Yes, sorry. Background(NULL) is not normally useful Smile.

This: rich.SetQTF(qtfText, Upp::Zoom(StdFont().GetHeight(), 96)), seems interesting.


Best regards
Iñaki
Re: Slight problems with RichTextView [message #29273 is a reply to message #29011] Wed, 13 October 2010 19:56 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
You can also use

Zoom GetRichTextStdScreenZoom();

as zooming factor here...
Previous Topic: Automating dialogs used for editing
Next Topic: .t files failure
Goto Forum:
  


Current Time: Fri Mar 29 09:11:45 CET 2024

Total time taken to generate the page: 0.01621 seconds