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++ » U++ Developers corner » What is the best: a separate UppCodeEditor or expanding the existing?
Re: What is the best: a separate UppCodeEditor or expanding the existing? [message #2050 is a reply to message #2046] Thu, 30 March 2006 22:15 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
But where to insert the code for popup context menu?
I've made my DialectCodeEditor derived from CodeEditor with adjusted HighlightLine and extra menu items.

something like this:
class DEditor : public CodeEditor {

    virtual  void HighlightLine(int line, Vector<LineEdit::Highlight>& hl, int pos);
public:
	void     OnListMenu(Bar& bar);
	void ToolEditInsert(Bar& bar);
	void testInsert();

	typedef DEditor CLASSNAME;

	DEditor();
	~DEditor() {;}
};



It works quite nicely (I rewrote HighlightLine implementation)
Why do you think I should use LineEdit?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Funny experiences with AlphaBlend....
Next Topic: Request for code audit
Goto Forum:
  


Current Time: Sat Sep 06 13:20:19 CEST 2025

Total time taken to generate the page: 0.06256 seconds