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 » Get, modify and set text of RichEdit(WithToolBar)
Re: Get, modify and set text of RichEdit(WithToolBar) [message #14449 is a reply to message #14424] Tue, 26 February 2008 21:08 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
alex100 wrote on Tue, 26 February 2008 03:13


Thus I use the code (yet before inserting blank paragraphs):

String strQTF << txText.GetQTF(CHARSET_ISO8859_1);
txText.SetQTF(strQTF);

When the text is restored the word UTF-8 appears on the beginning...



Not reproduced. I tried:
String FileName()
{
//	return "d:/test.qtf";
	return GetExeDirFile("test.qtf");
}


GUI_APP_MAIN
{
//	ChClassicSkin();
//	ChStdSkin();
//	SetLanguage(LNG_('P','L','P','L'));

//	InstallCrashDump();

	DUMP(GUI_PopUpEffect());
	RichEditWithToolBar e;

	DUMP(ScrollBarSize());

	e.Pick(ParseQTF(LoadFile(FileName())));
	TopWindow w;
	w.SetRect(0, 0, 700, 500);
	w.Sizeable().Zoomable();
	w.Add(e.SizePos());
	w.Run();
	
	String strQTF = e.GetQTF(CHARSET_ISO8859_1);
	e.SetQTF(strQTF);
	w.Run();

	String x = e.GetQTF();
	SaveFile(FileName(), x);
	LOG("Exit");
}


Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: openGL and texture
Next Topic: How to turn off Ctrl Updatable action?
Goto Forum:
  


Current Time: Sun Apr 28 02:31:27 CEST 2024

Total time taken to generate the page: 0.03456 seconds