[MonoDevelop] ButtonPress event problem

James Fitzsimons james.fitzsimons at gmail.com
Wed Apr 25 18:14:28 EDT 2007

Hi all,

I am trying to fix an outstanding issue with the class/member combos I
added to the SourceEditorDisplayBindingWrapper a while ago and am in
need of a bit of help.

I've attached a rough patch which gives an idea of what I want to do.
Basically I'm trying to update the member combo to the correct
method/property when you click on the editor with the mouse.

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. The second
time you click in the same spot it does and the member combo is updated

It looks to me like the CursorPosition isn't being updated on the first
click, but I can't see why not.

I'd be grateful for any clues.

James Fitzsimons

P.S on an unrelated note - does anyone know why I wouldn't be receiving
my own emails to this list anymore?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp.patch
Type: text/x-patch
Size: 3432 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20070425/787b8c33/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/20070425/787b8c33/attachment-0001.bin 

More information about the Monodevelop-list mailing list