|  |  | | | Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Patch: Highlight Errors Goto Forum:
	|  |  
	|  |  
	|  |  
	|  |  
	|  |  
	|  |  
	| 
		
			| Re: Patch: Highlight Errors [message #9661 is a reply to message #9659] | Thu, 24 May 2007 08:32   |  
			|  |  
	| | Quote: |  | While doing the merge I recogniced the space between if / for and ( were removed. if () -> if()...
 I will try to adapt to the upp-style. But old habbits are hard to fight
 
 | 
 I feel the same about opening curly bracket in line with code...
 (that remainds me I must reformat quicktabs code..)
 
 | Quote: |  | Middle Click does not remove the tab, yet. But I guess you already now, this.
 
 | 
 I was trying to implement that at least on win32 platform - without success (yet). The problem is Upp does not provide a common way to handle middle click. In win32 it maps middle click to left click.
 |  
	|  |  |  
	| 
		
			| Re: Patch: Highlight Errors [message #9667 is a reply to message #9661] | Thu, 24 May 2007 15:29   |  
			| 
				
				
					|  mrjt Messages: 705
 Registered: March 2007
 Location: London
 | Contributor  |  |  |  
	| | Quote: |  | The problem is Upp does not provide a common way to handle middle click. In win32 it maps middle click to left click.
 
 | 
 
 Can't you just override MouseEvent?
 
 
	virtual Image MouseEvent(int event, Point p, int zdelta, dword keyflags)
	{
		if (keyflags & K_MOUSEMIDDLE) {
			switch (event) {
				case LEFTDOWN:
					MiddleDown(p, keyflags);
					break;
				case LEFTDOUBLE:
					MiddleDouble(p, keyflags);
					break;
//..Etc.
				default:
					return Ctrl::MouseEvent(event, p, zdelta, keyflags);
			}
		}
		else
			return Ctrl::MouseEvent(event, p, zdelta, keyflags);
		return Image::Arrow();
	};
It definitely works on Win32, but looking at the mouse event code I can't see any reason why it wouldn't also work on X11. You could also do the keyflags check in LeftDown for the same effect.
 
 Presumably there was a good reason for not having specific handling functions for middle clicks in Upp, but I don't know what it was.
 [Updated on: Thu, 24 May 2007 15:33] Report message to a moderator |  
	|  |  |  
	|  |  
	|  |  
	| 
		
			| Re: Patch: Highlight Errors [message #9672 is a reply to message #9659] | Thu, 24 May 2007 20:25   |  
			| 
				
				
					|  Zardos Messages: 62
 Registered: April 2007
 | Member |  |  |  
	| New ( daily  ) Markers patch... 
 Changes:
 * Bugfix: Compile Errors on MINGW
 * Bugfix: Sometimes (after Build) some markers disapeared
 * Bugfix: Lines containing errors sometimes marked in green instead of red
 * Bugfix: Blend-color (age of marker) sometimes was wrong
 * New Color for the marker: yellow-green
 * Cleanups
 
 - Ralf
 
 [Updated on: Thu, 24 May 2007 21:33] Report message to a moderator |  
	|  |  |  
	|  |  
	|  |  
	|  |  
	|  | 
 
 
 Current Time: Thu Oct 30 21:45:30 CET 2025 
 Total time taken to generate the page: 0.05459 seconds | 
 | 
 |