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

(r=smeredith)
This commit is contained in:
shrutiv%netscape.com 2002-06-06 17:18:24 +00:00
Родитель 6aae1267dc
Коммит 81a6bc43f2
1 изменённых файлов: 26 добавлений и 0 удалений

Просмотреть файл

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