This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH setup 1/4] Add checkbox IDC_ALLOW_USER_URL to IDD_SITE dialog


On 12/3/2017 10:22 AM, Ken Brown wrote:
Enable the "User URL" edit box and "Add" button only if
IDC_ALLOW_USER_URL is checked.
---
  res.rc     | 15 ++++++++-------
  resource.h |  1 +
  site.cc    | 14 ++++++++++++++
  3 files changed, 23 insertions(+), 7 deletions(-)

Sorry, I need to add the following hunk:

diff --git a/site.cc b/site.cc
index ef0c218..9972a29 100644
--- a/site.cc
+++ b/site.cc
@@ -64,6 +64,7 @@ static ControlAdjuster::ControlInfo SiteControlsInfo[] = {
   {IDC_EDIT_USER_URL,          CP_STRETCH, CP_BOTTOM},
   {IDC_BUTTON_ADD_URL,         CP_RIGHT,   CP_BOTTOM},
   {IDC_SITE_USERURL,            CP_LEFT,    CP_BOTTOM},
+  {IDC_ALLOW_USER_URL,          CP_LEFT,    CP_BOTTOM},
   {0, CP_LEFT, CP_TOP}
 };

Ken


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]