reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit a24a7478d2ab00315f78dcfc0e136bf6c8b34ff5
parent 2d1dcd7d766eea805b93e817354908b180710263
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Mon,  1 Feb 2016 18:54:11 -0500

add an accelerator to buttons

Diffstat:
Msrc/manager.cpp | 13++++---------
Msrc/resource.rc | 18+++++++++---------
2 files changed, 13 insertions(+), 18 deletions(-)

diff --git a/src/manager.cpp b/src/manager.cpp @@ -103,8 +103,10 @@ void Manager::onContextMenu(HWND target, const int x, const int y) menu.addSeparator(); - menu.addAction(AUTO_STR("Open &website"), 0); - menu.addAction(AUTO_STR("Open &donation URL"), 0); + const UINT uninstallAction = + menu.addAction(AUTO_STR("&Uninstall"), ACTION_UNINSTALL); + + menu.addSeparator(); auto_char aboutLabel[255] = {}; const auto_string &name = make_autostring(remote.name()); @@ -112,13 +114,6 @@ void Manager::onContextMenu(HWND target, const int x, const int y) AUTO_STR("&About %s..."), name.c_str()); menu.addAction(aboutLabel, ACTION_ABOUT); - menu.addSeparator(); - - menu.addSeparator(); - - const UINT uninstallAction = - menu.addAction(AUTO_STR("&Uninstall"), ACTION_UNINSTALL); - menu.disable(enableAction); menu.disable(disableAction); menu.disable(uninstallAction); diff --git a/src/resource.rc b/src/resource.rc @@ -10,7 +10,7 @@ FONT DIALOG_FONT BEGIN LTEXT "File Name", IDC_LABEL, 5, 5, 250, 30 CONTROL "", IDC_PROGRESS, PROGRESS_CLASS, 0x0, 5, 40, 250, 11 - PUSHBUTTON "Cancel", IDCANCEL, 105, 60, 50, 14, NOT WS_TABSTOP + PUSHBUTTON "&Cancel", IDCANCEL, 105, 60, 50, 14, NOT WS_TABSTOP END IDD_REPORT_DIALOG DIALOGEX 0, 0, 260, 240 @@ -22,7 +22,7 @@ BEGIN IDC_LABEL, 5, 5, 250, 10 EDITTEXT IDC_REPORT, 6, 18, 248, 195, WS_VSCROLL | ES_MULTILINE | ES_READONLY | NOT WS_TABSTOP - DEFPUSHBUTTON "OK", IDOK, 105, 220, 50, 14 + DEFPUSHBUTTON "&OK", IDOK, 105, 220, 50, 14 END IDD_CONFIG_DIALOG DIALOGEX 0, 0, 330, 180 @@ -33,9 +33,9 @@ BEGIN LTEXT "Remote repositories:", IDC_LABEL, 5, 5, 320, 10 CONTROL "", IDC_LIST, WC_LISTVIEW, LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | WS_BORDER | WS_TABSTOP, 5, 18, 320, 136 - PUSHBUTTON "Import...", IDC_IMPORT, 5, 160, 45, 14 - DEFPUSHBUTTON "OK", IDOK, 240, 160, 40, 14 - PUSHBUTTON "Cancel", IDCANCEL, 284, 160, 40, 14 + PUSHBUTTON "&Import...", IDC_IMPORT, 5, 160, 45, 14 + DEFPUSHBUTTON "&OK", IDOK, 240, 160, 40, 14 + PUSHBUTTON "&Cancel", IDCANCEL, 284, 160, 40, 14 END IDD_ABOUT_DIALOG DIALOGEX 0, 0, 460, 270 @@ -54,8 +54,8 @@ BEGIN LVS_SHOWSELALWAYS | WS_BORDER | WS_TABSTOP, 10, 20, 96, 220 CONTROL "", IDC_PACKAGES, WC_LISTVIEW, LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | WS_BORDER | WS_TABSTOP, 110, 20, 340, 220 - PUSHBUTTON "Website", IDC_WEBSITE, 5, 250, 45, 14 - PUSHBUTTON "Donate...", IDC_DONATE, 54, 250, 45, 14 - PUSHBUTTON "Enable this repository!", IDC_ENABLE, 305, 250, 100, 14 - DEFPUSHBUTTON "Close", IDOK, 409, 250, 45, 14 + PUSHBUTTON "&Website", IDC_WEBSITE, 5, 250, 45, 14 + PUSHBUTTON "&Donate...", IDC_DONATE, 54, 250, 45, 14 + PUSHBUTTON "&Enable this repository!", IDC_ENABLE, 305, 250, 100, 14 + DEFPUSHBUTTON "&Close", IDOK, 409, 250, 45, 14 END