I have no GTK# experience, but you can probably apply the same logic as in
WinForms: set a boolean to true on MouseDown, then to false on MouseUp.
Check that boolean to figure out if the user is holding the mouse button.
Then, you might also want to use a Timer, depending on what you want to do.


frychiko wrote:
> 
> I'm new to GTK and Mono / C# development so excuse such a basic question -
> what's the best way to implement a mouse button down event? That is, while
> mouse button is pressed down, continually do some action.
> 

-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/Mouse-Button-Down-Event-tp2993999p2994089.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to