animatedfox

I was wondering if anyone knows how to create the nifty drop-down selection menus that SOuP uses with its shelf buttons. Using the pop-up menu options work by holding the right mouse button, which is far from ideal since there are also options there to edit and delete the shelf button.
In a perfect world I could get the same behavior that we see with the SOuP shelf, left click and hold on a shelf button to select what you want to do.
Any thoughts would be greatly appreciated.

Thanks so much
~Ben

Reply 0 0
pshipkov
i think invoking the menus with the LMB will work just fine.
there is an option for that in the popupMenu widget.
Reply 0 0
animatedfox
I see now that there is a popUpMenu command. I was using the default pop-up menu functionality in the shelf buttons, which doesn't give the option to choose a button...though we have evidence that I have missed stuff before.
So the suggested workflow would be to create a normal shelf click command that creates a new popUpMenu.  Man I love doing gui commands...blech!

Thanks for the tip.
~Ben

Reply 0 0
Reply