Fix for bug 100423: Provide grey out feature for Proxy settings screen

(r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@122813 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
shrutiv%netscape.com 2002-06-06 17:18:24 +00:00
parent 4dd793c40b
commit 34d0ccf06f

View File

@ -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, ',');