Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Patch: Highlight Errors
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
|
|
|
|
|
Patch: Highlight Errors
By: Zardos on Wed, 16 May 2007 01:28
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Wed, 16 May 2007 08:52
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Wed, 16 May 2007 09:12
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Wed, 16 May 2007 10:33
|
|
|
Re: Patch: Highlight Errors
By: Zardos on Wed, 16 May 2007 10:50
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Wed, 16 May 2007 11:15
|
|
|
Re: Patch: Highlight Errors
By: Zardos on Wed, 16 May 2007 18:55
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Wed, 16 May 2007 21:19
|
|
|
Re: Patch: Highlight Errors
By: Zardos on Wed, 16 May 2007 22:43
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Wed, 16 May 2007 23:17
|
|
|
Re: Patch: Highlight Errors
By: Zardos on Thu, 17 May 2007 22:13
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Thu, 17 May 2007 22:42
|
|
|
Re: Patch: Highlight Errors
By: Zardos on Thu, 17 May 2007 23:22
|
|
|
Re: Patch: Highlight Errors
By: mrjt on Fri, 18 May 2007 13:09
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Fri, 18 May 2007 14:00
|
|
|
Re: Patch: Highlight Errors
By: Zardos on Fri, 18 May 2007 16:08
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Mon, 21 May 2007 22:05
|
|
|
Re: Patch: Highlight Errors
By: Zardos on Tue, 22 May 2007 00:36
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Tue, 22 May 2007 23:15
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Tue, 22 May 2007 23:16
|
|
|
Re: Patch: Highlight Errors
By: Zardos on Wed, 23 May 2007 01:01
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Wed, 23 May 2007 08:29
|
|
|
Re: Patch: Highlight Errors
By: Zardos on Wed, 23 May 2007 21:42
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Wed, 23 May 2007 22:56
|
|
|
Re: Patch: Highlight Errors
By: Zardos on Thu, 24 May 2007 00:03
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Thu, 24 May 2007 08:32
|
|
|
Re: Patch: Highlight Errors
By: mrjt on Thu, 24 May 2007 15:29
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Thu, 24 May 2007 15:55
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Thu, 24 May 2007 19:34
|
|
|
Re: Patch: Highlight Errors
By: mirek on Fri, 25 May 2007 08:49
|
|
|
Re: Patch: Highlight Errors
By: Zardos on Thu, 24 May 2007 20:25
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Thu, 24 May 2007 22:45
|
|
|
Re: Patch: Highlight Errors
By: Zardos on Thu, 24 May 2007 23:05
|
|
|
Re: Patch: Highlight Errors
By: unodgs on Thu, 24 May 2007 23:47
|
|
|
Re: Patch: Highlight Errors
By: mr_ped on Wed, 16 May 2007 20:01
|
Goto Forum:
Current Time: Mon May 13 08:00:41 CEST 2024
Total time taken to generate the page: 0.03258 seconds
|