Re: [Plib-devel] PUI Mouse Button Problems
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-10-05 19:23:43
|
Fay John F Contr AAC/WMG wrote: > Gentlemen, > > I am trying to implement a PUI popup menu that is activated by > pressing the right mouse button. It comes up very nicely. Then when I > drag the mouse onto one of the buttons and release the mouse button, it > disappears and my callback is not called. I have traced the problem to > the fact that "puButton.cxx" on line 213 checks whether the left mouse > button is the one being pressed, and I am having the right mouse button > pressed. Is it okay for me to add a feature to PUI to allow the > application to set which mouse button it wants the widget callback to be > invoked on? I think so. How about having a mask that lets you list all of the buttons the widget can be invoked with so you can allow EITHER the left OR the right (or the middle...) ? ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |