Re: Sticky pop-up menus

> 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.


Jeff Ratcliffe

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