[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Any button to press a button?



On Mon, 30 Nov 1998, David Wheeler wrote:

> What's the best way to make a GTK+ toggle button respond
> to mouse buttons 2 or 3 the same way as mouse button 1?
> I'm writing a program for preschoolers & they don't distinguish
> between mouse buttons.

As I recall, you just have to catch the "clicked" signal when you want to
do something with mouse buttons and then, within that function, you have
to differentiate between the different buttons.  Just don't bother
differentiating between the different buttons.

Marcus Brubaker
spoon@elpaso.net
http://www.elpaso.net/~spoon

Death and Famine and War and Pollution continued biking towards Tadfield.
And Grievous Bodily Harm, Cruelty To Animals, Things Not Working Properly
Even After You've Given Them A Good Thumping but secretly No Alcohol Lager,
and Really Cool People travelled with them.
        -- The eight Bikers of the Apocalypse
           (Terry Pratchett & Neil Gaiman, Good Omens)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]