From 81a6bc43f2cfd37bb5af59ccd75a8e6d8f0243b8 Mon Sep 17 00:00:00 2001 From: "shrutiv%netscape.com" Date: Thu, 6 Jun 2002 17:18:24 +0000 Subject: [PATCH] Fix for bug 100423: Provide grey out feature for Proxy settings screen (r=smeredith) --- cck/driver/interpret.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/cck/driver/interpret.cpp b/cck/driver/interpret.cpp index b8d4c627b79a..3dbda177dc72 100644 --- a/cck/driver/interpret.cpp +++ b/cck/driver/interpret.cpp @@ -1290,6 +1290,32 @@ BOOL CInterpret::interpret(CString cmds, WIDGET *curWidget) CopyDir(from, to, NULL, TRUE); } } + else if (strcmp(pcmd, "DisableFields") == 0) + { + // Disable widgets specified in parms list + WIDGET *w; + char *widgetName = strtok(parms, ",)"); + while (widgetName != NULL) + { + w = findWidget(widgetName); + if (w) + w->control->EnableWindow(FALSE); + widgetName = strtok(NULL, ",)"); + } + } + else if (strcmp(pcmd, "EnableFields") == 0) + { + // Enable widgets specified in parms list + WIDGET *w; + char *widgetName = strtok(parms, ",)"); + while (widgetName != NULL) + { + w = findWidget(widgetName); + if (w) + w->control->EnableWindow(TRUE); + widgetName = strtok(NULL, ",)"); + } + } else if (strcmp(pcmd, "SetGlobal") == 0) { char *p2 = strchr(parms, ',');