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 » Look and Chameleon Technology » RichEdit crashes with BlueBar
Re: RichEdit crashes with BlueBar [message #25558 is a reply to message #25400] Mon, 01 March 2010 12:02 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Sorry, it is just a bug in the example.

Replace UWord constructor with this one:

UWord::UWord()
{
	AddFrame(menubar);
	AddFrame(TopSeparatorFrame());
	AddFrame(toolbar);
	AddFrame(statusbar);
	Add(editor.SizePos());
	menubar.Set(THISBACK(MainMenu));
	Sizeable().Zoomable();
	WhenClose = THISBACK(Destroy);
	menubar.WhenHelp = toolbar.WhenHelp = statusbar;
	static int doc;
	Title(Format("Document%d", ++doc));
	Icon(CtrlImg::File());
	editor.ClearModify();
	SetBar();
	editor.WhenRefreshBar = THISBACK(SetBar);
	OpenMain();
	ActiveFocus(editor);
}


(one line deleted) and it should work.

(The fix is commited to svn too).

Mirek
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Skinning Scrollbar thumb
Next Topic: Manual for custom Chameleonized Ctrls
Goto Forum:
  


Current Time: Tue May 14 15:55:04 CEST 2024

Total time taken to generate the page: 0.02141 seconds