]> cygwin.com Git - cygwin-apps/setup.git/commit - PickPackageLine.h
Custom draw popup menus in ListView control
authorJon Turney <jon.turney@dronecode.org.uk>
Wed, 7 Dec 2016 19:52:58 +0000 (19:52 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Sat, 13 Oct 2018 17:03:34 +0000 (18:03 +0100)
commit4018914c6c98b0d977554619d36b62f709e32ece
tree0656c6aeb6892c9cff7f86430f0623077412e368
parent8ba85a54652328a92c1eb68e898baf70ba05b525
Custom draw popup menus in ListView control

Construct a menu containing the actions from the action list for the package
or category, and if one is selected, apply it.

This lets us remove packagemeta::set_action() which implements the strange
UX of cycling around actions without showing what the possibilities are.

This somewhat emulates a BS_SPLITBUTTON style control.  The 'popup' cell has
a visual hint that clicking on it opens a menu (a 'combox scrollbar'), and
the popup menu is located at the position of the click.

v2:
Factor out popup_menu, for future use by keyboard accelerators
ListView.cc
ListView.h
PickCategoryLine.cc
PickCategoryLine.h
PickPackageLine.cc
PickPackageLine.h
choose.cc
package_meta.cc
package_meta.h
This page took 0.033386 seconds and 5 git commands to generate.