Re: [gtkmm] Gtk::Button issues



These are both normal behaviour... on_pressed and on_released occur as
mouse events only as far as I'm aware. on_released, being defined as
when a mouse button is released over a button, is quite valid to be
called when it is in #1. If you did it the other way around (press on
button, hold, drag away, release) you'd only get on_pressed.

On Wed, 2002-12-11 at 00:09, Alex Pavloff wrote:
> Using gtkmm 2.0.2 (happens under 1.3.18 also).
> 
> I have a class derived from Gtk::Button, overiding on_pressed and
> on_released.
> 
> Problem #1:  If a user has the mouse pointer away from the object, clicks
> and holds, moves to the button, and then hits release, on_released is
> called, despite the button never being shown as pressed or on_pressed being
> called.
> 
> Problem #2:  Keyboard focus is on the button.  Hitting the space bar causes
> the button to appear pressed and released like you'd expect.  However,
> on_pressed and on_released aren't called.
> 
> Any ideas?
> 
> Thanks!
> 
> Alex Pavloff - apavloff eason com
> Eason Technology -- www.eason.com
>  
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
-- 
Matthew Walton <mxw00u cs nott ac uk>




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