[MonoDevelop] ButtonPress event problem

James Fitzsimons james.fitzsimons at gmail.com
Thu Apr 26 17:56:47 EDT 2007


Hi Lluis,

On Thu, 2007-04-26 at 13:33 +0200, Lluis Sanchez wrote:
> El dc 25 de 04 del 2007 a les 23:14 +0100, en/na James Fitzsimons va
> escriure:
> > The problem is, the first time you click the OnButtonPressEvent is fired
> > as seen in the console output, but the line position retrieved via 
> > this.GetLineColumnFromPosition (this.CursorPosition, out line, out
> > column); in the UpdateMethodBrowser method doesn't change. 
> 
> Maybe that's because the cursor is updated after firing this event. What
> about overriding OnButtonRelease event instead?

Doh, combination of stupidity and working late at night I guess. Luckily
there are people like you to point out the obvious to me!

I've attached a small patch that adds updates the method combo on mouse
click (it also adds my original change log entry back in which seems to
have gone AWOL).

Cheers,
James Fitzsimons
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SourceEditorDisplayBindingWrapper.patch
Type: text/x-patch
Size: 2784 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20070426/73d1b4ef/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20070426/73d1b4ef/attachment-0001.bin 


More information about the Monodevelop-list mailing list