Re: Sticky pop-up menus
- From: "Jeffrey Ratcliffe" <jeffrey ratcliffe gmail com>
- To: ebassi gmail com
- Cc: gtk-perl-list gnome org
- Subject: Re: Sticky pop-up menus
- Date: Tue, 14 Nov 2006 07:27:52 +0100
> The pop-up menus in my little scanning application work fine in
> themselves, but they are only visible whilst the right mouse button is pressed.
>
> A user has requested that they should work ala Nautilus, i.e. in
> addition to the current behaviour, on a single right click, the
> pop-up stays visible and the item can then be selected with left or right clicks.
>
> I've had a search around, but can't find a standard solution to this.
attach the menu popup call to the button-release-event instead of button-press-event, and be > sure to return
TRUE from the event handler callback to stop the chain.
Excellent. Thank you very much indeed. With both events attached,
things work exactly as required.
Regards
Jeff Ratcliffe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]