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 » Developing U++ » UppHub » MessageCtrl: A passive notifications ctrl and manager. (A a usefule CtrlLib add-on.)
Re: Message: A passive notifications ctrl and manager. [message #49499 is a reply to message #49496] Mon, 19 February 2018 15:01 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1091
Registered: August 2007
Senior Contributor
Hello Klugier,

Unfortunately, the highlight glitch doesn't seem to stem from my code.

It can be replicated as in the below code:

include <CtrlLib/CtrlLib.h>

using namespace Upp;

class RichTextTest : public TopWindow {
	FrameTop<RichTextCtrl> qtf;
	Button bt;
	
public:
	RichTextTest()
	{
		SetRect(0, 0, 640, 480);
		Sizeable().Zoomable().CenterScreen();
		Add(bt.RightPos(4).BottomPos(4));
		
		bt << [=] {
			String z = "Hello World!";
			qtf.VCenter();                        // Comment out this line, and highlighting works.
			qtf.SetQTF("[G1 " << z);
			qtf.Height(40);                       // As the height increases, highlighting becomes impossible.
			                                      // This problem doesn't arise with wrapped (Line > 1) text
			qtf.SetFrame(FieldFrame());
			AddFrame(qtf);
			};
	}
};

GUI_APP_MAIN
{
	RichTextTest().Run();
}



Maybe the glitch is in the RichTextEdit's text centering method?

Best regards,
Oblivion


[Updated on: Mon, 19 February 2018 15:03]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GDAL status
Next Topic: Sharing a few small packages
Goto Forum:
  


Current Time: Thu Mar 28 20:38:40 CET 2024

Total time taken to generate the page: 0.01033 seconds