[MonoDevelop] ButtonPress event problem
lluis at ximian.com
Thu Apr 26 07:33:36 EDT 2007
El dc 25 de 04 del 2007 a les 23:14 +0100, en/na James Fitzsimons va
> 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.
Maybe that's because the cursor is updated after firing this event. What
about overriding OnButtonRelease event instead?
> 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?
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
More information about the Monodevelop-list