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++ Library : Other (not classified elsewhere) » Getting compile errors, I modeled after TreeCtrlDnd, but I can't see the error
Re: Getting compile errors, I modeled after TreeCtrlDnd, but I can't see the error [message #33631 is a reply to message #33629] Fri, 02 September 2011 07:32 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi David,

The compilation problem is most probably just too much copy-paste Wink
struct MyApp : TopWindow {

    
    SplitterFrame sf, RightSide;	
	TreeCtrl   tree;
		
	typedef App CLASSNAME;  // <-- There is no type "App", it must be "MyApp"
...


To identify the line you clicked on, you can use GetCursorLine(), e.g.:
	void ItemDC()
	{
		PromptOK(DeQtf("Clicked on line " + IntStr(tree.GetCursorLine()) + "!"));
	}


Best regards,
Honza
 
Read Message
Read Message
Read Message
Previous Topic: Linking to a .net DLL ?
Next Topic: libtiff: update to release 3.9.5
Goto Forum:
  


Current Time: Sat Jun 08 14:40:04 CEST 2024

Total time taken to generate the page: 0.02103 seconds